@jimmy.codes/eslint-config 5.4.0 → 5.5.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/README.md +28 -73
- package/dist/index.d.ts +5779 -3910
- package/dist/index.js +66 -1
- package/package.json +11 -10
package/dist/index.js
CHANGED
|
@@ -432,6 +432,70 @@ var regexpConfig = () => {
|
|
|
432
432
|
];
|
|
433
433
|
};
|
|
434
434
|
|
|
435
|
+
// src/configs/stylistic.ts
|
|
436
|
+
import stylisticPlugin from "@stylistic/eslint-plugin";
|
|
437
|
+
|
|
438
|
+
// src/rules/stylistic.ts
|
|
439
|
+
var stylisticRules = {
|
|
440
|
+
"@stylistic/object-curly-newline": [
|
|
441
|
+
"error",
|
|
442
|
+
{
|
|
443
|
+
consistent: true,
|
|
444
|
+
multiline: true
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"@stylistic/object-property-newline": [
|
|
448
|
+
"error",
|
|
449
|
+
{ allowAllPropertiesOnSameLine: true }
|
|
450
|
+
],
|
|
451
|
+
"@stylistic/padding-line-between-statements": [
|
|
452
|
+
"error",
|
|
453
|
+
{
|
|
454
|
+
blankLine: "always",
|
|
455
|
+
next: "return",
|
|
456
|
+
prev: "*"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
blankLine: "always",
|
|
460
|
+
next: "*",
|
|
461
|
+
prev: ["const", "let", "var"]
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
blankLine: "any",
|
|
465
|
+
next: ["const", "let", "var"],
|
|
466
|
+
prev: ["const", "let", "var"]
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
blankLine: "always",
|
|
470
|
+
next: "*",
|
|
471
|
+
prev: "directive"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
blankLine: "any",
|
|
475
|
+
next: "directive",
|
|
476
|
+
prev: "directive"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
blankLine: "always",
|
|
480
|
+
next: "function",
|
|
481
|
+
prev: "*"
|
|
482
|
+
}
|
|
483
|
+
]
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
// src/configs/stylistic.ts
|
|
487
|
+
function stylisticConfig() {
|
|
488
|
+
return [
|
|
489
|
+
{
|
|
490
|
+
name: "jimmy.codes/stylistic",
|
|
491
|
+
plugins: {
|
|
492
|
+
"@stylistic": stylisticPlugin
|
|
493
|
+
},
|
|
494
|
+
rules: stylisticRules
|
|
495
|
+
}
|
|
496
|
+
];
|
|
497
|
+
}
|
|
498
|
+
|
|
435
499
|
// src/configs/unicorn.ts
|
|
436
500
|
import eslintPluginUnicorn2 from "eslint-plugin-unicorn";
|
|
437
501
|
|
|
@@ -513,7 +577,8 @@ var defineConfig = async ({
|
|
|
513
577
|
eslintCommentsConfig(),
|
|
514
578
|
regexpConfig(),
|
|
515
579
|
jsdocConfig(),
|
|
516
|
-
importsConfig({ typescript: isTypescriptEnabled })
|
|
580
|
+
importsConfig({ typescript: isTypescriptEnabled }),
|
|
581
|
+
stylisticConfig()
|
|
517
582
|
];
|
|
518
583
|
const featureConfigs = await Promise.all([
|
|
519
584
|
isTypescriptEnabled && unwrap(import("./typescript-IBCLQD7Q.js")),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "A pragmatic and opinionated ESLint config for modern development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -24,24 +24,25 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
27
|
-
"@eslint/js": "^9.
|
|
28
|
-
"@next/eslint-plugin-next": "^15.
|
|
27
|
+
"@eslint/js": "^9.22.0",
|
|
28
|
+
"@next/eslint-plugin-next": "^15.2.3",
|
|
29
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
29
30
|
"@tanstack/eslint-plugin-query": "^5.68.0",
|
|
30
31
|
"@types/eslint": "9.6.1",
|
|
31
|
-
"@typescript-eslint/parser": "^8.
|
|
32
|
-
"@typescript-eslint/utils": "^8.
|
|
32
|
+
"@typescript-eslint/parser": "^8.27.0",
|
|
33
|
+
"@typescript-eslint/utils": "^8.27.0",
|
|
33
34
|
"@vitest/eslint-plugin": "^1.1.38",
|
|
34
35
|
"astro-eslint-parser": "^1.2.1",
|
|
35
36
|
"eslint-config-prettier": "^10.1.1",
|
|
36
|
-
"eslint-import-resolver-typescript": "^4.2.
|
|
37
|
+
"eslint-import-resolver-typescript": "^4.2.2",
|
|
37
38
|
"eslint-plugin-astro": "^1.3.1",
|
|
38
|
-
"eslint-plugin-import-x": "^4.
|
|
39
|
+
"eslint-plugin-import-x": "^4.9.1",
|
|
39
40
|
"eslint-plugin-jest": "^28.11.0",
|
|
40
41
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
41
42
|
"eslint-plugin-jsdoc": "^50.6.8",
|
|
42
43
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
43
44
|
"eslint-plugin-n": "^17.16.2",
|
|
44
|
-
"eslint-plugin-perfectionist": "^4.
|
|
45
|
+
"eslint-plugin-perfectionist": "^4.10.1",
|
|
45
46
|
"eslint-plugin-playwright": "^2.2.0",
|
|
46
47
|
"eslint-plugin-react": "^7.37.4",
|
|
47
48
|
"eslint-plugin-react-compiler": "19.0.0-beta-3229e95-20250315",
|
|
@@ -52,8 +53,8 @@
|
|
|
52
53
|
"eslint-plugin-testing-library": "^7.1.1",
|
|
53
54
|
"eslint-plugin-unicorn": "^57.0.0",
|
|
54
55
|
"globals": "^16.0.0",
|
|
55
|
-
"local-pkg": "^1.
|
|
56
|
-
"typescript-eslint": "^8.
|
|
56
|
+
"local-pkg": "^1.1.1",
|
|
57
|
+
"typescript-eslint": "^8.27.0"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"eslint": "^9.10.0"
|