@kitschpatrol/eslint-config 8.0.0 → 8.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/eslint-config",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
4
4
  "description": "ESLint configuration for @kitschpatrol/shared-config.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -44,14 +44,14 @@
44
44
  "dependencies": {
45
45
  "@e18e/eslint-plugin": "^0.5.1",
46
46
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
47
- "@eslint-react/eslint-plugin": "^5.11.2",
47
+ "@eslint-react/eslint-plugin": "^5.13.2",
48
48
  "@html-eslint/eslint-plugin": "^0.63.0",
49
49
  "@html-eslint/parser": "^0.63.0",
50
50
  "@pinojs/json-colorizer": "^4.0.0",
51
51
  "@stylistic/eslint-plugin": "^5.10.0",
52
- "@typescript-eslint/eslint-plugin": "^8.62.1",
53
- "@typescript-eslint/parser": "^8.62.1",
54
- "@vitest/eslint-plugin": "^1.6.20",
52
+ "@typescript-eslint/eslint-plugin": "^8.63.0",
53
+ "@typescript-eslint/parser": "^8.63.0",
54
+ "@vitest/eslint-plugin": "^1.6.22",
55
55
  "astro-eslint-parser": "^2.1.0",
56
56
  "cosmiconfig": "^9.0.2",
57
57
  "cosmiconfig-typescript-loader": "^6.3.0",
@@ -68,19 +68,19 @@
68
68
  "eslint-plugin-html": "^8.1.4",
69
69
  "eslint-plugin-import-x": "^4.17.1",
70
70
  "eslint-plugin-jsdoc": "^63.0.12",
71
- "eslint-plugin-jsonc": "^3.2.0",
71
+ "eslint-plugin-jsonc": "^3.3.0",
72
72
  "eslint-plugin-jsx-a11y": "^6.10.2",
73
73
  "eslint-plugin-math": "^0.13.1",
74
74
  "eslint-plugin-mdx": "^3.8.1",
75
75
  "eslint-plugin-n": "^18.2.1",
76
76
  "eslint-plugin-no-only-tests": "^3.4.0",
77
77
  "eslint-plugin-package-json": "^1.5.0",
78
- "eslint-plugin-perfectionist": "^5.9.1",
78
+ "eslint-plugin-perfectionist": "^5.10.0",
79
79
  "eslint-plugin-regexp": "^3.1.1",
80
80
  "eslint-plugin-svelte": "^3.20.0",
81
81
  "eslint-plugin-toml": "^1.4.0",
82
- "eslint-plugin-unicorn": "^71.0.0",
83
- "eslint-plugin-yml": "^3.5.0",
82
+ "eslint-plugin-unicorn": "^71.1.0",
83
+ "eslint-plugin-yml": "^3.6.0",
84
84
  "execa": "^9.6.1",
85
85
  "find-workspaces": "^0.3.1",
86
86
  "fs-extra": "^11.3.6",
@@ -90,11 +90,11 @@
90
90
  "local-pkg": "^1.2.1",
91
91
  "package-up": "^5.0.0",
92
92
  "picocolors": "^1.1.1",
93
- "prettier": "^3.9.4",
93
+ "prettier": "^3.9.5",
94
94
  "sort-package-json": "^4.0.0",
95
95
  "svelte-eslint-parser": "^1.8.0",
96
96
  "toml-eslint-parser": "^1.0.3",
97
- "yaml-eslint-parser": "^2.0.0",
97
+ "yaml-eslint-parser": "^2.1.0",
98
98
  "yargs": "^18.0.0"
99
99
  },
100
100
  "devDependencies": {
@@ -119,6 +119,6 @@
119
119
  "cli": "node ./bin/cli.js",
120
120
  "inspect": "npx @eslint/config-inspector --config ./init/eslint.config.ts",
121
121
  "test": "vitest run",
122
- "update-rules": "tsx scripts/presetgen.ts && tsx scripts/typegen.ts && cd ../../ && ksc-eslint fix $PWD && ksc-prettier fix $PWD"
122
+ "update-rules": "tsx scripts/presetgen.ts && tsx scripts/typegen.ts && cd ../../ && ksc-eslint fix $PWD && ksc-prettier fix $PWD && ksc-prettier fix $PWD"
123
123
  }
124
124
  }
package/readme.md CHANGED
@@ -213,8 +213,16 @@ The ESLint module and instances are cached internally for performance across mul
213
213
 
214
214
  ## Notes
215
215
 
216
+ ### Config location
217
+
216
218
  Regrettably the `eslint-config init --location package` option is not supported due to ESLint's removal of support for putting configuration in `package.json`. See ESLint discussion thread [18131](https://github.com/eslint/eslint/discussions/18131).
217
219
 
220
+ ### Preset generation
221
+
222
+ The `update-rules` script is used to manually regenerate preset rule sets when plugin dependencies are updated.
223
+
224
+ The script requires two calls to `ksc-prettier fix` to accommodate a lack of idempotence in Prettier's handling of the resulting `typegen.d.ts` file. This surfaced a few Prettier versions ago, and the necessity of this work-around should be reevaluated periodically against future versions of Prettier.
225
+
218
226
  ### Origins
219
227
 
220
228
  This config is a heavily modified variation on Anthony Fu's [@antfu/eslint-config](https://github.com/antfu/eslint-config). This package is a somewhat leaner approach intended to work with other tools wrapped behind a monolithic CLI instead of handling everything on its own. It mainly leverages the factory / type generation implementation from the original repo, which itself builds on Kevin Deng's [@sxzz/eslint-config](https://github.com/sxzz/eslint-config). See the [modification notes](./modification-notes.md) for more details on what's changed from Anthony's approach.