@wistia/eslint-config 2.9.0 → 2.10.0
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/.github/workflows/release.yml +1 -1
- package/.yarnrc.yml +0 -3
- package/CHANGELOG.md +6 -0
- package/package.json +9 -9
- package/src/configs/storybook.mjs +0 -1
- package/src/rules/base.mjs +7 -4
- package/src/rules/import.mjs +2 -24
- package/src/rules/typescript.mjs +2 -12
- package/test/__snapshots__/javascript.mjs.snap +31 -27
- package/test/__snapshots__/react.mjs.snap +1 -1
- package/test/__snapshots__/storybook.mjs.snap +0 -6
- package/test/__snapshots__/typescript.mjs.snap +47 -49
|
@@ -23,7 +23,7 @@ jobs:
|
|
|
23
23
|
steps:
|
|
24
24
|
- name: Generate GitHub App token
|
|
25
25
|
id: app-token
|
|
26
|
-
uses: actions/create-github-app-token@
|
|
26
|
+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
|
|
27
27
|
with:
|
|
28
28
|
client-id: ${{ secrets.ACTIONS_BOT_GH_APP_CLIENT_ID }}
|
|
29
29
|
private-key: ${{ secrets.ACTIONS_BOT_GH_APP_PRIVATE_KEY }}
|
package/.yarnrc.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @wistia/eslint-config
|
|
2
2
|
|
|
3
|
+
## 2.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#495](https://github.com/wistia/eslint-config/pull/495) [`3f3b641`](https://github.com/wistia/eslint-config/commit/3f3b6413c1a83bf0266112b8561b37c02f1947f7) Thanks [@okize](https://github.com/okize)! - feat: disable some rules we do not find useful
|
|
8
|
+
|
|
3
9
|
## 2.9.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"packageManager": "yarn@4.14.1",
|
|
6
6
|
"type": "module",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"test:export": "check-export-map"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
41
|
+
"@eslint-react/eslint-plugin": "^5.8.3",
|
|
42
42
|
"@eslint/compat": "^2.1.0",
|
|
43
43
|
"@eslint/js": "^10.0.1",
|
|
44
44
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^8.59.
|
|
46
|
-
"@typescript-eslint/parser": "^8.59.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.59.4",
|
|
46
|
+
"@typescript-eslint/parser": "^8.59.4",
|
|
47
47
|
"@vitest/eslint-plugin": "^1.6.17",
|
|
48
48
|
"confusing-browser-globals": "^1.0.11",
|
|
49
49
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
57
57
|
"eslint-plugin-n": "^18.0.1",
|
|
58
58
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
59
|
-
"eslint-plugin-playwright": "^2.10.
|
|
59
|
+
"eslint-plugin-playwright": "^2.10.4",
|
|
60
60
|
"eslint-plugin-prettier": "^5.5.5",
|
|
61
61
|
"eslint-plugin-promise": "^7.3.0",
|
|
62
|
-
"eslint-plugin-storybook": "^10.
|
|
62
|
+
"eslint-plugin-storybook": "^10.4.0",
|
|
63
63
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
64
64
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
65
65
|
"globals": "^17.6.0",
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"@commitlint/cli": "^21.0.1",
|
|
72
72
|
"@commitlint/config-conventional": "^21.0.1",
|
|
73
73
|
"check-export-map": "^1.3.1",
|
|
74
|
-
"eslint": "^10.
|
|
74
|
+
"eslint": "^10.4.0",
|
|
75
75
|
"glob": "^13.0.6",
|
|
76
76
|
"husky": "^9.1.7",
|
|
77
77
|
"prettier": "^3.8.3",
|
|
78
|
-
"storybook": "^10.
|
|
78
|
+
"storybook": "^10.4.0",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
|
-
"vitest": "^4.1.
|
|
80
|
+
"vitest": "^4.1.7"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"eslint": ">= 10",
|
|
@@ -16,7 +16,6 @@ export default [
|
|
|
16
16
|
// storybook >7 requires default exports in stories
|
|
17
17
|
'import-x/no-anonymous-default-export': 'off',
|
|
18
18
|
'import-x/no-default-export': 'off',
|
|
19
|
-
'import-x/no-extraneous-dependencies': ['error', { devDependencies: true }],
|
|
20
19
|
'import-x/prefer-default-export': 'error',
|
|
21
20
|
|
|
22
21
|
// the default export is always called `meta` so the filenames
|
package/src/rules/base.mjs
CHANGED
|
@@ -293,7 +293,9 @@ export default {
|
|
|
293
293
|
|
|
294
294
|
// Enforce camelcase naming convention
|
|
295
295
|
// https://eslint.org/docs/rules/camelcase
|
|
296
|
-
|
|
296
|
+
// decision: turned off to allow flexibility in naming, especially when working with APIs
|
|
297
|
+
// that may not follow camelCase conventions
|
|
298
|
+
camelcase: 'off',
|
|
297
299
|
|
|
298
300
|
// Enforce or disallow capitalization of the first letter of a comment
|
|
299
301
|
// https://eslint.org/docs/rules/capitalized-comments
|
|
@@ -350,7 +352,7 @@ export default {
|
|
|
350
352
|
|
|
351
353
|
// Require or disallow named function expressions
|
|
352
354
|
// https://eslint.org/docs/rules/func-names
|
|
353
|
-
'func-names': ['error', '
|
|
355
|
+
'func-names': ['error', 'as-needed'],
|
|
354
356
|
|
|
355
357
|
// Enforce the consistent use of either function declarations or expressions assigned to variables
|
|
356
358
|
// https://eslint.org/docs/rules/func-style
|
|
@@ -460,7 +462,9 @@ export default {
|
|
|
460
462
|
|
|
461
463
|
// Disallow the use of console
|
|
462
464
|
// https://eslint.org/docs/rules/no-console
|
|
463
|
-
|
|
465
|
+
// decision: allow console methods that are commonly used for logging and error reporting,
|
|
466
|
+
// but disallow others that are often left in accidentally
|
|
467
|
+
'no-console': ['error', { allow: ['log', 'warn', 'error'] }],
|
|
464
468
|
|
|
465
469
|
// Disallow continue statements
|
|
466
470
|
// https://eslint.org/docs/rules/no-continue
|
|
@@ -636,7 +640,6 @@ export default {
|
|
|
636
640
|
'request', // for Express requests
|
|
637
641
|
'res', // for Express responses
|
|
638
642
|
'response', // for Express responses
|
|
639
|
-
'$scope', // for Angular 1 scopes
|
|
640
643
|
'staticContext', // for ReactRouter context
|
|
641
644
|
],
|
|
642
645
|
},
|
package/src/rules/import.mjs
CHANGED
|
@@ -39,30 +39,8 @@ export default {
|
|
|
39
39
|
|
|
40
40
|
// Forbid the use of extraneous packages
|
|
41
41
|
// https://github.com/un-ts/eslint-plugin-import-x/blob/master/docs/rules/no-extraneous-dependencies.md
|
|
42
|
-
//
|
|
43
|
-
'import-x/no-extraneous-dependencies':
|
|
44
|
-
'error',
|
|
45
|
-
{
|
|
46
|
-
devDependencies: [
|
|
47
|
-
'**/*{.,_}{test,vitest,spec}.{js,jsx,ts,tsx}', // tests where the extension or filename suffix denotes that it is a test
|
|
48
|
-
'**/vite.config.{ts,js,cjs,mjs,mts}', // vite config
|
|
49
|
-
'**/vitest.config.{ts,js,cjs,mjs,mts}', // vitest config
|
|
50
|
-
'**/jest.config.{js,cjs,mjs,mts}', // jest config
|
|
51
|
-
'**/jest.setup.{js,cjs,mjs,mts}', // jest setup
|
|
52
|
-
'**/eslint.config.{js,cjs,mjs,mts}', // eslint config
|
|
53
|
-
'**/.eslintrc.{js,cjs}', // eslint config
|
|
54
|
-
'**/.stylelintrc.{cjs,js,json,yaml,yml}', // stylelint config
|
|
55
|
-
'**/stylelint.config.{cjs,mjs,mts,js}', // stylelint config
|
|
56
|
-
'**/esbuild.config.{js,cjs,mjs,mts}', // esbuild config
|
|
57
|
-
'**/tsup.config.{js,cjs,mjs,mts}', // tsup config
|
|
58
|
-
'**/webpack.config.{js,cjs,mjs,mts}', // webpack config
|
|
59
|
-
'**/webpack.config.*.{js,cjs,mjs,mts}', // webpack alt config
|
|
60
|
-
'**/rollup.config.{js,cjs,mjs,mts}', // rollup config
|
|
61
|
-
'**/rollup.config.*.{js,cjs,mjs,mts}', // rollup config
|
|
62
|
-
],
|
|
63
|
-
optionalDependencies: false,
|
|
64
|
-
},
|
|
65
|
-
],
|
|
42
|
+
// rely on knip to handle this check, since it can be very slow
|
|
43
|
+
'import-x/no-extraneous-dependencies': 'off',
|
|
66
44
|
|
|
67
45
|
// Forbid mutable exports
|
|
68
46
|
// https://github.com/un-ts/eslint-plugin-import-x/blob/master/docs/rules/no-mutable-exports.md
|
package/src/rules/typescript.mjs
CHANGED
|
@@ -331,18 +331,8 @@ export default {
|
|
|
331
331
|
|
|
332
332
|
// Disallow magic numbers
|
|
333
333
|
// https://typescript-eslint.io/rules/no-magic-numbers
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
{
|
|
337
|
-
ignore: [-1, 0, 1, 2, 3, 4, 5, 100, 1024, 1000, 10000],
|
|
338
|
-
ignoreArrayIndexes: true,
|
|
339
|
-
ignoreDefaultValues: true,
|
|
340
|
-
ignoreTypeIndexes: true,
|
|
341
|
-
ignoreReadonlyClassProperties: true,
|
|
342
|
-
ignoreEnums: true,
|
|
343
|
-
ignoreNumericLiteralTypes: true,
|
|
344
|
-
},
|
|
345
|
-
],
|
|
334
|
+
// decision: good intention but it's the most disabled rule
|
|
335
|
+
'@typescript-eslint/no-magic-numbers': 'off',
|
|
346
336
|
|
|
347
337
|
// Disallow the void operator except when used to discard a value
|
|
348
338
|
// https://typescript-eslint.io/rules/no-meaningless-void-operator
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"undefined": false,
|
|
65
65
|
"unescape": false,
|
|
66
66
|
},
|
|
67
|
-
"parser": "typescript-eslint/parser@8.59.
|
|
67
|
+
"parser": "typescript-eslint/parser@8.59.4",
|
|
68
68
|
"parserOptions": {
|
|
69
69
|
"requireConfigFile": false,
|
|
70
70
|
},
|
|
@@ -698,17 +698,18 @@
|
|
|
698
698
|
2,
|
|
699
699
|
],
|
|
700
700
|
"camelcase": [
|
|
701
|
-
|
|
701
|
+
0,
|
|
702
702
|
{
|
|
703
703
|
"allow": [],
|
|
704
704
|
"ignoreDestructuring": false,
|
|
705
705
|
"ignoreGlobals": false,
|
|
706
706
|
"ignoreImports": false,
|
|
707
|
-
"properties": "
|
|
707
|
+
"properties": "always",
|
|
708
708
|
},
|
|
709
709
|
],
|
|
710
710
|
"capitalized-comments": [
|
|
711
711
|
0,
|
|
712
|
+
"always",
|
|
712
713
|
],
|
|
713
714
|
"class-methods-use-this": [
|
|
714
715
|
2,
|
|
@@ -779,10 +780,11 @@
|
|
|
779
780
|
],
|
|
780
781
|
"func-name-matching": [
|
|
781
782
|
0,
|
|
783
|
+
"always",
|
|
782
784
|
],
|
|
783
785
|
"func-names": [
|
|
784
786
|
2,
|
|
785
|
-
"
|
|
787
|
+
"as-needed",
|
|
786
788
|
{},
|
|
787
789
|
],
|
|
788
790
|
"func-style": [
|
|
@@ -934,27 +936,7 @@
|
|
|
934
936
|
2,
|
|
935
937
|
],
|
|
936
938
|
"import-x/no-extraneous-dependencies": [
|
|
937
|
-
|
|
938
|
-
{
|
|
939
|
-
"devDependencies": [
|
|
940
|
-
"**/*{.,_}{test,vitest,spec}.{js,jsx,ts,tsx}",
|
|
941
|
-
"**/vite.config.{ts,js,cjs,mjs,mts}",
|
|
942
|
-
"**/vitest.config.{ts,js,cjs,mjs,mts}",
|
|
943
|
-
"**/jest.config.{js,cjs,mjs,mts}",
|
|
944
|
-
"**/jest.setup.{js,cjs,mjs,mts}",
|
|
945
|
-
"**/eslint.config.{js,cjs,mjs,mts}",
|
|
946
|
-
"**/.eslintrc.{js,cjs}",
|
|
947
|
-
"**/.stylelintrc.{cjs,js,json,yaml,yml}",
|
|
948
|
-
"**/stylelint.config.{cjs,mjs,mts,js}",
|
|
949
|
-
"**/esbuild.config.{js,cjs,mjs,mts}",
|
|
950
|
-
"**/tsup.config.{js,cjs,mjs,mts}",
|
|
951
|
-
"**/webpack.config.{js,cjs,mjs,mts}",
|
|
952
|
-
"**/webpack.config.*.{js,cjs,mjs,mts}",
|
|
953
|
-
"**/rollup.config.{js,cjs,mjs,mts}",
|
|
954
|
-
"**/rollup.config.*.{js,cjs,mjs,mts}",
|
|
955
|
-
],
|
|
956
|
-
"optionalDependencies": false,
|
|
957
|
-
},
|
|
939
|
+
0,
|
|
958
940
|
],
|
|
959
941
|
"import-x/no-import-module-exports": [
|
|
960
942
|
2,
|
|
@@ -1058,6 +1040,7 @@
|
|
|
1058
1040
|
],
|
|
1059
1041
|
"init-declarations": [
|
|
1060
1042
|
0,
|
|
1043
|
+
"always",
|
|
1061
1044
|
],
|
|
1062
1045
|
"logical-assignment-operators": [
|
|
1063
1046
|
2,
|
|
@@ -1081,9 +1064,11 @@
|
|
|
1081
1064
|
],
|
|
1082
1065
|
"max-lines-per-function": [
|
|
1083
1066
|
0,
|
|
1067
|
+
50,
|
|
1084
1068
|
],
|
|
1085
1069
|
"max-nested-callbacks": [
|
|
1086
1070
|
0,
|
|
1071
|
+
10,
|
|
1087
1072
|
],
|
|
1088
1073
|
"max-params": [
|
|
1089
1074
|
0,
|
|
@@ -1144,7 +1129,13 @@
|
|
|
1144
1129
|
],
|
|
1145
1130
|
"no-console": [
|
|
1146
1131
|
2,
|
|
1147
|
-
{
|
|
1132
|
+
{
|
|
1133
|
+
"allow": [
|
|
1134
|
+
"log",
|
|
1135
|
+
"warn",
|
|
1136
|
+
"error",
|
|
1137
|
+
],
|
|
1138
|
+
},
|
|
1148
1139
|
],
|
|
1149
1140
|
"no-const-assign": [
|
|
1150
1141
|
2,
|
|
@@ -1356,6 +1347,18 @@
|
|
|
1356
1347
|
],
|
|
1357
1348
|
"no-magic-numbers": [
|
|
1358
1349
|
0,
|
|
1350
|
+
{
|
|
1351
|
+
"detectObjects": false,
|
|
1352
|
+
"enforceConst": false,
|
|
1353
|
+
"ignore": [],
|
|
1354
|
+
"ignoreArrayIndexes": false,
|
|
1355
|
+
"ignoreClassFieldInitialValues": false,
|
|
1356
|
+
"ignoreDefaultValues": false,
|
|
1357
|
+
"ignoreEnums": false,
|
|
1358
|
+
"ignoreNumericLiteralTypes": false,
|
|
1359
|
+
"ignoreReadonlyClassProperties": false,
|
|
1360
|
+
"ignoreTypeIndexes": false,
|
|
1361
|
+
},
|
|
1359
1362
|
],
|
|
1360
1363
|
"no-misleading-character-class": [
|
|
1361
1364
|
2,
|
|
@@ -1418,7 +1421,6 @@
|
|
|
1418
1421
|
"request",
|
|
1419
1422
|
"res",
|
|
1420
1423
|
"response",
|
|
1421
|
-
"$scope",
|
|
1422
1424
|
"staticContext",
|
|
1423
1425
|
],
|
|
1424
1426
|
"props": true,
|
|
@@ -1918,7 +1920,9 @@
|
|
|
1918
1920
|
"caughtErrors": "all",
|
|
1919
1921
|
"caughtErrorsIgnorePattern": "^_",
|
|
1920
1922
|
"destructuredArrayIgnorePattern": "^_",
|
|
1923
|
+
"ignoreClassWithStaticInitBlock": false,
|
|
1921
1924
|
"ignoreRestSiblings": true,
|
|
1925
|
+
"ignoreUsingDeclarations": false,
|
|
1922
1926
|
"reportUsedIgnorePattern": false,
|
|
1923
1927
|
"vars": "all",
|
|
1924
1928
|
"varsIgnorePattern": "^_",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"undefined": false,
|
|
65
65
|
"unescape": false,
|
|
66
66
|
},
|
|
67
|
-
"parser": "typescript-eslint/parser@8.59.
|
|
67
|
+
"parser": "typescript-eslint/parser@8.59.4",
|
|
68
68
|
"parserOptions": {
|
|
69
69
|
"ecmaVersion": 2024,
|
|
70
70
|
"project": "./tsconfig.json",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"plugins": [
|
|
79
79
|
"@",
|
|
80
80
|
"@stylistic:@stylistic/eslint-plugin@5.10.0",
|
|
81
|
-
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.59.
|
|
81
|
+
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.59.4",
|
|
82
82
|
"barrel-files:eslint-plugin-barrel-files@3.0.1",
|
|
83
83
|
"filenames",
|
|
84
84
|
"import-x:eslint-plugin-import-x@4.16.2",
|
|
@@ -831,30 +831,16 @@
|
|
|
831
831
|
2,
|
|
832
832
|
],
|
|
833
833
|
"@typescript-eslint/no-magic-numbers": [
|
|
834
|
-
|
|
834
|
+
0,
|
|
835
835
|
{
|
|
836
836
|
"detectObjects": false,
|
|
837
837
|
"enforceConst": false,
|
|
838
|
-
"ignore": [
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
4,
|
|
845
|
-
5,
|
|
846
|
-
100,
|
|
847
|
-
1024,
|
|
848
|
-
1000,
|
|
849
|
-
10000,
|
|
850
|
-
],
|
|
851
|
-
"ignoreArrayIndexes": true,
|
|
852
|
-
"ignoreClassFieldInitialValues": false,
|
|
853
|
-
"ignoreDefaultValues": true,
|
|
854
|
-
"ignoreEnums": true,
|
|
855
|
-
"ignoreNumericLiteralTypes": true,
|
|
856
|
-
"ignoreReadonlyClassProperties": true,
|
|
857
|
-
"ignoreTypeIndexes": true,
|
|
838
|
+
"ignore": [],
|
|
839
|
+
"ignoreArrayIndexes": false,
|
|
840
|
+
"ignoreEnums": false,
|
|
841
|
+
"ignoreNumericLiteralTypes": false,
|
|
842
|
+
"ignoreReadonlyClassProperties": false,
|
|
843
|
+
"ignoreTypeIndexes": false,
|
|
858
844
|
},
|
|
859
845
|
],
|
|
860
846
|
"@typescript-eslint/no-meaningless-void-operator": [
|
|
@@ -1149,17 +1135,18 @@
|
|
|
1149
1135
|
2,
|
|
1150
1136
|
],
|
|
1151
1137
|
"camelcase": [
|
|
1152
|
-
|
|
1138
|
+
0,
|
|
1153
1139
|
{
|
|
1154
1140
|
"allow": [],
|
|
1155
1141
|
"ignoreDestructuring": false,
|
|
1156
1142
|
"ignoreGlobals": false,
|
|
1157
1143
|
"ignoreImports": false,
|
|
1158
|
-
"properties": "
|
|
1144
|
+
"properties": "always",
|
|
1159
1145
|
},
|
|
1160
1146
|
],
|
|
1161
1147
|
"capitalized-comments": [
|
|
1162
1148
|
0,
|
|
1149
|
+
"always",
|
|
1163
1150
|
],
|
|
1164
1151
|
"class-methods-use-this": [
|
|
1165
1152
|
0,
|
|
@@ -1230,10 +1217,11 @@
|
|
|
1230
1217
|
],
|
|
1231
1218
|
"func-name-matching": [
|
|
1232
1219
|
0,
|
|
1220
|
+
"always",
|
|
1233
1221
|
],
|
|
1234
1222
|
"func-names": [
|
|
1235
1223
|
2,
|
|
1236
|
-
"
|
|
1224
|
+
"as-needed",
|
|
1237
1225
|
{},
|
|
1238
1226
|
],
|
|
1239
1227
|
"func-style": [
|
|
@@ -1385,27 +1373,7 @@
|
|
|
1385
1373
|
2,
|
|
1386
1374
|
],
|
|
1387
1375
|
"import-x/no-extraneous-dependencies": [
|
|
1388
|
-
|
|
1389
|
-
{
|
|
1390
|
-
"devDependencies": [
|
|
1391
|
-
"**/*{.,_}{test,vitest,spec}.{js,jsx,ts,tsx}",
|
|
1392
|
-
"**/vite.config.{ts,js,cjs,mjs,mts}",
|
|
1393
|
-
"**/vitest.config.{ts,js,cjs,mjs,mts}",
|
|
1394
|
-
"**/jest.config.{js,cjs,mjs,mts}",
|
|
1395
|
-
"**/jest.setup.{js,cjs,mjs,mts}",
|
|
1396
|
-
"**/eslint.config.{js,cjs,mjs,mts}",
|
|
1397
|
-
"**/.eslintrc.{js,cjs}",
|
|
1398
|
-
"**/.stylelintrc.{cjs,js,json,yaml,yml}",
|
|
1399
|
-
"**/stylelint.config.{cjs,mjs,mts,js}",
|
|
1400
|
-
"**/esbuild.config.{js,cjs,mjs,mts}",
|
|
1401
|
-
"**/tsup.config.{js,cjs,mjs,mts}",
|
|
1402
|
-
"**/webpack.config.{js,cjs,mjs,mts}",
|
|
1403
|
-
"**/webpack.config.*.{js,cjs,mjs,mts}",
|
|
1404
|
-
"**/rollup.config.{js,cjs,mjs,mts}",
|
|
1405
|
-
"**/rollup.config.*.{js,cjs,mjs,mts}",
|
|
1406
|
-
],
|
|
1407
|
-
"optionalDependencies": false,
|
|
1408
|
-
},
|
|
1376
|
+
0,
|
|
1409
1377
|
],
|
|
1410
1378
|
"import-x/no-import-module-exports": [
|
|
1411
1379
|
2,
|
|
@@ -1509,6 +1477,7 @@
|
|
|
1509
1477
|
],
|
|
1510
1478
|
"init-declarations": [
|
|
1511
1479
|
0,
|
|
1480
|
+
"always",
|
|
1512
1481
|
],
|
|
1513
1482
|
"logical-assignment-operators": [
|
|
1514
1483
|
2,
|
|
@@ -1532,12 +1501,15 @@
|
|
|
1532
1501
|
],
|
|
1533
1502
|
"max-lines-per-function": [
|
|
1534
1503
|
0,
|
|
1504
|
+
50,
|
|
1535
1505
|
],
|
|
1536
1506
|
"max-nested-callbacks": [
|
|
1537
1507
|
0,
|
|
1508
|
+
10,
|
|
1538
1509
|
],
|
|
1539
1510
|
"max-params": [
|
|
1540
1511
|
0,
|
|
1512
|
+
3,
|
|
1541
1513
|
],
|
|
1542
1514
|
"max-statements": [
|
|
1543
1515
|
0,
|
|
@@ -1594,7 +1566,13 @@
|
|
|
1594
1566
|
],
|
|
1595
1567
|
"no-console": [
|
|
1596
1568
|
2,
|
|
1597
|
-
{
|
|
1569
|
+
{
|
|
1570
|
+
"allow": [
|
|
1571
|
+
"log",
|
|
1572
|
+
"warn",
|
|
1573
|
+
"error",
|
|
1574
|
+
],
|
|
1575
|
+
},
|
|
1598
1576
|
],
|
|
1599
1577
|
"no-const-assign": [
|
|
1600
1578
|
2,
|
|
@@ -1802,6 +1780,18 @@
|
|
|
1802
1780
|
],
|
|
1803
1781
|
"no-magic-numbers": [
|
|
1804
1782
|
0,
|
|
1783
|
+
{
|
|
1784
|
+
"detectObjects": false,
|
|
1785
|
+
"enforceConst": false,
|
|
1786
|
+
"ignore": [],
|
|
1787
|
+
"ignoreArrayIndexes": false,
|
|
1788
|
+
"ignoreClassFieldInitialValues": false,
|
|
1789
|
+
"ignoreDefaultValues": false,
|
|
1790
|
+
"ignoreEnums": false,
|
|
1791
|
+
"ignoreNumericLiteralTypes": false,
|
|
1792
|
+
"ignoreReadonlyClassProperties": false,
|
|
1793
|
+
"ignoreTypeIndexes": false,
|
|
1794
|
+
},
|
|
1805
1795
|
],
|
|
1806
1796
|
"no-misleading-character-class": [
|
|
1807
1797
|
2,
|
|
@@ -1864,7 +1854,6 @@
|
|
|
1864
1854
|
"request",
|
|
1865
1855
|
"res",
|
|
1866
1856
|
"response",
|
|
1867
|
-
"$scope",
|
|
1868
1857
|
"staticContext",
|
|
1869
1858
|
],
|
|
1870
1859
|
"props": true,
|
|
@@ -2366,6 +2355,15 @@
|
|
|
2366
2355
|
],
|
|
2367
2356
|
"no-unused-vars": [
|
|
2368
2357
|
0,
|
|
2358
|
+
{
|
|
2359
|
+
"args": "after-used",
|
|
2360
|
+
"caughtErrors": "all",
|
|
2361
|
+
"ignoreClassWithStaticInitBlock": false,
|
|
2362
|
+
"ignoreRestSiblings": false,
|
|
2363
|
+
"ignoreUsingDeclarations": false,
|
|
2364
|
+
"reportUsedIgnorePattern": false,
|
|
2365
|
+
"vars": "all",
|
|
2366
|
+
},
|
|
2369
2367
|
],
|
|
2370
2368
|
"no-use-before-define": [
|
|
2371
2369
|
0,
|