@will-stone/eslint-config 14.0.0 → 15.0.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.js +16 -6
- package/package.json +12 -13
package/dist/index.js
CHANGED
|
@@ -405,14 +405,12 @@ async function ignores() {
|
|
|
405
405
|
|
|
406
406
|
// src/configs/imports.ts
|
|
407
407
|
import * as pluginImport from "eslint-plugin-import-x";
|
|
408
|
-
import pluginSimpleImport from "eslint-plugin-simple-import-sort";
|
|
409
408
|
async function imports() {
|
|
410
409
|
return [
|
|
411
410
|
{
|
|
412
411
|
name: "will-stone/imports",
|
|
413
412
|
plugins: {
|
|
414
|
-
"import-x": pluginImport
|
|
415
|
-
"simple-import-sort": pluginSimpleImport
|
|
413
|
+
"import-x": pluginImport
|
|
416
414
|
},
|
|
417
415
|
rules: {
|
|
418
416
|
"import-x/consistent-type-specifier-style": [
|
|
@@ -426,8 +424,6 @@ async function imports() {
|
|
|
426
424
|
"import-x/no-empty-named-blocks": "warn",
|
|
427
425
|
"import-x/no-rename-default": "off",
|
|
428
426
|
"import-x/prefer-default-export": "off",
|
|
429
|
-
"simple-import-sort/exports": "warn",
|
|
430
|
-
"simple-import-sort/imports": "warn",
|
|
431
427
|
// The rest of the rules, off until required
|
|
432
428
|
"import-x/default": "off",
|
|
433
429
|
"import-x/dynamic-import-chunkname": "off",
|
|
@@ -464,7 +460,16 @@ async function imports() {
|
|
|
464
460
|
"import-x/no-unused-modules": "off",
|
|
465
461
|
"import-x/no-useless-path-segments": "off",
|
|
466
462
|
"import-x/no-webpack-loader-syntax": "off",
|
|
467
|
-
"import-x/order":
|
|
463
|
+
"import-x/order": [
|
|
464
|
+
"warn",
|
|
465
|
+
{
|
|
466
|
+
alphabetize: {
|
|
467
|
+
caseInsensitive: true,
|
|
468
|
+
order: "asc"
|
|
469
|
+
},
|
|
470
|
+
"newlines-between": "always"
|
|
471
|
+
}
|
|
472
|
+
],
|
|
468
473
|
"import-x/unambiguous": "off"
|
|
469
474
|
}
|
|
470
475
|
}
|
|
@@ -1223,6 +1228,8 @@ async function unicorn() {
|
|
|
1223
1228
|
"no-nested-ternary": "off",
|
|
1224
1229
|
"unicorn/better-regex": "warn",
|
|
1225
1230
|
"unicorn/catch-error-name": "error",
|
|
1231
|
+
"unicorn/consistent-assert": "warn",
|
|
1232
|
+
"unicorn/consistent-date-clone": "warn",
|
|
1226
1233
|
"unicorn/consistent-destructuring": "warn",
|
|
1227
1234
|
"unicorn/consistent-empty-array-spread": "warn",
|
|
1228
1235
|
"unicorn/consistent-existence-index-check": "warn",
|
|
@@ -1242,6 +1249,7 @@ async function unicorn() {
|
|
|
1242
1249
|
"unicorn/import-style": "off",
|
|
1243
1250
|
"unicorn/new-for-builtins": "warn",
|
|
1244
1251
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
1252
|
+
"unicorn/no-accessor-recursion": "error",
|
|
1245
1253
|
"unicorn/no-anonymous-default-export": "error",
|
|
1246
1254
|
"unicorn/no-array-callback-reference": "off",
|
|
1247
1255
|
"unicorn/no-array-for-each": "warn",
|
|
@@ -1258,6 +1266,7 @@ async function unicorn() {
|
|
|
1258
1266
|
"unicorn/no-for-loop": "warn",
|
|
1259
1267
|
"unicorn/no-hex-escape": "warn",
|
|
1260
1268
|
"unicorn/no-instanceof-array": "warn",
|
|
1269
|
+
"unicorn/no-instanceof-builtins": "warn",
|
|
1261
1270
|
"unicorn/no-invalid-fetch-options": "error",
|
|
1262
1271
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
1263
1272
|
"unicorn/no-keyword-prefix": [
|
|
@@ -1272,6 +1281,7 @@ async function unicorn() {
|
|
|
1272
1281
|
"unicorn/no-length-as-slice-end": "warn",
|
|
1273
1282
|
"unicorn/no-lonely-if": "warn",
|
|
1274
1283
|
"unicorn/no-magic-array-flat-depth": "error",
|
|
1284
|
+
"unicorn/no-named-default": "warn",
|
|
1275
1285
|
"unicorn/no-negated-condition": "warn",
|
|
1276
1286
|
"unicorn/no-negation-in-equality-check": "error",
|
|
1277
1287
|
"unicorn/no-nested-ternary": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Will Stone's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -45,27 +45,26 @@
|
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
46
46
|
"@typescript-eslint/parser": "^8.27.0",
|
|
47
47
|
"confusing-browser-globals": "^1.0.11",
|
|
48
|
-
"eslint-config-flat-gitignore": "^
|
|
48
|
+
"eslint-config-flat-gitignore": "^2.1.0",
|
|
49
49
|
"eslint-plugin-import-x": "^4.9.1",
|
|
50
50
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
51
51
|
"eslint-plugin-n": "^17.16.2",
|
|
52
|
-
"eslint-plugin-
|
|
53
|
-
"
|
|
54
|
-
"globals": "^15.12.0",
|
|
52
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
53
|
+
"globals": "^16.0.0",
|
|
55
54
|
"globby": "^14.1.0",
|
|
56
55
|
"type-fest": "^4.38.0"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
|
-
"@commits-with-character/conventional-changelog-preset": "^
|
|
58
|
+
"@commits-with-character/conventional-changelog-preset": "^2.0.0",
|
|
60
59
|
"@eslint/config-inspector": "^1.0.2",
|
|
61
|
-
"@release-it/conventional-changelog": "^
|
|
60
|
+
"@release-it/conventional-changelog": "^10.0.0",
|
|
62
61
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
63
62
|
"@types/eslint": "^9.6.1",
|
|
64
|
-
"@types/node": "^22.13.
|
|
63
|
+
"@types/node": "^22.13.13",
|
|
65
64
|
"@typescript-eslint/utils": "^8.27.0",
|
|
66
65
|
"@vitest/eslint-plugin": "^1.1.38",
|
|
67
|
-
"@will-stone/prettier-config": "^
|
|
68
|
-
"astro-eslint-parser": "^1.
|
|
66
|
+
"@will-stone/prettier-config": "^9.0.1",
|
|
67
|
+
"astro-eslint-parser": "^1.2.2",
|
|
69
68
|
"eslint-plugin-astro": "^1.3.1",
|
|
70
69
|
"eslint-plugin-jest": "^28.11.0",
|
|
71
70
|
"eslint-plugin-react": "^7.37.4",
|
|
@@ -74,15 +73,15 @@
|
|
|
74
73
|
"lint-staged": "^15.5.0",
|
|
75
74
|
"memfs": "^4.17.0",
|
|
76
75
|
"prettier": "^3.5.3",
|
|
77
|
-
"release-it": "^
|
|
76
|
+
"release-it": "^18.1.2",
|
|
78
77
|
"simple-git-hooks": "^2.12.1",
|
|
79
78
|
"tsup": "^8.4.0",
|
|
80
79
|
"typescript": "^5.8.2",
|
|
81
|
-
"vitest": "^
|
|
80
|
+
"vitest": "^3.0.9"
|
|
82
81
|
},
|
|
83
82
|
"peerDependencies": {
|
|
84
83
|
"@vitest/eslint-plugin": "^1.1.38",
|
|
85
|
-
"astro-eslint-parser": "^1.
|
|
84
|
+
"astro-eslint-parser": "^1.2.2",
|
|
86
85
|
"eslint": ">=9.23.0",
|
|
87
86
|
"eslint-plugin-astro": "^1.3.1",
|
|
88
87
|
"eslint-plugin-jest": "^28.11.0",
|