@eienjs/eslint-config 1.11.4 → 2.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.
- package/LICENSE +1 -1
- package/dist/cli/constants_generated.js +2 -2
- package/dist/cli/run.js +1 -1
- package/dist/config_presets.js +2 -0
- package/dist/configs/formatters.js +1 -1
- package/dist/configs/javascript.js +1 -6
- package/dist/configs/markdown.js +0 -15
- package/dist/configs/perfectionist.d.ts +2 -2
- package/dist/configs/perfectionist.js +4 -2
- package/dist/configs/pnpm.js +1 -4
- package/dist/configs/stylistic.js +4 -2
- package/dist/configs/vue.js +17 -9
- package/dist/factory.js +8 -5
- package/dist/globs.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/typegen.d.ts +551 -227
- package/dist/types.d.ts +13 -1
- package/dist/vendored/prettier_types.d.ts +1 -1
- package/package.json +82 -57
package/dist/types.d.ts
CHANGED
|
@@ -296,7 +296,7 @@ interface OptionsHasTypeScript {
|
|
|
296
296
|
interface OptionsStylistic {
|
|
297
297
|
stylistic?: boolean | StylisticConfig;
|
|
298
298
|
}
|
|
299
|
-
interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'quotes' | 'experimental'> {
|
|
299
|
+
interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'quotes' | 'braceStyle' | 'experimental'> {
|
|
300
300
|
indent?: number | 'tab';
|
|
301
301
|
maxLineLength?: number;
|
|
302
302
|
}
|
|
@@ -399,6 +399,12 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
399
399
|
* @default true
|
|
400
400
|
*/
|
|
401
401
|
unicorn?: boolean | OptionsOverrides;
|
|
402
|
+
/**
|
|
403
|
+
* Options for eslint-plugin-perfectionist.
|
|
404
|
+
*
|
|
405
|
+
* @default true
|
|
406
|
+
*/
|
|
407
|
+
perfectionist?: boolean | OptionsOverrides;
|
|
402
408
|
/**
|
|
403
409
|
* Options for eslint-plugin-import-lite.
|
|
404
410
|
*
|
|
@@ -496,6 +502,12 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
496
502
|
* @default auto-detect based on the process.env
|
|
497
503
|
*/
|
|
498
504
|
isInEditor?: boolean;
|
|
505
|
+
/**
|
|
506
|
+
* Automatically rename plugins in the config.
|
|
507
|
+
*
|
|
508
|
+
* @default true
|
|
509
|
+
*/
|
|
510
|
+
autoRenamePlugins?: boolean;
|
|
499
511
|
/**
|
|
500
512
|
* Enable AdonisJS support.
|
|
501
513
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eienjs/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"description": "EienJS ESLint Config",
|
|
6
6
|
"author": "Fernando Isidro <luffynando@gmail.com> (https://github.com/luffynando/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -25,23 +25,22 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
|
-
"bin": "./bin/index.js",
|
|
29
28
|
"files": [
|
|
30
29
|
"bin",
|
|
31
30
|
"dist"
|
|
32
31
|
],
|
|
33
32
|
"engines": {
|
|
34
|
-
"node": ">=
|
|
33
|
+
"node": ">=22"
|
|
35
34
|
},
|
|
36
35
|
"peerDependencies": {
|
|
37
36
|
"@adonisjs/eslint-plugin": "^2.2.2",
|
|
38
|
-
"@nuxt/eslint-plugin": "^1.
|
|
37
|
+
"@nuxt/eslint-plugin": "^1.16.0",
|
|
39
38
|
"@prettier/plugin-xml": "^3.4.2",
|
|
40
|
-
"astro-eslint-parser": "^1.
|
|
41
|
-
"eslint": "^
|
|
42
|
-
"eslint-plugin-astro": "^1.
|
|
43
|
-
"eslint-plugin-erasable-syntax-only": "^0.4.
|
|
44
|
-
"eslint-plugin-format": "
|
|
39
|
+
"astro-eslint-parser": "^1.4.0",
|
|
40
|
+
"eslint": "^10.4.1",
|
|
41
|
+
"eslint-plugin-astro": "^1.7.0",
|
|
42
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.1",
|
|
43
|
+
"eslint-plugin-format": "^2.0.1",
|
|
45
44
|
"prettier-plugin-astro": "^0.14.1"
|
|
46
45
|
},
|
|
47
46
|
"peerDependenciesMeta": {
|
|
@@ -72,67 +71,67 @@
|
|
|
72
71
|
},
|
|
73
72
|
"dependencies": {
|
|
74
73
|
"@antfu/install-pkg": "^1.1.0",
|
|
75
|
-
"@clack/prompts": "^1.
|
|
76
|
-
"@e18e/eslint-plugin": "^0.
|
|
77
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.
|
|
78
|
-
"@eslint/markdown": "^8.0.
|
|
74
|
+
"@clack/prompts": "^1.5.1",
|
|
75
|
+
"@e18e/eslint-plugin": "^0.5.0",
|
|
76
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
77
|
+
"@eslint/markdown": "^8.0.2",
|
|
79
78
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
81
|
-
"@typescript-eslint/parser": "^8.
|
|
82
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
83
|
-
"ansis": "^4.
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^8.61.0",
|
|
80
|
+
"@typescript-eslint/parser": "^8.61.0",
|
|
81
|
+
"@vitest/eslint-plugin": "^1.6.20",
|
|
82
|
+
"ansis": "^4.3.1",
|
|
84
83
|
"cac": "^7.0.0",
|
|
85
84
|
"eslint-config-flat-gitignore": "^2.3.0",
|
|
86
|
-
"eslint-flat-config-utils": "^3.
|
|
85
|
+
"eslint-flat-config-utils": "^3.2.0",
|
|
87
86
|
"eslint-merge-processors": "^2.0.0",
|
|
88
|
-
"eslint-plugin-antfu": "^3.2.
|
|
87
|
+
"eslint-plugin-antfu": "^3.2.3",
|
|
89
88
|
"eslint-plugin-command": "^3.5.2",
|
|
90
89
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
91
|
-
"eslint-plugin-jsdoc": "^
|
|
92
|
-
"eslint-plugin-jsonc": "^3.
|
|
93
|
-
"eslint-plugin-n": "^
|
|
94
|
-
"eslint-plugin-no-only-tests": "^3.
|
|
95
|
-
"eslint-plugin-perfectionist": "^5.
|
|
96
|
-
"eslint-plugin-pnpm": "^1.6.
|
|
90
|
+
"eslint-plugin-jsdoc": "^63.0.2",
|
|
91
|
+
"eslint-plugin-jsonc": "^3.2.0",
|
|
92
|
+
"eslint-plugin-n": "^18.1.0",
|
|
93
|
+
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
94
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
95
|
+
"eslint-plugin-pnpm": "^1.6.1",
|
|
97
96
|
"eslint-plugin-regexp": "^3.1.0",
|
|
98
|
-
"eslint-plugin-toml": "^1.
|
|
99
|
-
"eslint-plugin-unicorn": "^
|
|
97
|
+
"eslint-plugin-toml": "^1.4.0",
|
|
98
|
+
"eslint-plugin-unicorn": "^65.0.1",
|
|
100
99
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
101
|
-
"eslint-plugin-vue": "^10.
|
|
102
|
-
"eslint-plugin-yml": "^3.
|
|
100
|
+
"eslint-plugin-vue": "^10.9.2",
|
|
101
|
+
"eslint-plugin-yml": "^3.4.0",
|
|
103
102
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
104
|
-
"globals": "^17.
|
|
105
|
-
"local-pkg": "^1.1
|
|
103
|
+
"globals": "^17.6.0",
|
|
104
|
+
"local-pkg": "^1.2.1",
|
|
106
105
|
"parse-gitignore": "^2.0.0",
|
|
107
106
|
"pathe": "^2.0.3",
|
|
108
107
|
"toml-eslint-parser": "^1.0.3",
|
|
109
|
-
"vue-eslint-parser": "^10.4.
|
|
108
|
+
"vue-eslint-parser": "^10.4.1",
|
|
110
109
|
"yaml-eslint-parser": "^2.0.0"
|
|
111
110
|
},
|
|
112
111
|
"devDependencies": {
|
|
113
112
|
"@adonisjs/eslint-plugin": "^2.2.2",
|
|
114
|
-
"@commitlint/cli": "^
|
|
115
|
-
"@commitlint/config-conventional": "^
|
|
116
|
-
"@eslint/config-inspector": "^
|
|
117
|
-
"@nuxt/eslint-plugin": "^1.
|
|
113
|
+
"@commitlint/cli": "^21.0.2",
|
|
114
|
+
"@commitlint/config-conventional": "^21.0.2",
|
|
115
|
+
"@eslint/config-inspector": "^3.0.4",
|
|
116
|
+
"@nuxt/eslint-plugin": "^1.16.0",
|
|
118
117
|
"@prettier/plugin-xml": "^3.4.2",
|
|
119
|
-
"@types/node": "^24.
|
|
118
|
+
"@types/node": "^24.13.1",
|
|
120
119
|
"astro-eslint-parser": "^1.4.0",
|
|
121
|
-
"auto-changelog": "^2.
|
|
122
|
-
"baseline-browser-mapping": "^2.10.
|
|
123
|
-
"eslint": "^10.
|
|
120
|
+
"auto-changelog": "^2.6.0",
|
|
121
|
+
"baseline-browser-mapping": "^2.10.35",
|
|
122
|
+
"eslint": "^10.4.1",
|
|
124
123
|
"eslint-plugin-astro": "^1.7.0",
|
|
125
|
-
"eslint-plugin-erasable-syntax-only": "^0.4.
|
|
124
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.1",
|
|
126
125
|
"eslint-plugin-format": "^2.0.1",
|
|
127
126
|
"eslint-typegen": "^2.3.1",
|
|
128
127
|
"find-up-simple": "^1.0.1",
|
|
129
128
|
"husky": "^9.1.7",
|
|
130
|
-
"
|
|
131
|
-
"pnpm-workspace-yaml": "^1.6.0",
|
|
129
|
+
"pnpm-workspace-yaml": "^1.6.1",
|
|
132
130
|
"prettier-plugin-astro": "^0.14.1",
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
131
|
+
"release-it": "^20.2.0",
|
|
132
|
+
"tsdown": "^0.22.2",
|
|
133
|
+
"tsx": "^4.22.4",
|
|
134
|
+
"typescript": "^6.0.3"
|
|
136
135
|
},
|
|
137
136
|
"inlinedDependencies": {
|
|
138
137
|
"find-up-simple": "1.0.1"
|
|
@@ -141,9 +140,7 @@
|
|
|
141
140
|
"@eslint-community/eslint-utils": "catalog:peer",
|
|
142
141
|
"@typescript-eslint/types": "catalog:peer",
|
|
143
142
|
"@typescript-eslint/utils": "catalog:peer",
|
|
144
|
-
"chokidar": "catalog:dev",
|
|
145
143
|
"eslint": "catalog:peer",
|
|
146
|
-
"semver": "catalog:dev",
|
|
147
144
|
"tsx": "catalog:dev"
|
|
148
145
|
},
|
|
149
146
|
"commitlint": {
|
|
@@ -157,28 +154,56 @@
|
|
|
157
154
|
},
|
|
158
155
|
"auto-changelog": {
|
|
159
156
|
"template": "keepachangelog",
|
|
160
|
-
"hideCredit": true
|
|
157
|
+
"hideCredit": true,
|
|
158
|
+
"commitLimit": false
|
|
161
159
|
},
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
"release-it": {
|
|
161
|
+
"git": {
|
|
162
|
+
"requireCleanWorkingDir": true,
|
|
163
|
+
"commitMessage": "chore(release): :tada: v${version}",
|
|
164
|
+
"tagAnnotation": "chore(release): :tada: v${version}"
|
|
165
|
+
},
|
|
166
|
+
"github": {
|
|
167
|
+
"release": true,
|
|
168
|
+
"releaseName": "Release v${version}",
|
|
169
|
+
"web": true,
|
|
170
|
+
"autoGenerate": true
|
|
171
|
+
},
|
|
172
|
+
"npm": {
|
|
173
|
+
"publish": true,
|
|
174
|
+
"publishPackageManager": "pnpm",
|
|
175
|
+
"publishArgs": [
|
|
176
|
+
"--no-git-checks"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"hooks": {
|
|
180
|
+
"before:init": [
|
|
181
|
+
"pnpm run lint:check",
|
|
182
|
+
"pnpm run typecheck"
|
|
183
|
+
],
|
|
184
|
+
"after:bump": [
|
|
185
|
+
"pnpm run build",
|
|
186
|
+
"pnpm run changelog -p"
|
|
187
|
+
]
|
|
188
|
+
}
|
|
167
189
|
},
|
|
168
190
|
"scripts": {
|
|
169
191
|
"prebuild": "pnpm tool:code",
|
|
170
192
|
"build": "pnpm gen && tsdown",
|
|
193
|
+
"commitlint": "commitlint --edit",
|
|
171
194
|
"stub": "tsdown",
|
|
172
195
|
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
173
196
|
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
174
197
|
"watch": "tsdown --watch",
|
|
175
198
|
"gen": "tsx scripts/typegen.ts && tsx scripts/versiongen.ts",
|
|
176
|
-
"changelog": "auto-changelog -
|
|
177
|
-
"release": "
|
|
178
|
-
"version": "pnpm build && pnpm changelog",
|
|
199
|
+
"changelog": "auto-changelog --stdout -u",
|
|
200
|
+
"release": "release-it",
|
|
179
201
|
"lint": "eslint . --fix",
|
|
180
202
|
"lint:check": "eslint .",
|
|
181
203
|
"typecheck": "tsc --noEmit",
|
|
182
204
|
"tool:code": "pnpm lint:check && pnpm typecheck"
|
|
205
|
+
},
|
|
206
|
+
"bin": {
|
|
207
|
+
"eslint-config": "./bin/index.js"
|
|
183
208
|
}
|
|
184
209
|
}
|