@@ -4,6 +4,7 @@ import cy from 'eslint-plugin-cypress/flat'
4
4
import mocha from 'eslint-plugin-mocha'
5
5
import globals from 'globals'
6
6
import path from 'path'
7
+ import vue from 'eslint-plugin-vue'
7
8
8
9
/**
9
10
* baseConfig should be imported by other packages that define their own eslint.config.ts
@@ -17,26 +18,34 @@ export const baseConfig: InfiniteDepthConfigWithExtends[] = [
17
18
...ts . configs . recommended ,
18
19
cy . configs . recommended ,
19
20
mocha . configs . flat . recommended ,
21
+ ...vue . configs [ 'flat/recommended' ] ,
20
22
{
21
23
// rules that are gold standard, but have many violations
22
24
// these are off while developing eslint, but will be set to warn
23
25
rules : {
26
+ 'no-useless-escape' : 'off' ,
27
+ 'prefer-const' : 'off' ,
28
+ 'prefer-rest-params' : 'off' ,
29
+ 'no-prototype-builtins' : 'off' ,
30
+ 'no-global-assign' : 'off' ,
31
+ 'no-unsafe-finally' : 'off' ,
32
+
24
33
'@typescript-eslint/no-unused-expressions' : 'off' ,
25
34
'@typescript-eslint/no-require-imports' : 'off' ,
26
35
'@typescript-eslint/no-unused-vars' : 'off' ,
27
- 'no-useless-escape' : 'off' ,
28
36
'@typescript-eslint/no-unsafe-function-type' : 'off' ,
29
- 'prefer-const' : 'off' ,
30
- 'prefer-rest-params' : 'off' ,
31
37
'@typescript-eslint/ban-ts-comment' : 'off' ,
32
38
'@typescript-eslint/no-namespace' : 'off' ,
33
39
'@typescript-eslint/no-explicit-any' : 'off' ,
34
- 'no-prototype-builtins' : 'off' ,
35
40
'@typescript-eslint/no-this-alias' : 'off' ,
36
41
'@typescript-eslint/triple-slash-reference' : 'off' ,
37
- 'no-global-assign' : 'off' ,
38
- 'no-unsafe-finally' : 'off' ,
39
- '@typescript-eslint/no-empty-object-type' : 'off'
42
+ '@typescript-eslint/no-empty-object-type' : 'off' ,
43
+
44
+ 'vue/multi-word-component-names' : 'off' ,
45
+ 'vue/html-closing-bracket-spacing' : 'off' ,
46
+
47
+ 'cypress/no-unnecessary-waiting' : 'off' ,
48
+ 'cypress/unsafe-to-chain-command' : 'off' ,
40
49
} ,
41
50
} ,
42
51
@@ -71,6 +80,13 @@ export const baseConfig: InfiniteDepthConfigWithExtends[] = [
71
80
module : 'readonly' ,
72
81
}
73
82
}
83
+ } ,
84
+
85
+ {
86
+ files : [ 'webpack.config.js' ] ,
87
+ languageOptions : {
88
+ globals : globals . node
89
+ }
74
90
}
75
91
]
76
92
0 commit comments