@mikey-pro/eslint-config 6.4.10 → 6.4.13
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/index.js +10 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ module.exports = {
|
|
|
4
4
|
env: {
|
|
5
5
|
browser: true,
|
|
6
6
|
commonjs: true,
|
|
7
|
-
|
|
7
|
+
es2022: true,
|
|
8
8
|
es6: true,
|
|
9
9
|
node: true,
|
|
10
10
|
},
|
|
@@ -221,6 +221,12 @@ module.exports = {
|
|
|
221
221
|
'unicorn/no-array-callback-reference': 0,
|
|
222
222
|
},
|
|
223
223
|
},
|
|
224
|
+
{
|
|
225
|
+
files: ['*.test.js'],
|
|
226
|
+
rules: {
|
|
227
|
+
'jest/unbound-method': 0,
|
|
228
|
+
},
|
|
229
|
+
},
|
|
224
230
|
{
|
|
225
231
|
files: ['*.cy.*'],
|
|
226
232
|
plugins: ['cypress'],
|
|
@@ -362,6 +368,8 @@ module.exports = {
|
|
|
362
368
|
'prefer-rest-params': 1,
|
|
363
369
|
'prefer-spread': 1,
|
|
364
370
|
'prefer-template': 1,
|
|
371
|
+
'prefer-const': 0,
|
|
372
|
+
'disable-autofix/prefer-const': 1,
|
|
365
373
|
'prettier/prettier': [1, { parser: 'babel' }],
|
|
366
374
|
'quote-props': [1, 'as-needed'],
|
|
367
375
|
quotes: [
|
|
@@ -373,7 +381,7 @@ module.exports = {
|
|
|
373
381
|
},
|
|
374
382
|
],
|
|
375
383
|
radix: 1,
|
|
376
|
-
'react-hooks/exhaustive-deps':
|
|
384
|
+
'react-hooks/exhaustive-deps': 0,
|
|
377
385
|
'react-hooks/rules-of-hooks': 1,
|
|
378
386
|
'react/display-name': [1, { ignoreTranspilerName: false }],
|
|
379
387
|
'react/function-component-definition': [
|