@wistia/eslint-config 0.17.9 → 0.17.10
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.10",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"main": "react.js",
|
|
6
6
|
"exports": {
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
"test:stylelint": "stylelint --print-config ./test/index.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@babel/core": "^7.21.
|
|
33
|
-
"@babel/eslint-parser": "^7.
|
|
32
|
+
"@babel/core": "^7.21.4",
|
|
33
|
+
"@babel/eslint-parser": "^7.21.3",
|
|
34
34
|
"@babel/preset-react": "^7.18.6",
|
|
35
35
|
"@rushstack/eslint-patch": "^1.2.0",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
37
|
-
"@typescript-eslint/parser": "^5.
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
37
|
+
"@typescript-eslint/parser": "^5.58.0",
|
|
38
38
|
"confusing-browser-globals": "^1.0.11",
|
|
39
|
-
"eslint": "^8.
|
|
40
|
-
"eslint-config-prettier": "^8.
|
|
41
|
-
"eslint-import-resolver-typescript": "^3.5.
|
|
39
|
+
"eslint": "^8.38.0",
|
|
40
|
+
"eslint-config-prettier": "^8.8.0",
|
|
41
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
42
42
|
"eslint-plugin-better-styled-components": "^1.1.2",
|
|
43
|
-
"eslint-plugin-cypress": "^2.
|
|
43
|
+
"eslint-plugin-cypress": "^2.13.2",
|
|
44
44
|
"eslint-plugin-filenames": "^1.3.2",
|
|
45
45
|
"eslint-plugin-import": "^2.27.5",
|
|
46
46
|
"eslint-plugin-jest": "^27.2.1",
|
|
47
47
|
"eslint-plugin-jest-dom": "^4.0.3",
|
|
48
48
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
49
|
-
"eslint-plugin-jsdoc": "^
|
|
49
|
+
"eslint-plugin-jsdoc": "^41.1.0",
|
|
50
50
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
51
51
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
52
52
|
"eslint-plugin-no-snapshot-testing": "^1.0.61",
|
|
@@ -61,22 +61,22 @@
|
|
|
61
61
|
"eslint-plugin-testing-library": "^5.10.2",
|
|
62
62
|
"postcss": "^8.4.21",
|
|
63
63
|
"postcss-scss": "^4.0.6",
|
|
64
|
-
"prettier": "^2.8.
|
|
65
|
-
"stylelint": "^15.
|
|
64
|
+
"prettier": "^2.8.7",
|
|
65
|
+
"stylelint": "^15.4.0",
|
|
66
66
|
"stylelint-config-prettier": "^9.0.5",
|
|
67
67
|
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
|
|
68
68
|
"stylelint-prettier": "^3.0.0",
|
|
69
69
|
"stylelint-processor-styled-components": "^1.10.0",
|
|
70
|
-
"stylelint-scss": "^4.
|
|
70
|
+
"stylelint-scss": "^4.6.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@commitlint/cli": "^17.
|
|
73
|
+
"@commitlint/cli": "^17.5.1",
|
|
74
74
|
"@commitlint/config-conventional": "^17.4.4",
|
|
75
75
|
"check-export-map": "^1.3.0",
|
|
76
76
|
"husky": "^8.0.3",
|
|
77
|
-
"jest": "^29.
|
|
77
|
+
"jest": "^29.5.0",
|
|
78
78
|
"jest-specific-snapshot": "^8.0.0",
|
|
79
|
-
"typescript": "^5.0.
|
|
79
|
+
"typescript": "^5.0.4"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
@@ -281,14 +281,11 @@ module.exports = {
|
|
|
281
281
|
ignorePropertyModificationsFor: [
|
|
282
282
|
'acc', // for reduce accumulators
|
|
283
283
|
'accumulator', // for reduce accumulators
|
|
284
|
-
'
|
|
285
|
-
'ctx', // for Koa routing
|
|
286
|
-
'context', // for Koa routing
|
|
284
|
+
'event', // for event.returnvalue
|
|
287
285
|
'req', // for Express requests
|
|
288
286
|
'request', // for Express requests
|
|
289
287
|
'res', // for Express responses
|
|
290
288
|
'response', // for Express responses
|
|
291
|
-
'$scope', // for Angular 1 scopes
|
|
292
289
|
'staticContext', // for ReactRouter context
|
|
293
290
|
],
|
|
294
291
|
},
|
|
@@ -540,7 +537,15 @@ module.exports = {
|
|
|
540
537
|
|
|
541
538
|
// disallow declaration of variables that are not used in the code
|
|
542
539
|
// https://eslint.org/docs/rules/no-unused-vars
|
|
543
|
-
'no-unused-vars': [
|
|
540
|
+
'no-unused-vars': [
|
|
541
|
+
'error',
|
|
542
|
+
{
|
|
543
|
+
args: 'after-used',
|
|
544
|
+
varsIgnorePattern: '^_',
|
|
545
|
+
argsIgnorePattern: '^_',
|
|
546
|
+
ignoreRestSiblings: true,
|
|
547
|
+
},
|
|
548
|
+
],
|
|
544
549
|
|
|
545
550
|
// disallow use of variables before they are defined
|
|
546
551
|
// https://eslint.org/docs/rules/no-use-before-define
|
|
@@ -173,7 +173,12 @@ module.exports = {
|
|
|
173
173
|
|
|
174
174
|
// Require expressions of type void to appear in statement position
|
|
175
175
|
// https://typescript-eslint.io/rules/no-confusing-void-expression
|
|
176
|
-
'@typescript-eslint/no-confusing-void-expression':
|
|
176
|
+
'@typescript-eslint/no-confusing-void-expression': [
|
|
177
|
+
'error',
|
|
178
|
+
{
|
|
179
|
+
ignoreArrowShorthand: true,
|
|
180
|
+
},
|
|
181
|
+
],
|
|
177
182
|
|
|
178
183
|
// Disallow duplicate enum member values
|
|
179
184
|
// https://typescript-eslint.io/rules/no-duplicate-enum-values
|
|
@@ -398,7 +403,8 @@ module.exports = {
|
|
|
398
403
|
|
|
399
404
|
// Require <code>Array#sort</code> calls to always provide a <code>compareFunction</code>
|
|
400
405
|
// https://typescript-eslint.io/rules/require-array-sort-compare
|
|
401
|
-
|
|
406
|
+
// decision: allow simple alpha sorts on string arrays
|
|
407
|
+
'@typescript-eslint/require-array-sort-compare': ['error', { ignoreStringArrays: true }],
|
|
402
408
|
|
|
403
409
|
// Require both operands of addition to have type <code>number</code> or <code>string</code>
|
|
404
410
|
// https://typescript-eslint.io/rules/restrict-plus-operands
|
|
@@ -414,7 +420,12 @@ module.exports = {
|
|
|
414
420
|
|
|
415
421
|
// Disallow certain types in boolean expressions
|
|
416
422
|
// https://typescript-eslint.io/rules/strict-boolean-expressions
|
|
417
|
-
'@typescript-eslint/strict-boolean-expressions':
|
|
423
|
+
'@typescript-eslint/strict-boolean-expressions': [
|
|
424
|
+
'error',
|
|
425
|
+
{
|
|
426
|
+
allowNullableBoolean: true,
|
|
427
|
+
},
|
|
428
|
+
],
|
|
418
429
|
|
|
419
430
|
// Require switch-case statements to be exhaustive with union type
|
|
420
431
|
// https://typescript-eslint.io/rules/switch-exhaustiveness-check
|
|
@@ -530,11 +541,13 @@ module.exports = {
|
|
|
530
541
|
'@typescript-eslint/no-magic-numbers': [
|
|
531
542
|
'error',
|
|
532
543
|
{
|
|
533
|
-
ignore: [0, 1, 2, 3, 4, 5, 1000],
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
544
|
+
ignore: [-1, 0, 1, 2, 3, 4, 5, 1000, 2000, 3000, 4000, 5000],
|
|
545
|
+
ignoreArrayIndexes: true,
|
|
546
|
+
ignoreDefaultValues: true,
|
|
547
|
+
ignoreTypeIndexes: true,
|
|
548
|
+
ignoreReadonlyClassProperties: true,
|
|
549
|
+
ignoreEnums: true,
|
|
550
|
+
ignoreNumericLiteralTypes: true,
|
|
538
551
|
},
|
|
539
552
|
],
|
|
540
553
|
|
|
@@ -560,7 +573,15 @@ module.exports = {
|
|
|
560
573
|
|
|
561
574
|
// Disallow unused variables
|
|
562
575
|
// https://typescript-eslint.io/rules/no-unused-vars
|
|
563
|
-
'@typescript-eslint/no-unused-vars':
|
|
576
|
+
'@typescript-eslint/no-unused-vars': [
|
|
577
|
+
'error',
|
|
578
|
+
{
|
|
579
|
+
args: 'after-used',
|
|
580
|
+
varsIgnorePattern: '^_',
|
|
581
|
+
argsIgnorePattern: '^_',
|
|
582
|
+
ignoreRestSiblings: true,
|
|
583
|
+
},
|
|
584
|
+
],
|
|
564
585
|
|
|
565
586
|
// Disallow the use of variables before they are defined
|
|
566
587
|
// https://typescript-eslint.io/rules/no-use-before-define
|