@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.
@@ -2,54 +2,86 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.styleGuide = void 0;
4
4
  exports.styleGuide = {
5
- /** Ensure all imports appear before other statements
6
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/first.md */
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
- /** Ensure all exports appear after other statements
9
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/exports-last.md */
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
- /** Report repeated import of the same module in multiple places
12
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md */
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
- /** Forbid namespace (a.k.a. "wildcard" `*`) imports
15
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-namespace.md */
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
- /** Ensure consistent use of file extension within the import path
18
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md */
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
- /** Enforce a convention in module import order
21
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md */
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
- /** Enforce a newline after import statements
24
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md */
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
- /** Prefer a default export if module exports a single name
27
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/prefer-default-export.md */
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
- /** Limit the maximum number of dependencies a module can have
30
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/max-dependencies.md */
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
- /** Forbid unassigned imports (e.g. `import 'foo';`)
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
- /** Forbid named default exports
38
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-default.md */
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
- /** Forbid default exports
41
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-default-export.md */
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
- /** Forbid named exports
44
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-export.md */
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
- /** Forbid anonymous values as default exports
47
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-anonymous-default-export.md */
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
- /** Prefer named exports to be grouped together in a single export declaration
50
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/group-exports.md */
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
- /** Enforce a leading comment with the webpackChunkName for dynamic imports
53
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/dynamic-import-chunkname.md */
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
- /** enforce “for” loop update clause moving the counter in the right direction
6
- * https://eslint.org/docs/rules/for-direction */
7
- 'for-direction': 'error',
8
- /** enforce `return` statements in getters
9
- * https://eslint.org/docs/rules/getter-return
10
- * Off because getters and setters are forbidden */
11
- 'getter-return': 'off',
12
- /** disallow using an async function as a Promise executor
13
- * https://eslint.org/docs/rules/no-async-promise-executor */
14
- 'no-async-promise-executor': 'error',
15
- /** disallow await inside of loops
16
- * https://eslint.org/docs/rules/no-await-in-loop */
17
- 'no-await-in-loop': 'error',
18
- /** disallow comparisons to negative zero
19
- * https://eslint.org/docs/rules/no-compare-neg-zero */
20
- 'no-compare-neg-zero': 'error',
21
- /** disallow assignment in conditional expressions
22
- * https://eslint.org/docs/rules/no-cond-assign
23
- * 'always' bans all such assignments rather than just "ambiguous" ones */
24
- 'no-cond-assign': ['error', 'always'],
25
- /** disallow use of console
26
- * https://eslint.org/docs/rules/no-console */
27
- 'no-console': 'warn',
28
- /** disallow use of constant expressions in conditions
29
- * https://eslint.org/docs/rules/no-constant-condition */
30
- 'no-constant-condition': 'warn',
31
- /** disallow control characters in regular expressions
32
- * https://eslint.org/docs/rules/no-control-regex */
33
- 'no-control-regex': 'error',
34
- /** disallow use of debugger
35
- * https://eslint.org/docs/rules/no-debugger */
36
- 'no-debugger': 'error',
37
- /** disallow duplicate arguments in functions
38
- * https://eslint.org/docs/rules/no-dupe-args */
39
- 'no-dupe-args': 'error',
40
- /** Disallow duplicate conditions in if-else-if chains
41
- * https://eslint.org/docs/rules/no-dupe-else-if */
42
- 'no-dupe-else-if': 'error',
43
- /** disallow duplicate keys when creating object literals
44
- * https://eslint.org/docs/rules/no-dupe-keys */
45
- 'no-dupe-keys': 'error',
46
- /** disallow a duplicate case label
47
- * https://eslint.org/docs/rules/no-duplicate-case */
48
- 'no-duplicate-case': 'error',
49
- /** disallow empty statements
50
- * https://eslint.org/docs/rules/no-empty */
51
- 'no-empty': 'error',
52
- /** disallow the use of empty character classes in regular expressions
53
- * https://eslint.org/docs/rules/no-empty-character-class */
54
- 'no-empty-character-class': 'error',
55
- /** disallow assigning to the exception in a catch block
56
- * https://eslint.org/docs/rules/no-ex-assign */
57
- 'no-ex-assign': 'error',
58
- /** disallow double-negation boolean casts in a boolean context
59
- * https://eslint.org/docs/rules/no-extra-boolean-cast */
60
- 'no-extra-boolean-cast': 'error',
61
- /** disallow unnecessary parentheses
62
- * https://eslint.org/docs/rules/no-extra-parens
63
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md */
64
- 'no-extra-parens': 'off',
65
- '@typescript-eslint/no-extra-parens': 'off',
66
- /** disallow unnecessary semicolons
67
- * https://eslint.org/docs/rules/no-extra-semi
68
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-semi.md */
69
- 'no-extra-semi': 'off',
70
- '@typescript-eslint/no-extra-semi': 'error',
71
- /** disallow overwriting functions written as function declarations
72
- * https://eslint.org/docs/rules/no-func-assign */
73
- 'no-func-assign': 'error',
74
- /** disallow assigning to imported bindings
75
- * https://eslint.org/docs/rules/no-import-assign */
76
- 'no-import-assign': 'error',
77
- /** disallow function or variable declarations in nested blocks
78
- * https://eslint.org/docs/rules/no-inner-declarations */
79
- 'no-inner-declarations': 'error',
80
- /** disallow invalid regular expression strings in the RegExp constructor
81
- * https://eslint.org/docs/rules/no-invalid-regexp */
82
- 'no-invalid-regexp': 'error',
83
- /** disallow irregular whitespace outside of strings and comments
84
- * https://eslint.org/docs/rules/no-irregular-whitespace */
85
- 'no-irregular-whitespace': 'error',
86
- /** disallow literal numbers that lose precision
87
- * https://eslint.org/docs/rules/no-loss-of-precision
88
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loss-of-precision.md */
89
- 'no-loss-of-precision': 'off',
90
- '@typescript-eslint/no-loss-of-precision': 'error',
91
- /** disallow characters which are made with multiple code points in character class syntax
92
- * https://eslint.org/docs/rules/no-misleading-character-class */
93
- 'no-misleading-character-class': 'error',
94
- /** disallow the use of object properties of the global object (Math and JSON) as functions
95
- * https://eslint.org/docs/rules/no-obj-calls */
96
- 'no-obj-calls': 'error',
97
- /** disallow returning values from Promise executor functions
98
- * https://eslint.org/docs/rules/no-promise-executor-return */
99
- 'no-promise-executor-return': 'error',
100
- /** disallow use of Object.prototypes builtins directly
101
- * https://eslint.org/docs/rules/no-prototype-builtins */
102
- 'no-prototype-builtins': 'off',
103
- /** disallow multiple spaces in a regular expression literal
104
- * https://eslint.org/docs/rules/no-regex-spaces */
105
- 'no-regex-spaces': 'error',
106
- /** disallow returning values from setters
107
- * https://eslint.org/docs/rules/no-setter-return
108
- * Off because getters and setters are forbidden */
109
- 'no-setter-return': 'off',
110
- /** disallow sparse arrays
111
- * https://eslint.org/docs/rules/no-sparse-arrays
112
- * only forbids sparse array literals, not `new Array(n)` */
113
- 'no-sparse-arrays': 'error',
114
- /** disallow template literal placeholder syntax in regular strings
115
- * https://eslint.org/docs/rules/no-template-curly-in-string */
116
- 'no-template-curly-in-string': 'error',
117
- /** avoid code that looks like two expressions but is actually one
118
- * https://eslint.org/docs/rules/no-unexpected-multiline */
119
- 'no-unexpected-multiline': 'error',
120
- /** disallow unreachable statements after a return, throw, continue, or break statement
121
- * https://eslint.org/docs/rules/no-unreachable */
122
- 'no-unreachable': 'error',
123
- /** disallow loops with a body that allows only one iteration
124
- * https://eslint.org/docs/rules/no-unreachable-loop */
125
- 'no-unreachable-loop': 'error',
126
- /** disallow return/throw/break/continue inside finally blocks
127
- * https://eslint.org/docs/rules/no-unsafe-finally */
128
- 'no-unsafe-finally': 'error',
129
- /** disallow negating the left operand of relational operators
130
- * https://eslint.org/docs/rules/no-unsafe-negation */
131
- 'no-unsafe-negation': 'error',
132
- /** disallow use of optional chaining in contexts where the undefined value is not allowed
133
- * https://eslint.org/docs/rules/no-unsafe-optional-chaining */
134
- 'no-unsafe-optional-chaining': 'error',
135
- /** Disallow useless backreferences in regular expressions
136
- * https://eslint.org/docs/rules/no-useless-backreference */
137
- 'no-useless-backreference': 'off',
138
- /** Disallow assignments that can lead to race conditions due to usage of await or yield
139
- * https://eslint.org/docs/rules/require-atomic-updates */
140
- 'require-atomic-updates': 'error',
141
- /** disallow comparisons with the value NaN
142
- * https://eslint.org/docs/rules/use-isnan */
143
- 'use-isnan': 'error',
144
- /** ensure that the results of typeof are compared against a valid string
145
- * https://eslint.org/docs/rules/valid-typeof */
146
- 'valid-typeof': ['error', { requireStringLiterals: true }],
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
  };
@@ -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
- /** disallow the 'use strict' directive
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
- strict: ['error', 'never'],
9
+ * this is handled for you and does not need to be present in your source files
10
+ */
11
+ strict: ["error", "never"],
9
12
  };