@spscommerce/eslint-config-typescript 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +11 -15
- package/lib/rules/bestPractices.js +487 -309
- package/lib/rules/es6.js +181 -110
- package/lib/rules/imports/helpfulWarnings.js +28 -14
- package/lib/rules/imports/moduleSystems.js +20 -10
- package/lib/rules/imports/staticAnalysis.js +56 -28
- package/lib/rules/imports/styleGuide.js +64 -32
- package/lib/rules/possibleErrors.js +231 -142
- package/lib/rules/strictMode.js +6 -3
- package/lib/rules/stylisticIssues.js +525 -327
- package/lib/rules/typescript.js +431 -250
- package/lib/rules/variables.js +74 -49
- package/package.json +10 -6
|
@@ -2,54 +2,86 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.styleGuide = void 0;
|
|
4
4
|
exports.styleGuide = {
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
5
|
+
/**
|
|
6
|
+
* Ensure all imports appear before other statements
|
|
7
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/first.md
|
|
8
|
+
*/
|
|
7
9
|
"import/first": "error",
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
+
/**
|
|
11
|
+
* Ensure all exports appear after other statements
|
|
12
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/exports-last.md
|
|
13
|
+
*/
|
|
10
14
|
"import/exports-last": "off",
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
15
|
+
/**
|
|
16
|
+
* Report repeated import of the same module in multiple places
|
|
17
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md
|
|
18
|
+
*/
|
|
13
19
|
"import/no-duplicates": "error",
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
20
|
+
/**
|
|
21
|
+
* Forbid namespace (a.k.a. "wildcard" `*`) imports
|
|
22
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-namespace.md
|
|
23
|
+
*/
|
|
16
24
|
"import/no-namespace": "off",
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
25
|
+
/**
|
|
26
|
+
* Ensure consistent use of file extension within the import path
|
|
27
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md
|
|
28
|
+
*/
|
|
19
29
|
"import/extensions": ["error", "never"],
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
30
|
+
/**
|
|
31
|
+
* Enforce a convention in module import order
|
|
32
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md
|
|
33
|
+
*/
|
|
22
34
|
"import/order": "error",
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
35
|
+
/**
|
|
36
|
+
* Enforce a newline after import statements
|
|
37
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md
|
|
38
|
+
*/
|
|
25
39
|
"import/newline-after-import": "error",
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
40
|
+
/**
|
|
41
|
+
* Prefer a default export if module exports a single name
|
|
42
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/prefer-default-export.md
|
|
43
|
+
*/
|
|
28
44
|
"import/prefer-default-export": "off",
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
45
|
+
/**
|
|
46
|
+
* Limit the maximum number of dependencies a module can have
|
|
47
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/max-dependencies.md
|
|
48
|
+
*/
|
|
31
49
|
"import/max-dependencies": "off",
|
|
32
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Forbid unassigned imports (e.g. `import 'foo';`)
|
|
33
52
|
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unassigned-import.md
|
|
34
53
|
* The general idea that importing a module shouldn't have side effects is valid, but
|
|
35
|
-
* there is an exception: many polyfill modules do this, so we can't really make it an error.
|
|
54
|
+
* there is an exception: many polyfill modules do this, so we can't really make it an error.
|
|
55
|
+
*/
|
|
36
56
|
"import/no-unassigned-import": "off",
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
57
|
+
/**
|
|
58
|
+
* Forbid named default exports
|
|
59
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-default.md
|
|
60
|
+
*/
|
|
39
61
|
"import/no-named-default": "error",
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
62
|
+
/**
|
|
63
|
+
* Forbid default exports
|
|
64
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-default-export.md
|
|
65
|
+
*/
|
|
42
66
|
"import/no-default-export": "off",
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
67
|
+
/**
|
|
68
|
+
* Forbid named exports
|
|
69
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-export.md
|
|
70
|
+
*/
|
|
45
71
|
"import/no-named-export": "off",
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
72
|
+
/**
|
|
73
|
+
* Forbid anonymous values as default exports
|
|
74
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-anonymous-default-export.md
|
|
75
|
+
*/
|
|
48
76
|
"import/no-anonymous-default-export": "error",
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
77
|
+
/**
|
|
78
|
+
* Prefer named exports to be grouped together in a single export declaration
|
|
79
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/group-exports.md
|
|
80
|
+
*/
|
|
51
81
|
"import/group-exports": "off",
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
82
|
+
/**
|
|
83
|
+
* Enforce a leading comment with the webpackChunkName for dynamic imports
|
|
84
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/dynamic-import-chunkname.md
|
|
85
|
+
*/
|
|
54
86
|
"import/dynamic-import-chunkname": "off",
|
|
55
87
|
};
|
|
@@ -1,147 +1,236 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.possibleErrors = void 0;
|
|
4
|
+
// ✅ = recommended, 🔧 = fixable
|
|
4
5
|
exports.possibleErrors = {
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
6
|
+
/**
|
|
7
|
+
* enforce “for” loop update clause moving the counter in the right direction ✅
|
|
8
|
+
* https://eslint.org/docs/rules/for-direction
|
|
9
|
+
*/
|
|
10
|
+
"for-direction": "error",
|
|
11
|
+
/**
|
|
12
|
+
* enforce `return` statements in getters ✅
|
|
13
|
+
* https://eslint.org/docs/rules/getter-return
|
|
14
|
+
* Off because getters and setters are forbidden
|
|
15
|
+
*/
|
|
16
|
+
"getter-return": "off",
|
|
17
|
+
/**
|
|
18
|
+
* disallow using an async function as a Promise executor ✅
|
|
19
|
+
* https://eslint.org/docs/rules/no-async-promise-executor
|
|
20
|
+
*/
|
|
21
|
+
"no-async-promise-executor": "error",
|
|
22
|
+
/**
|
|
23
|
+
* disallow await inside of loops
|
|
24
|
+
* https://eslint.org/docs/rules/no-await-in-loop
|
|
25
|
+
*/
|
|
26
|
+
"no-await-in-loop": "error",
|
|
27
|
+
/**
|
|
28
|
+
* disallow comparisons to negative zero ✅
|
|
29
|
+
* https://eslint.org/docs/rules/no-compare-neg-zero
|
|
30
|
+
*/
|
|
31
|
+
"no-compare-neg-zero": "error",
|
|
32
|
+
/**
|
|
33
|
+
* disallow assignment in conditional expressions ✅
|
|
34
|
+
* https://eslint.org/docs/rules/no-cond-assign
|
|
35
|
+
* 'always' bans all such assignments rather than just "ambiguous" ones
|
|
36
|
+
*/
|
|
37
|
+
"no-cond-assign": ["error", "always"],
|
|
38
|
+
/**
|
|
39
|
+
* disallow use of console
|
|
40
|
+
* https://eslint.org/docs/rules/no-console
|
|
41
|
+
*/
|
|
42
|
+
"no-console": "warn",
|
|
43
|
+
/**
|
|
44
|
+
* disallow use of constant expressions in conditions ✅
|
|
45
|
+
* https://eslint.org/docs/rules/no-constant-condition
|
|
46
|
+
*/
|
|
47
|
+
"no-constant-condition": "warn",
|
|
48
|
+
/**
|
|
49
|
+
* disallow control characters in regular expressions ✅
|
|
50
|
+
* https://eslint.org/docs/rules/no-control-regex
|
|
51
|
+
*/
|
|
52
|
+
"no-control-regex": "error",
|
|
53
|
+
/**
|
|
54
|
+
* disallow use of debugger ✅
|
|
55
|
+
* https://eslint.org/docs/rules/no-debugger
|
|
56
|
+
*/
|
|
57
|
+
"no-debugger": "error",
|
|
58
|
+
/**
|
|
59
|
+
* disallow duplicate arguments in functions ✅
|
|
60
|
+
* https://eslint.org/docs/rules/no-dupe-args
|
|
61
|
+
*/
|
|
62
|
+
"no-dupe-args": "error",
|
|
63
|
+
/**
|
|
64
|
+
* Disallow duplicate conditions in if-else-if chains ✅
|
|
65
|
+
* https://eslint.org/docs/rules/no-dupe-else-if
|
|
66
|
+
*/
|
|
67
|
+
"no-dupe-else-if": "error",
|
|
68
|
+
/**
|
|
69
|
+
* disallow duplicate keys when creating object literals ✅
|
|
70
|
+
* https://eslint.org/docs/rules/no-dupe-keys
|
|
71
|
+
*/
|
|
72
|
+
"no-dupe-keys": "error",
|
|
73
|
+
/**
|
|
74
|
+
* disallow a duplicate case label ✅
|
|
75
|
+
* https://eslint.org/docs/rules/no-duplicate-case
|
|
76
|
+
*/
|
|
77
|
+
"no-duplicate-case": "error",
|
|
78
|
+
/**
|
|
79
|
+
* disallow empty statements ✅
|
|
80
|
+
* https://eslint.org/docs/rules/no-empty
|
|
81
|
+
*/
|
|
82
|
+
"no-empty": "error",
|
|
83
|
+
/**
|
|
84
|
+
* disallow the use of empty character classes in regular expressions ✅
|
|
85
|
+
* https://eslint.org/docs/rules/no-empty-character-class
|
|
86
|
+
*/
|
|
87
|
+
"no-empty-character-class": "error",
|
|
88
|
+
/**
|
|
89
|
+
* disallow assigning to the exception in a catch block ✅
|
|
90
|
+
* https://eslint.org/docs/rules/no-ex-assign
|
|
91
|
+
*/
|
|
92
|
+
"no-ex-assign": "error",
|
|
93
|
+
/**
|
|
94
|
+
* disallow double-negation boolean casts in a boolean context ✅ 🔧
|
|
95
|
+
* https://eslint.org/docs/rules/no-extra-boolean-cast
|
|
96
|
+
*/
|
|
97
|
+
"no-extra-boolean-cast": "error",
|
|
98
|
+
/**
|
|
99
|
+
* disallow unnecessary parentheses 🔧
|
|
100
|
+
* https://eslint.org/docs/rules/no-extra-parens
|
|
101
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md
|
|
102
|
+
*/
|
|
103
|
+
"no-extra-parens": "off",
|
|
104
|
+
"@typescript-eslint/no-extra-parens": "off",
|
|
105
|
+
/**
|
|
106
|
+
* disallow unnecessary semicolons ✅ 🔧
|
|
107
|
+
* https://eslint.org/docs/rules/no-extra-semi
|
|
108
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-semi.md
|
|
109
|
+
*/
|
|
110
|
+
"no-extra-semi": "off",
|
|
111
|
+
"@typescript-eslint/no-extra-semi": "error",
|
|
112
|
+
/**
|
|
113
|
+
* disallow overwriting functions written as function declarations ✅
|
|
114
|
+
* https://eslint.org/docs/rules/no-func-assign
|
|
115
|
+
*/
|
|
116
|
+
"no-func-assign": "error",
|
|
117
|
+
/**
|
|
118
|
+
* disallow assigning to imported bindings ✅
|
|
119
|
+
* https://eslint.org/docs/rules/no-import-assign
|
|
120
|
+
*/
|
|
121
|
+
"no-import-assign": "error",
|
|
122
|
+
/**
|
|
123
|
+
* disallow function or variable declarations in nested blocks ✅
|
|
124
|
+
* https://eslint.org/docs/rules/no-inner-declarations
|
|
125
|
+
*/
|
|
126
|
+
"no-inner-declarations": "error",
|
|
127
|
+
/**
|
|
128
|
+
* disallow invalid regular expression strings in the RegExp constructor ✅
|
|
129
|
+
* https://eslint.org/docs/rules/no-invalid-regexp
|
|
130
|
+
*/
|
|
131
|
+
"no-invalid-regexp": "error",
|
|
132
|
+
/**
|
|
133
|
+
* disallow irregular whitespace outside of strings and comments ✅
|
|
134
|
+
* https://eslint.org/docs/rules/no-irregular-whitespace
|
|
135
|
+
*/
|
|
136
|
+
"no-irregular-whitespace": "error",
|
|
137
|
+
/**
|
|
138
|
+
* disallow literal numbers that lose precision ✅
|
|
139
|
+
* https://eslint.org/docs/rules/no-loss-of-precision
|
|
140
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loss-of-precision.md
|
|
141
|
+
*/
|
|
142
|
+
"no-loss-of-precision": "off",
|
|
143
|
+
"@typescript-eslint/no-loss-of-precision": "error",
|
|
144
|
+
/**
|
|
145
|
+
* disallow characters which are made with multiple code points in character class syntax ✅
|
|
146
|
+
* https://eslint.org/docs/rules/no-misleading-character-class
|
|
147
|
+
*/
|
|
148
|
+
"no-misleading-character-class": "error",
|
|
149
|
+
/**
|
|
150
|
+
* disallow the use of object properties of the global object (Math and JSON) as functions ✅
|
|
151
|
+
* https://eslint.org/docs/rules/no-obj-calls
|
|
152
|
+
*/
|
|
153
|
+
"no-obj-calls": "error",
|
|
154
|
+
/**
|
|
155
|
+
* disallow returning values from Promise executor functions
|
|
156
|
+
* https://eslint.org/docs/rules/no-promise-executor-return
|
|
157
|
+
*/
|
|
158
|
+
"no-promise-executor-return": "error",
|
|
159
|
+
/**
|
|
160
|
+
* disallow use of Object.prototypes builtins directly ✅
|
|
161
|
+
* https://eslint.org/docs/rules/no-prototype-builtins
|
|
162
|
+
*/
|
|
163
|
+
"no-prototype-builtins": "off",
|
|
164
|
+
/**
|
|
165
|
+
* disallow multiple spaces in a regular expression literal ✅ 🔧
|
|
166
|
+
* https://eslint.org/docs/rules/no-regex-spaces
|
|
167
|
+
*/
|
|
168
|
+
"no-regex-spaces": "error",
|
|
169
|
+
/**
|
|
170
|
+
* disallow returning values from setters ✅
|
|
171
|
+
* https://eslint.org/docs/rules/no-setter-return
|
|
172
|
+
* Off because getters and setters are forbidden
|
|
173
|
+
*/
|
|
174
|
+
"no-setter-return": "off",
|
|
175
|
+
/**
|
|
176
|
+
* disallow sparse arrays ✅
|
|
177
|
+
* https://eslint.org/docs/rules/no-sparse-arrays
|
|
178
|
+
* only forbids sparse array literals, not `new Array(n)`
|
|
179
|
+
*/
|
|
180
|
+
"no-sparse-arrays": "error",
|
|
181
|
+
/**
|
|
182
|
+
* disallow template literal placeholder syntax in regular strings
|
|
183
|
+
* https://eslint.org/docs/rules/no-template-curly-in-string
|
|
184
|
+
*/
|
|
185
|
+
"no-template-curly-in-string": "error",
|
|
186
|
+
/**
|
|
187
|
+
* avoid code that looks like two expressions but is actually one ✅
|
|
188
|
+
* https://eslint.org/docs/rules/no-unexpected-multiline
|
|
189
|
+
*/
|
|
190
|
+
"no-unexpected-multiline": "error",
|
|
191
|
+
/**
|
|
192
|
+
* disallow unreachable statements after a return, throw, continue, or break statement ✅
|
|
193
|
+
* https://eslint.org/docs/rules/no-unreachable
|
|
194
|
+
*/
|
|
195
|
+
"no-unreachable": "error",
|
|
196
|
+
/**
|
|
197
|
+
* disallow loops with a body that allows only one iteration
|
|
198
|
+
* https://eslint.org/docs/rules/no-unreachable-loop
|
|
199
|
+
*/
|
|
200
|
+
"no-unreachable-loop": "error",
|
|
201
|
+
/**
|
|
202
|
+
* disallow return/throw/break/continue inside finally blocks ✅
|
|
203
|
+
* https://eslint.org/docs/rules/no-unsafe-finally
|
|
204
|
+
*/
|
|
205
|
+
"no-unsafe-finally": "error",
|
|
206
|
+
/**
|
|
207
|
+
* disallow negating the left operand of relational operators ✅
|
|
208
|
+
* https://eslint.org/docs/rules/no-unsafe-negation
|
|
209
|
+
*/
|
|
210
|
+
"no-unsafe-negation": "error",
|
|
211
|
+
/**
|
|
212
|
+
* disallow use of optional chaining in contexts where the undefined value is not allowed ✅
|
|
213
|
+
* https://eslint.org/docs/rules/no-unsafe-optional-chaining
|
|
214
|
+
*/
|
|
215
|
+
"no-unsafe-optional-chaining": "error",
|
|
216
|
+
/**
|
|
217
|
+
* Disallow useless backreferences in regular expressions ✅
|
|
218
|
+
* https://eslint.org/docs/rules/no-useless-backreference
|
|
219
|
+
*/
|
|
220
|
+
"no-useless-backreference": "off",
|
|
221
|
+
/**
|
|
222
|
+
* Disallow assignments that can lead to race conditions due to usage of await or yield
|
|
223
|
+
* https://eslint.org/docs/rules/require-atomic-updates
|
|
224
|
+
*/
|
|
225
|
+
"require-atomic-updates": "error",
|
|
226
|
+
/**
|
|
227
|
+
* disallow comparisons with the value NaN ✅
|
|
228
|
+
* https://eslint.org/docs/rules/use-isnan
|
|
229
|
+
*/
|
|
230
|
+
"use-isnan": "error",
|
|
231
|
+
/**
|
|
232
|
+
* ensure that the results of typeof are compared against a valid string ✅
|
|
233
|
+
* https://eslint.org/docs/rules/valid-typeof
|
|
234
|
+
*/
|
|
235
|
+
"valid-typeof": ["error", { requireStringLiterals: true }],
|
|
147
236
|
};
|
package/lib/rules/strictMode.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.strictMode = void 0;
|
|
4
|
+
// ✅ = recommended, 🔧 = fixable
|
|
4
5
|
exports.strictMode = {
|
|
5
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* disallow the 'use strict' directive 🔧
|
|
6
8
|
* https://eslint.org/docs/rules/strict
|
|
7
|
-
* this is handled for you and does not need to be present in your source files
|
|
8
|
-
|
|
9
|
+
* this is handled for you and does not need to be present in your source files
|
|
10
|
+
*/
|
|
11
|
+
strict: ["error", "never"],
|
|
9
12
|
};
|