@jimmy.codes/eslint-config 6.30.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.
Files changed (3) hide show
  1. package/dist/index.d.mts +712 -353
  2. package/dist/index.mjs +28 -30
  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
- ...recommendedNaturalRules,
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,43 @@ const stylisticRules = {
395
403
  },
396
404
  {
397
405
  blankLine: "always",
398
- next: "*",
399
- prev: "directive"
400
- },
401
- {
402
- blankLine: "any",
403
- next: "directive",
404
- prev: "directive"
405
- },
406
- {
407
- blankLine: "always",
408
- next: "function",
409
- prev: "*"
410
- },
411
- {
412
- blankLine: "any",
413
- next: "const",
406
+ next: ["let", "var"],
414
407
  prev: "const"
415
408
  },
416
409
  {
417
- blankLine: "any",
418
- next: "let",
410
+ blankLine: "always",
411
+ next: ["const", "var"],
419
412
  prev: "let"
420
413
  },
421
414
  {
422
- blankLine: "any",
423
- next: "var",
415
+ blankLine: "always",
416
+ next: ["const", "let"],
424
417
  prev: "var"
425
418
  },
426
419
  {
427
420
  blankLine: "always",
428
- next: ["let", "var"],
429
- prev: "const"
421
+ next: "*",
422
+ prev: "directive"
430
423
  },
431
424
  {
432
- blankLine: "always",
433
- next: ["const", "var"],
434
- prev: "let"
425
+ blankLine: "any",
426
+ next: "directive",
427
+ prev: "directive"
435
428
  },
436
429
  {
437
430
  blankLine: "always",
438
- next: ["const", "let"],
439
- prev: "var"
431
+ next: "function",
432
+ prev: "*"
440
433
  },
441
434
  {
442
435
  blankLine: "always",
443
436
  next: "if",
444
437
  prev: "if"
438
+ },
439
+ {
440
+ blankLine: "always",
441
+ next: "*",
442
+ prev: "if"
445
443
  }
446
444
  ]
447
445
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "6.30.0",
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.50.1",
49
- "@typescript-eslint/utils": "^8.50.1",
50
- "@vitest/eslint-plugin": "^1.6.4",
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.11.0",
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.1.0",
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.4.0",
68
+ "eslint-plugin-react-dom": "^2.5.1",
69
69
  "eslint-plugin-react-hooks": "^7.0.1",
70
- "eslint-plugin-react-hooks-extra": "^2.4.0",
71
- "eslint-plugin-react-naming-convention": "^2.4.0",
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.4.0",
74
- "eslint-plugin-react-x": "^2.4.0",
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.3",
77
+ "eslint-plugin-testing-library": "^7.15.4",
78
78
  "eslint-plugin-unicorn": "^62.0.0",
79
- "globals": "^16.5.0",
79
+ "globals": "^17.0.0",
80
80
  "local-pkg": "^1.1.2",
81
- "typescript-eslint": "^8.50.1"
81
+ "typescript-eslint": "^8.52.0"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "eslint": "^9.10.0"