@wistia/eslint-config 2.8.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.
@@ -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@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
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 }}
@@ -49,7 +49,7 @@ jobs:
49
49
  echo "NEW_PACKAGE_VERSION=$(yarn changeset status --output=release.json && jq -r '.releases[0].newVersion' release.json && rm release.json)" >> "$GITHUB_ENV"
50
50
 
51
51
  - name: Create Release Pull Request or Publish to npm
52
- uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
52
+ uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0
53
53
  id: changesets
54
54
  with:
55
55
  createGithubReleases: true
package/.yarnrc.yml CHANGED
@@ -1,6 +1,3 @@
1
- approvedGitRepositories:
2
- - "**"
3
-
4
1
  enableGlobalCache: false
5
2
 
6
3
  enableScripts: true
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
9
+ ## 2.9.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#491](https://github.com/wistia/eslint-config/pull/491) [`8a65e35`](https://github.com/wistia/eslint-config/commit/8a65e35f1fd9544f8c9367efab1b5921eee1fdc7) Thanks [@okize](https://github.com/okize)! - feat: update react rules for new `eslint-plugin-n` version
14
+
3
15
  ## 2.8.0
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "2.8.0",
3
+ "version": "2.10.0",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "packageManager": "yarn@4.14.1",
6
6
  "type": "module",
@@ -38,13 +38,13 @@
38
38
  "test:export": "check-export-map"
39
39
  },
40
40
  "dependencies": {
41
- "@eslint-react/eslint-plugin": "^5.7.3",
42
- "@eslint/compat": "^2.0.5",
41
+ "@eslint-react/eslint-plugin": "^5.8.3",
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.0",
46
- "@typescript-eslint/parser": "^8.59.0",
47
- "@vitest/eslint-plugin": "^1.6.16",
45
+ "@typescript-eslint/eslint-plugin": "^8.59.4",
46
+ "@typescript-eslint/parser": "^8.59.4",
47
+ "@vitest/eslint-plugin": "^1.6.17",
48
48
  "confusing-browser-globals": "^1.0.11",
49
49
  "eslint-import-resolver-typescript": "^4.4.4",
50
50
  "eslint-plugin-barrel-files": "^3.0.1",
@@ -54,30 +54,30 @@
54
54
  "eslint-plugin-jest-dom": "^5.5.0",
55
55
  "eslint-plugin-jest-formatting": "^3.1.0",
56
56
  "eslint-plugin-jsx-a11y": "^6.10.2",
57
- "eslint-plugin-n": "^17.24.0",
58
- "eslint-plugin-no-only-tests": "^3.3.0",
59
- "eslint-plugin-playwright": "^2.10.2",
57
+ "eslint-plugin-n": "^18.0.1",
58
+ "eslint-plugin-no-only-tests": "^3.4.0",
59
+ "eslint-plugin-playwright": "^2.10.4",
60
60
  "eslint-plugin-prettier": "^5.5.5",
61
- "eslint-plugin-promise": "^7.2.1",
62
- "eslint-plugin-storybook": "^10.3.5",
61
+ "eslint-plugin-promise": "^7.3.0",
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
- "globals": "^17.5.0",
66
- "globals-vitest": "^4.1.5"
65
+ "globals": "^17.6.0",
66
+ "globals-vitest": "^4.1.6"
67
67
  },
68
68
  "devDependencies": {
69
- "@changesets/changelog-github": "^0.6.0",
69
+ "@changesets/changelog-github": "^0.7.0",
70
70
  "@changesets/cli": "^2.31.0",
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.2.1",
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.3.5",
78
+ "storybook": "^10.4.0",
79
79
  "typescript": "^6.0.3",
80
- "vitest": "^4.1.5"
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
@@ -293,7 +293,9 @@ export default {
293
293
 
294
294
  // Enforce camelcase naming convention
295
295
  // https://eslint.org/docs/rules/camelcase
296
- camelcase: ['error', { properties: 'never', ignoreDestructuring: false }],
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', 'always'],
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
- 'no-console': 'error',
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
  },
@@ -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
- // paths are treated both as absolute paths, and relative to process.cwd()
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
@@ -151,6 +151,10 @@ export default {
151
151
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/console.md
152
152
  'n/prefer-global/console': 'error',
153
153
 
154
+ // enforce either crypto or require("crypto").webcrypto
155
+ // https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
156
+ 'n/prefer-global/crypto': 'error',
157
+
154
158
  // enforce either process or require("process")
155
159
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/process.md
156
160
  'n/prefer-global/process': 'error',
@@ -163,6 +167,10 @@ export default {
163
167
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/text-encoder.md
164
168
  'n/prefer-global/text-encoder': 'error',
165
169
 
170
+ // enforce either global timers or require("timers")
171
+ // https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
172
+ 'n/prefer-global/timers': 'error',
173
+
166
174
  // enforce either URLSearchParams or require("url").URLSearchParams
167
175
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/url-search-params.md
168
176
  'n/prefer-global/url-search-params': 'error',
@@ -331,18 +331,8 @@ export default {
331
331
 
332
332
  // Disallow magic numbers
333
333
  // https://typescript-eslint.io/rules/no-magic-numbers
334
- '@typescript-eslint/no-magic-numbers': [
335
- 'error',
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.0",
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
- 2,
701
+ 0,
702
702
  {
703
703
  "allow": [],
704
704
  "ignoreDestructuring": false,
705
705
  "ignoreGlobals": false,
706
706
  "ignoreImports": false,
707
- "properties": "never",
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
- "always",
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
- 2,
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": "^_",
@@ -30,7 +30,7 @@
30
30
  "@",
31
31
  "jest:eslint-plugin-jest@29.15.2",
32
32
  "jest-formatting",
33
- "no-only-tests",
33
+ "no-only-tests:no-only-tests",
34
34
  ],
35
35
  "rules": {
36
36
  "jest-formatting/padding-around-after-all-blocks": [
@@ -97,7 +97,7 @@
97
97
  },
98
98
  "plugins": [
99
99
  "@",
100
- "n:eslint-plugin-n@17.24.0",
100
+ "n:eslint-plugin-n@18.0.1",
101
101
  "import-x:eslint-plugin-import-x@4.16.2",
102
102
  ],
103
103
  "rules": {
@@ -209,6 +209,9 @@
209
209
  "n/prefer-global/console": [
210
210
  2,
211
211
  ],
212
+ "n/prefer-global/crypto": [
213
+ 2,
214
+ ],
212
215
  "n/prefer-global/process": [
213
216
  2,
214
217
  ],
@@ -218,6 +221,9 @@
218
221
  "n/prefer-global/text-encoder": [
219
222
  2,
220
223
  ],
224
+ "n/prefer-global/timers": [
225
+ 2,
226
+ ],
221
227
  "n/prefer-global/url": [
222
228
  2,
223
229
  ],
@@ -906,8 +906,12 @@
906
906
  "XRBoundedReferenceSpace": false,
907
907
  "XRCPUDepthInformation": false,
908
908
  "XRCamera": false,
909
+ "XRCompositionLayer": false,
910
+ "XRCubeLayer": false,
911
+ "XRCylinderLayer": false,
909
912
  "XRDOMOverlayState": false,
910
913
  "XRDepthInformation": false,
914
+ "XREquirectLayer": false,
911
915
  "XRFrame": false,
912
916
  "XRHand": false,
913
917
  "XRHitTestResult": false,
@@ -919,9 +923,14 @@
919
923
  "XRJointPose": false,
920
924
  "XRJointSpace": false,
921
925
  "XRLayer": false,
926
+ "XRLayerEvent": false,
922
927
  "XRLightEstimate": false,
923
928
  "XRLightProbe": false,
929
+ "XRPlane": false,
930
+ "XRPlaneSet": false,
924
931
  "XRPose": false,
932
+ "XRProjectionLayer": false,
933
+ "XRQuadLayer": false,
925
934
  "XRRay": false,
926
935
  "XRReferenceSpace": false,
927
936
  "XRReferenceSpaceEvent": false,
@@ -930,6 +939,7 @@
930
939
  "XRSession": false,
931
940
  "XRSessionEvent": false,
932
941
  "XRSpace": false,
942
+ "XRSubImage": false,
933
943
  "XRSystem": false,
934
944
  "XRTransientInputHitTestResult": false,
935
945
  "XRTransientInputHitTestSource": false,
@@ -940,6 +950,7 @@
940
950
  "XRWebGLBinding": false,
941
951
  "XRWebGLDepthInformation": false,
942
952
  "XRWebGLLayer": false,
953
+ "XRWebGLSubImage": false,
943
954
  "XSLTProcessor": false,
944
955
  "addEventListener": false,
945
956
  "ai": false,
@@ -1193,7 +1204,7 @@
1193
1204
  },
1194
1205
  "plugins": [
1195
1206
  "@",
1196
- "@eslint-react:@eslint-react/eslint-plugin@5.7.3",
1207
+ "@eslint-react:@eslint-react/eslint-plugin@5.8.3",
1197
1208
  "jsx-a11y:eslint-plugin-jsx-a11y@6.10.2",
1198
1209
  ],
1199
1210
  "rules": {
@@ -27,12 +27,6 @@
27
27
  "import-x/no-default-export": [
28
28
  0,
29
29
  ],
30
- "import-x/no-extraneous-dependencies": [
31
- 2,
32
- {
33
- "devDependencies": true,
34
- },
35
- ],
36
30
  "import-x/prefer-default-export": [
37
31
  2,
38
32
  ],
@@ -64,7 +64,7 @@
64
64
  "undefined": false,
65
65
  "unescape": false,
66
66
  },
67
- "parser": "typescript-eslint/parser@8.59.0",
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.0",
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
- 2,
834
+ 0,
835
835
  {
836
836
  "detectObjects": false,
837
837
  "enforceConst": false,
838
- "ignore": [
839
- -1,
840
- 0,
841
- 1,
842
- 2,
843
- 3,
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
- 2,
1138
+ 0,
1153
1139
  {
1154
1140
  "allow": [],
1155
1141
  "ignoreDestructuring": false,
1156
1142
  "ignoreGlobals": false,
1157
1143
  "ignoreImports": false,
1158
- "properties": "never",
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
- "always",
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
- 2,
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,
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "plugins": [
37
37
  "@",
38
- "vitest:vitest@1.6.16",
39
- "no-only-tests",
38
+ "vitest:vitest@1.6.17",
39
+ "no-only-tests:no-only-tests",
40
40
  ],
41
41
  "rules": {
42
42
  "no-only-tests/no-only-tests": [