@@ -13,38 +13,7 @@ export default [
13
13
ignores : [ "**/dist" , "**/results" , "**/node_modules" , "css" , "**/csv_export.js" ] ,
14
14
} ,
15
15
{
16
- files : [ "**/*.{ts,tsx}" ] ,
17
- plugins : { "@typescript-eslint" : ts } ,
18
- languageOptions : { parser : tsParser } ,
19
- rules : ts . configs [ "recommended" ] . rules ,
20
- } ,
21
- /**
22
- * Root
23
- */
24
- {
25
- files : [ "*.js" , "utils/**/*" , "cli/**/*.js" ] ,
26
- languageOptions : { globals : { ...globals . node } } ,
27
- rules : {
28
- "no-unused-vars" : "warn" ,
29
- } ,
30
- } ,
31
- /**
32
- * Server
33
- */
34
- {
35
- files : [ "server/**/*" ] ,
36
- languageOptions : { globals : { ...globals . node } } ,
37
- } ,
38
- /**
39
- * Webdriver
40
- */
41
- {
42
- files : [ "webdriver-ts/**/*.ts" ] ,
43
16
plugins : { unicorn } ,
44
- languageOptions : {
45
- parserOptions : { project : [ "./webdriver-ts/tsconfig.eslint.json" ] } ,
46
- globals : { ...globals . node } ,
47
- } ,
48
17
rules : {
49
18
...unicorn . configs . recommended . rules ,
50
19
// no:
@@ -71,7 +40,24 @@ export default [
71
40
"unicorn/prefer-dom-node-text-content" : "off" ,
72
41
"unicorn/prefer-optional-catch-binding" : "off" ,
73
42
"unicorn/prefer-logical-operator-over-ternary" : "off" ,
74
-
43
+ } ,
44
+ languageOptions : { globals : { ...globals . node } } ,
45
+ } ,
46
+ {
47
+ files : [ "**/*.{ts,tsx}" ] ,
48
+ plugins : { "@typescript-eslint" : ts } ,
49
+ languageOptions : { parser : tsParser } ,
50
+ rules : ts . configs [ "recommended" ] . rules ,
51
+ } ,
52
+ /**
53
+ * Webdriver
54
+ */
55
+ {
56
+ files : [ "webdriver-ts/**/*.ts" ] ,
57
+ languageOptions : {
58
+ parserOptions : { project : [ "./webdriver-ts/tsconfig.eslint.json" ] } ,
59
+ } ,
60
+ rules : {
75
61
"@typescript-eslint/no-explicit-any" : "off" ,
76
62
"require-await" : "error" ,
77
63
"@typescript-eslint/no-floating-promises" : "error" ,
@@ -82,7 +68,13 @@ export default [
82
68
* Web
83
69
*/
84
70
{
85
- files : [ "webdriver-ts-results/**/*.tsx" ] ,
71
+ files : [ "webdriver-ts-results/**/*" ] ,
72
+ rules : {
73
+ "@typescript-eslint/no-loss-of-precision" : "off" ,
74
+ } ,
75
+ } ,
76
+ {
77
+ files : [ "webdriver-ts-results/src/**/*.{js,ts,jsx,tsx}" ] ,
86
78
plugins : {
87
79
react,
88
80
"react-refresh" : reactRefresh ,
@@ -99,12 +91,4 @@ export default [
99
91
settings : { react : { version : "detect" } } ,
100
92
languageOptions : { globals : { ...globals . browser } } ,
101
93
} ,
102
- {
103
- files : [ "webdriver-ts-results/**/*" ] ,
104
- languageOptions : { globals : { ...globals . browser , ...globals . node } } ,
105
- rules : {
106
- "@typescript-eslint/no-loss-of-precision" : "off" ,
107
- "no-debugger" : "off" ,
108
- } ,
109
- } ,
110
94
] ;
0 commit comments