@will-stone/eslint-config 14.0.0 → 15.0.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.
Files changed (2) hide show
  1. package/dist/index.js +20 -7
  2. 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": "off",
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
  }
@@ -932,7 +937,10 @@ async function react(_options) {
932
937
  // src/configs/tailwind.ts
933
938
  async function tailwind(rawOptions) {
934
939
  const options = !rawOptions || rawOptions === true ? {} : rawOptions;
935
- const plugin = await import("eslint-plugin-tailwindcss");
940
+ const plugin = await interopDefault(
941
+ // @ts-expect-error -- no types
942
+ import("eslint-plugin-tailwindcss")
943
+ );
936
944
  return [
937
945
  {
938
946
  files: ["**/*.{jsx,tsx,astro}"],
@@ -1223,6 +1231,8 @@ async function unicorn() {
1223
1231
  "no-nested-ternary": "off",
1224
1232
  "unicorn/better-regex": "warn",
1225
1233
  "unicorn/catch-error-name": "error",
1234
+ "unicorn/consistent-assert": "warn",
1235
+ "unicorn/consistent-date-clone": "warn",
1226
1236
  "unicorn/consistent-destructuring": "warn",
1227
1237
  "unicorn/consistent-empty-array-spread": "warn",
1228
1238
  "unicorn/consistent-existence-index-check": "warn",
@@ -1242,6 +1252,7 @@ async function unicorn() {
1242
1252
  "unicorn/import-style": "off",
1243
1253
  "unicorn/new-for-builtins": "warn",
1244
1254
  "unicorn/no-abusive-eslint-disable": "error",
1255
+ "unicorn/no-accessor-recursion": "error",
1245
1256
  "unicorn/no-anonymous-default-export": "error",
1246
1257
  "unicorn/no-array-callback-reference": "off",
1247
1258
  "unicorn/no-array-for-each": "warn",
@@ -1258,6 +1269,7 @@ async function unicorn() {
1258
1269
  "unicorn/no-for-loop": "warn",
1259
1270
  "unicorn/no-hex-escape": "warn",
1260
1271
  "unicorn/no-instanceof-array": "warn",
1272
+ "unicorn/no-instanceof-builtins": "warn",
1261
1273
  "unicorn/no-invalid-fetch-options": "error",
1262
1274
  "unicorn/no-invalid-remove-event-listener": "error",
1263
1275
  "unicorn/no-keyword-prefix": [
@@ -1272,6 +1284,7 @@ async function unicorn() {
1272
1284
  "unicorn/no-length-as-slice-end": "warn",
1273
1285
  "unicorn/no-lonely-if": "warn",
1274
1286
  "unicorn/no-magic-array-flat-depth": "error",
1287
+ "unicorn/no-named-default": "warn",
1275
1288
  "unicorn/no-negated-condition": "warn",
1276
1289
  "unicorn/no-negation-in-equality-check": "error",
1277
1290
  "unicorn/no-nested-ternary": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@will-stone/eslint-config",
3
- "version": "14.0.0",
3
+ "version": "15.0.1",
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": "^0.3.0",
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-simple-import-sort": "^12.1.1",
53
- "eslint-plugin-unicorn": "^56.0.1",
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": "^1.0.0",
58
+ "@commits-with-character/conventional-changelog-preset": "^2.0.0",
60
59
  "@eslint/config-inspector": "^1.0.2",
61
- "@release-it/conventional-changelog": "^9.0.3",
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.12",
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": "^8.0.1",
68
- "astro-eslint-parser": "^1.0.2",
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": "^17.10.0",
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": "^2.1.6"
80
+ "vitest": "^3.0.9"
82
81
  },
83
82
  "peerDependencies": {
84
83
  "@vitest/eslint-plugin": "^1.1.38",
85
- "astro-eslint-parser": "^1.0.2",
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",