-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy patheslint.config.mjs
More file actions
55 lines (53 loc) · 1.34 KB
/
Copy patheslint.config.mjs
File metadata and controls
55 lines (53 loc) · 1.34 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import js from "@eslint/js";
import globals from "globals";
import pluginVue from "eslint-plugin-vue";
import {
configureVueProject,
defineConfigWithVueTs,
vueTsConfigs,
} from "@vue/eslint-config-typescript";
// Several older Options-API components in this project use plain, untyped
// <script> blocks (no lang attribute). Allow both so vue/block-lang doesn't
// force every legacy .vue file into strict TS typing.
configureVueProject({ scriptLangs: ["ts", "js"] });
export default defineConfigWithVueTs(
{
ignores: [
"dist/**",
"node_modules/**",
"cypress/videos/**",
"cypress/screenshots/**",
"playwright-report/**",
"test-results/**",
"blob-report/**",
"playwright/.cache/**",
"k8s/conf/**",
"k8s/stable/**",
"scripts/check-locales.js",
"scripts/run-tests.js",
],
},
js.configs.recommended,
pluginVue.configs["flat/essential"],
vueTsConfigs.base,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"vue/multi-word-component-names": "off",
"vue/no-reserved-component-names": "off",
},
}
);