@eslint-sets/eslint-config 6.0.0 → 6.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/README.md +14 -0
- package/dist/configs/unicorn.d.ts.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.mjs +8 -6
- package/package.json +10 -7
package/README.md
CHANGED
|
@@ -70,6 +70,13 @@ npm install -D @eslint-sets/eslint-config eslint
|
|
|
70
70
|
bun add -D @eslint-sets/eslint-config eslint
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
## Requirements
|
|
74
|
+
|
|
75
|
+
- **Node.js**: `^18.18.0` or `^20.9.0` or `>=21.1.0`
|
|
76
|
+
- **ESLint**: `^9.10.0` or `^9.22.0`
|
|
77
|
+
|
|
78
|
+
> Note: `eslint-plugin-toml` requires Node.js `^20.19.0 || ^22.13.0 || >=24`. If you need TOML support on Node.js 18, consider downgrading to `eslint-plugin-toml@0.13.1`.
|
|
79
|
+
|
|
73
80
|
## Quick Start
|
|
74
81
|
|
|
75
82
|
### Using CLI (Recommended)
|
|
@@ -573,6 +580,13 @@ import {
|
|
|
573
580
|
| prettier | ^3.5.3 (optional, for Prettier integration) |
|
|
574
581
|
| typescript | >=5.0.0 (optional, for TypeScript support) |
|
|
575
582
|
|
|
583
|
+
## System Requirements
|
|
584
|
+
|
|
585
|
+
| Requirement | Version |
|
|
586
|
+
| ----------- | ---------------------------------------- |
|
|
587
|
+
| Node.js | ^18.18.0 or ^20.9.0 or >=21.1.0 |
|
|
588
|
+
| ESLint | ^9.10.0 or ^9.22.0 |
|
|
589
|
+
|
|
576
590
|
## Optional Dependencies
|
|
577
591
|
|
|
578
592
|
The following packages are optional and will be used if installed:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/configs/unicorn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACvD;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,OAAO,GAAE,cAAmB,GAAG,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/configs/unicorn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACvD;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,OAAO,GAAE,cAAmB,GAAG,MAAM,CAAC,MAAM,CAqCnE"}
|
package/dist/index.js
CHANGED
|
@@ -2281,8 +2281,10 @@ function unicorn(options = {}) {
|
|
|
2281
2281
|
// Use all recommended rules if requested
|
|
2282
2282
|
...allRecommended ? import_eslint_plugin_unicorn.default.configs.recommended.rules : {
|
|
2283
2283
|
// Curated essential rules
|
|
2284
|
+
"unicorn/consistent-empty-array-spread": "error",
|
|
2284
2285
|
"unicorn/error-message": "error",
|
|
2285
2286
|
"unicorn/escape-case": "error",
|
|
2287
|
+
"unicorn/new-for-builtins": "error",
|
|
2286
2288
|
"unicorn/no-instanceof-array": "error",
|
|
2287
2289
|
"unicorn/no-new-array": "error",
|
|
2288
2290
|
"unicorn/no-new-buffer": "error",
|
|
@@ -2353,13 +2355,13 @@ var import_vue_eslint_parser = __toESM(require("vue-eslint-parser"));
|
|
|
2353
2355
|
async function vue(options = {}) {
|
|
2354
2356
|
const { a11y = false, overrides = {}, vueVersion = 3 } = options;
|
|
2355
2357
|
const vueRecommendedRules = vueVersion === 2 ? {
|
|
2356
|
-
...import_eslint_plugin_vue.default.configs["vue2-essential"]
|
|
2357
|
-
...import_eslint_plugin_vue.default.configs["vue2-strongly-recommended"]
|
|
2358
|
-
...import_eslint_plugin_vue.default.configs["vue2-recommended"]
|
|
2358
|
+
...import_eslint_plugin_vue.default.configs["flat/vue2-essential"]?.rules || {},
|
|
2359
|
+
...import_eslint_plugin_vue.default.configs["flat/vue2-strongly-recommended"]?.rules || {},
|
|
2360
|
+
...import_eslint_plugin_vue.default.configs["flat/vue2-recommended"]?.rules || {}
|
|
2359
2361
|
} : {
|
|
2360
|
-
...import_eslint_plugin_vue.default.configs
|
|
2361
|
-
...import_eslint_plugin_vue.default.configs["strongly-recommended"]
|
|
2362
|
-
...import_eslint_plugin_vue.default.configs
|
|
2362
|
+
...import_eslint_plugin_vue.default.configs["flat/essential"]?.rules || {},
|
|
2363
|
+
...import_eslint_plugin_vue.default.configs["flat/strongly-recommended"]?.rules || {},
|
|
2364
|
+
...import_eslint_plugin_vue.default.configs["flat/recommended"]?.rules || {}
|
|
2363
2365
|
};
|
|
2364
2366
|
const configs = [
|
|
2365
2367
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -2152,8 +2152,10 @@ function unicorn(options = {}) {
|
|
|
2152
2152
|
// Use all recommended rules if requested
|
|
2153
2153
|
...allRecommended ? unicornPlugin.configs.recommended.rules : {
|
|
2154
2154
|
// Curated essential rules
|
|
2155
|
+
"unicorn/consistent-empty-array-spread": "error",
|
|
2155
2156
|
"unicorn/error-message": "error",
|
|
2156
2157
|
"unicorn/escape-case": "error",
|
|
2158
|
+
"unicorn/new-for-builtins": "error",
|
|
2157
2159
|
"unicorn/no-instanceof-array": "error",
|
|
2158
2160
|
"unicorn/no-new-array": "error",
|
|
2159
2161
|
"unicorn/no-new-buffer": "error",
|
|
@@ -2224,13 +2226,13 @@ import vueParser from "vue-eslint-parser";
|
|
|
2224
2226
|
async function vue(options = {}) {
|
|
2225
2227
|
const { a11y = false, overrides = {}, vueVersion = 3 } = options;
|
|
2226
2228
|
const vueRecommendedRules = vueVersion === 2 ? {
|
|
2227
|
-
...vuePlugin.configs["vue2-essential"]
|
|
2228
|
-
...vuePlugin.configs["vue2-strongly-recommended"]
|
|
2229
|
-
...vuePlugin.configs["vue2-recommended"]
|
|
2229
|
+
...vuePlugin.configs["flat/vue2-essential"]?.rules || {},
|
|
2230
|
+
...vuePlugin.configs["flat/vue2-strongly-recommended"]?.rules || {},
|
|
2231
|
+
...vuePlugin.configs["flat/vue2-recommended"]?.rules || {}
|
|
2230
2232
|
} : {
|
|
2231
|
-
...vuePlugin.configs
|
|
2232
|
-
...vuePlugin.configs["strongly-recommended"]
|
|
2233
|
-
...vuePlugin.configs
|
|
2233
|
+
...vuePlugin.configs["flat/essential"]?.rules || {},
|
|
2234
|
+
...vuePlugin.configs["flat/strongly-recommended"]?.rules || {},
|
|
2235
|
+
...vuePlugin.configs["flat/recommended"]?.rules || {}
|
|
2234
2236
|
};
|
|
2235
2237
|
const configs = [
|
|
2236
2238
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-sets/eslint-config",
|
|
3
3
|
"description": "Modern ESLint config with flat config support for Vue, React, Svelte, TypeScript, Next.js, Nuxt, Astro, Angular, UnoCSS and more",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.1.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"eslint-sets": "./dist/cli/index.js"
|
|
7
7
|
},
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"@vitest/eslint-plugin": "^1.6.12",
|
|
39
39
|
"eslint-config-prettier": "^10.1.1",
|
|
40
40
|
"eslint-plugin-import-x": "^4.9.0",
|
|
41
|
-
"eslint-plugin-jsdoc": "^
|
|
41
|
+
"eslint-plugin-jsdoc": "^61.7.1",
|
|
42
42
|
"eslint-plugin-jsonc": "^2.21.1",
|
|
43
43
|
"eslint-plugin-n": "^17.24.0",
|
|
44
44
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
45
|
-
"eslint-plugin-perfectionist": "^
|
|
45
|
+
"eslint-plugin-perfectionist": "^4.15.1",
|
|
46
46
|
"eslint-plugin-prettier": "^5.2.3",
|
|
47
|
-
"eslint-plugin-regexp": "^
|
|
47
|
+
"eslint-plugin-regexp": "^2.10.0",
|
|
48
48
|
"eslint-plugin-solid": "^0.14.5",
|
|
49
49
|
"eslint-plugin-toml": "^1.3.1",
|
|
50
|
-
"eslint-plugin-unicorn": "^
|
|
50
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
51
51
|
"eslint-plugin-unused-imports": "^4.1.0",
|
|
52
|
-
"eslint-plugin-vue": "^
|
|
52
|
+
"eslint-plugin-vue": "^9.33.0",
|
|
53
53
|
"eslint-plugin-yml": "^1.19.1",
|
|
54
54
|
"find-up-simple": "^1.0.1",
|
|
55
55
|
"globals": "^17.4.0",
|
|
@@ -99,11 +99,14 @@
|
|
|
99
99
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
100
100
|
"eslint-plugin-pnpm": "^1.1.0",
|
|
101
101
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
102
|
-
"eslint-plugin-svelte": "^
|
|
102
|
+
"eslint-plugin-svelte": "^2.46.1",
|
|
103
103
|
"eslint-plugin-vuejs-accessibility": "^2.4.0",
|
|
104
104
|
"svelte": "^5.25.0",
|
|
105
105
|
"svelte-eslint-parser": "^1.0.0"
|
|
106
106
|
},
|
|
107
|
+
"engines": {
|
|
108
|
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
109
|
+
},
|
|
107
110
|
"keywords": [
|
|
108
111
|
"eslint",
|
|
109
112
|
"eslint-config",
|