@jimmy.codes/eslint-config 6.30.0 → 6.31.1
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 +35 -27
- 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: "*",
|
|
@@ -395,53 +403,53 @@ const stylisticRules = {
|
|
|
395
403
|
},
|
|
396
404
|
{
|
|
397
405
|
blankLine: "always",
|
|
398
|
-
next: "
|
|
399
|
-
prev: "
|
|
406
|
+
next: ["let", "var"],
|
|
407
|
+
prev: "const"
|
|
400
408
|
},
|
|
401
409
|
{
|
|
402
|
-
blankLine: "
|
|
403
|
-
next: "
|
|
404
|
-
prev: "
|
|
410
|
+
blankLine: "always",
|
|
411
|
+
next: ["const", "var"],
|
|
412
|
+
prev: "let"
|
|
405
413
|
},
|
|
406
414
|
{
|
|
407
415
|
blankLine: "always",
|
|
408
|
-
next: "
|
|
409
|
-
prev: "
|
|
416
|
+
next: ["const", "let"],
|
|
417
|
+
prev: "var"
|
|
410
418
|
},
|
|
411
419
|
{
|
|
412
|
-
blankLine: "
|
|
413
|
-
next: "
|
|
414
|
-
prev: "
|
|
420
|
+
blankLine: "always",
|
|
421
|
+
next: "*",
|
|
422
|
+
prev: "directive"
|
|
415
423
|
},
|
|
416
424
|
{
|
|
417
425
|
blankLine: "any",
|
|
418
|
-
next: "
|
|
419
|
-
prev: "
|
|
426
|
+
next: "directive",
|
|
427
|
+
prev: "directive"
|
|
420
428
|
},
|
|
421
429
|
{
|
|
422
|
-
blankLine: "
|
|
423
|
-
next: "
|
|
424
|
-
prev: "
|
|
430
|
+
blankLine: "always",
|
|
431
|
+
next: "function",
|
|
432
|
+
prev: "*"
|
|
425
433
|
},
|
|
426
434
|
{
|
|
427
435
|
blankLine: "always",
|
|
428
|
-
next:
|
|
429
|
-
prev: "
|
|
436
|
+
next: "if",
|
|
437
|
+
prev: "if"
|
|
430
438
|
},
|
|
431
439
|
{
|
|
432
440
|
blankLine: "always",
|
|
433
|
-
next:
|
|
434
|
-
prev: "
|
|
441
|
+
next: "*",
|
|
442
|
+
prev: "if"
|
|
435
443
|
},
|
|
436
444
|
{
|
|
437
445
|
blankLine: "always",
|
|
438
|
-
next:
|
|
439
|
-
prev: "
|
|
446
|
+
next: "expression",
|
|
447
|
+
prev: "*"
|
|
440
448
|
},
|
|
441
449
|
{
|
|
442
|
-
blankLine: "
|
|
443
|
-
next: "
|
|
444
|
-
prev: "
|
|
450
|
+
blankLine: "any",
|
|
451
|
+
next: "expression",
|
|
452
|
+
prev: "expression"
|
|
445
453
|
}
|
|
446
454
|
]
|
|
447
455
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.31.1",
|
|
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"
|