-
Notifications
You must be signed in to change notification settings - Fork 354
/
Copy patheslint.config.js
30 lines (29 loc) · 951 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import pluginVueA11y from "eslint-plugin-vuejs-accessibility";
/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["src/**/*.{js,mjs,cjs,ts,vue}","demo/**/*.{js,mjs,cjs,ts,vue}"]},
{ignores: ["node_modules", "dist", "coverage"]},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/essential"],
...pluginVueA11y.configs["flat/recommended"],
{files: ["**/*.vue"], languageOptions: {parserOptions: {parser: tseslint.parser}}},
{ "rules": {
"vuejs-accessibility/label-has-for": [
"error",
{
"components": ["VLabel"],
"controlComponents": ["VInput"],
"required": {
"some": ["nesting", "id"]
},
}
]
}
}
];