@jimmy.codes/eslint-config 6.29.0 → 6.31.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/dist/index.d.mts +712 -353
- package/dist/index.mjs +36 -3
- package/package.json +14 -14
package/dist/index.mjs
CHANGED
|
@@ -259,10 +259,8 @@ const nodeConfig = () => {
|
|
|
259
259
|
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region src/rules/perfectionist.ts
|
|
262
|
-
const recommendedNaturalConfig = configs$2?.["recommended-natural"];
|
|
263
|
-
const recommendedNaturalRules = recommendedNaturalConfig && "rules" in recommendedNaturalConfig ? recommendedNaturalConfig.rules : {};
|
|
264
262
|
const perfectionistRules = {
|
|
265
|
-
...
|
|
263
|
+
...configs$2["recommended-natural"].rules,
|
|
266
264
|
"perfectionist/sort-imports": ["error", {
|
|
267
265
|
environment: "node",
|
|
268
266
|
groups: [
|
|
@@ -371,6 +369,16 @@ const stylisticRules = {
|
|
|
371
369
|
next: "return",
|
|
372
370
|
prev: "*"
|
|
373
371
|
},
|
|
372
|
+
{
|
|
373
|
+
blankLine: "always",
|
|
374
|
+
next: "break",
|
|
375
|
+
prev: "*"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
blankLine: "always",
|
|
379
|
+
next: "throw",
|
|
380
|
+
prev: "*"
|
|
381
|
+
},
|
|
374
382
|
{
|
|
375
383
|
blankLine: "always",
|
|
376
384
|
next: "*",
|
|
@@ -393,6 +401,21 @@ const stylisticRules = {
|
|
|
393
401
|
"var"
|
|
394
402
|
]
|
|
395
403
|
},
|
|
404
|
+
{
|
|
405
|
+
blankLine: "always",
|
|
406
|
+
next: ["let", "var"],
|
|
407
|
+
prev: "const"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
blankLine: "always",
|
|
411
|
+
next: ["const", "var"],
|
|
412
|
+
prev: "let"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
blankLine: "always",
|
|
416
|
+
next: ["const", "let"],
|
|
417
|
+
prev: "var"
|
|
418
|
+
},
|
|
396
419
|
{
|
|
397
420
|
blankLine: "always",
|
|
398
421
|
next: "*",
|
|
@@ -407,6 +430,16 @@ const stylisticRules = {
|
|
|
407
430
|
blankLine: "always",
|
|
408
431
|
next: "function",
|
|
409
432
|
prev: "*"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
blankLine: "always",
|
|
436
|
+
next: "if",
|
|
437
|
+
prev: "if"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
blankLine: "always",
|
|
441
|
+
next: "*",
|
|
442
|
+
prev: "if"
|
|
410
443
|
}
|
|
411
444
|
]
|
|
412
445
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.31.0",
|
|
4
4
|
"description": "A simple, modern ESLint config that covers most use cases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
46
46
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
47
47
|
"@types/eslint": "9.6.1",
|
|
48
|
-
"@typescript-eslint/parser": "^8.
|
|
49
|
-
"@typescript-eslint/utils": "^8.
|
|
50
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
48
|
+
"@typescript-eslint/parser": "^8.52.0",
|
|
49
|
+
"@typescript-eslint/utils": "^8.52.0",
|
|
50
|
+
"@vitest/eslint-plugin": "^1.6.6",
|
|
51
51
|
"astro-eslint-parser": "^1.2.2",
|
|
52
52
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
53
53
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -57,28 +57,28 @@
|
|
|
57
57
|
"eslint-plugin-de-morgan": "^2.0.0",
|
|
58
58
|
"eslint-plugin-erasable-syntax-only": "0.4.0",
|
|
59
59
|
"eslint-plugin-import-x": "^4.16.1",
|
|
60
|
-
"eslint-plugin-jest": "^29.
|
|
60
|
+
"eslint-plugin-jest": "^29.12.1",
|
|
61
61
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
62
62
|
"eslint-plugin-jsdoc": "^61.5.0",
|
|
63
63
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
64
64
|
"eslint-plugin-n": "^17.23.1",
|
|
65
|
-
"eslint-plugin-perfectionist": "^5.
|
|
65
|
+
"eslint-plugin-perfectionist": "^5.3.0",
|
|
66
66
|
"eslint-plugin-playwright": "^2.4.0",
|
|
67
67
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
68
|
-
"eslint-plugin-react-dom": "^2.
|
|
68
|
+
"eslint-plugin-react-dom": "^2.5.1",
|
|
69
69
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
70
|
-
"eslint-plugin-react-hooks-extra": "^2.
|
|
71
|
-
"eslint-plugin-react-naming-convention": "^2.
|
|
70
|
+
"eslint-plugin-react-hooks-extra": "^2.5.1",
|
|
71
|
+
"eslint-plugin-react-naming-convention": "^2.5.1",
|
|
72
72
|
"eslint-plugin-react-refresh": "0.4.26",
|
|
73
|
-
"eslint-plugin-react-web-api": "^2.
|
|
74
|
-
"eslint-plugin-react-x": "^2.
|
|
73
|
+
"eslint-plugin-react-web-api": "^2.5.1",
|
|
74
|
+
"eslint-plugin-react-x": "^2.5.1",
|
|
75
75
|
"eslint-plugin-regexp": "^2.10.0",
|
|
76
76
|
"eslint-plugin-storybook": "0.12.0",
|
|
77
|
-
"eslint-plugin-testing-library": "^7.15.
|
|
77
|
+
"eslint-plugin-testing-library": "^7.15.4",
|
|
78
78
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
79
|
-
"globals": "^
|
|
79
|
+
"globals": "^17.0.0",
|
|
80
80
|
"local-pkg": "^1.1.2",
|
|
81
|
-
"typescript-eslint": "^8.
|
|
81
|
+
"typescript-eslint": "^8.52.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"eslint": "^9.10.0"
|