@eienjs/eslint-config 1.9.2 → 1.10.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/cli/constants_generated.mjs +6 -6
- package/dist/cli/stages/update_eslint_files.mjs +4 -4
- package/dist/cli/stages/update_package_json.mjs +3 -3
- package/dist/cli/stages/update_vscode_settings.mjs +5 -5
- package/dist/configs/adonisjs.mjs +2 -1
- package/dist/configs/formatters.mjs +1 -1
- package/dist/configs/ignores.d.mts +1 -1
- package/dist/configs/ignores.mjs +3 -2
- package/dist/configs/javascript.mjs +0 -1
- package/dist/configs/jsdoc.mjs +5 -1
- package/dist/configs/jsonc.mjs +2 -3
- package/dist/configs/markdown.d.mts +2 -2
- package/dist/configs/markdown.mjs +28 -4
- package/dist/configs/node.mjs +5 -1
- package/dist/configs/pnpm.mjs +3 -4
- package/dist/factory.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.mjs +2 -2
- package/dist/package.mjs +1 -1
- package/dist/typegen.d.mts +258 -170
- package/dist/types.d.mts +17 -4
- package/package.json +44 -42
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ConfigNames, RuleOptions } from "./typegen.mjs";
|
|
2
2
|
import { VendoredPrettierOptions } from "./vendored/prettier_types.mjs";
|
|
3
|
+
import { ConfigWithExtends } from "eslint-flat-config-utils";
|
|
3
4
|
import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
|
|
4
5
|
import { ParserOptions } from "@typescript-eslint/parser";
|
|
5
6
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
@@ -14,7 +15,7 @@ type Rules = Record<string, Linter.RuleEntry | undefined> & RuleOptions;
|
|
|
14
15
|
* for `rules` and relaxes type limitations for `plugins` and `rules`, because
|
|
15
16
|
* many plugins still lack proper type definitions.
|
|
16
17
|
*/
|
|
17
|
-
type TypedFlatConfigItem = Omit<
|
|
18
|
+
type TypedFlatConfigItem = Omit<ConfigWithExtends, 'plugins' | 'rules'> & {
|
|
18
19
|
/**
|
|
19
20
|
* An object containing a name-value mapping of plugin names to plugin objects.
|
|
20
21
|
* When `files` is specified, these plugins are only available to the matching files.
|
|
@@ -219,6 +220,18 @@ interface OptionsComponentExts {
|
|
|
219
220
|
*/
|
|
220
221
|
componentExts?: string[];
|
|
221
222
|
}
|
|
223
|
+
interface OptionsMarkdown extends OptionsOverrides {
|
|
224
|
+
/**
|
|
225
|
+
* Enable GFM (Github Flavored Markdown) support.
|
|
226
|
+
*
|
|
227
|
+
* @default true
|
|
228
|
+
*/
|
|
229
|
+
gfm?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Override rules for markdown itself.
|
|
232
|
+
*/
|
|
233
|
+
overridesMarkdown?: TypedFlatConfigItem['rules'];
|
|
234
|
+
}
|
|
222
235
|
interface OptionsTypeScriptParserOptions {
|
|
223
236
|
/**
|
|
224
237
|
* Additional parser options for TypeScript.
|
|
@@ -406,13 +419,13 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
406
419
|
*/
|
|
407
420
|
astro?: boolean | OptionsOverrides;
|
|
408
421
|
/**
|
|
409
|
-
* Enable linting for **code snippets** in Markdown.
|
|
422
|
+
* Enable linting for **code snippets** in Markdown and the markdown content itself.
|
|
410
423
|
*
|
|
411
424
|
* For formatting Markdown content, enable also `formatters.markdown`.
|
|
412
425
|
*
|
|
413
426
|
* @default true
|
|
414
427
|
*/
|
|
415
|
-
markdown?: boolean |
|
|
428
|
+
markdown?: boolean | OptionsMarkdown;
|
|
416
429
|
/**
|
|
417
430
|
* Enable stylistic rules.
|
|
418
431
|
*
|
|
@@ -474,4 +487,4 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
474
487
|
nuxt?: boolean | OptionsNuxt;
|
|
475
488
|
}
|
|
476
489
|
//#endregion
|
|
477
|
-
export { Awaitable, OptionsAdonisJS, OptionsComponentExts, OptionsConfig, OptionsErasableSyntaxOnly, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsNuxt, OptionsOverrides, OptionsPnpm, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsTypescriptWithErasableSyntaxOnly, OptionsVue, Rules, StylisticConfig, TypedFlatConfigItem };
|
|
490
|
+
export { Awaitable, OptionsAdonisJS, OptionsComponentExts, OptionsConfig, OptionsErasableSyntaxOnly, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsMarkdown, OptionsNuxt, OptionsOverrides, OptionsPnpm, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsTypescriptWithErasableSyntaxOnly, OptionsVue, Rules, StylisticConfig, TypedFlatConfigItem };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eienjs/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.0",
|
|
5
5
|
"description": "EienJS ESLint Config",
|
|
6
6
|
"author": "Fernando Isidro <luffynando@gmail.com> (https://github.com/luffynando/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"node": ">=20.19"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@adonisjs/eslint-plugin": "^2.2.
|
|
38
|
-
"@nuxt/eslint-plugin": "^1.
|
|
37
|
+
"@adonisjs/eslint-plugin": "^2.2.2",
|
|
38
|
+
"@nuxt/eslint-plugin": "^1.15.2",
|
|
39
39
|
"@prettier/plugin-xml": "^3.4.2",
|
|
40
|
-
"astro-eslint-parser": "^1.
|
|
41
|
-
"eslint": "^9.39.2",
|
|
42
|
-
"eslint-plugin-astro": "^1.
|
|
40
|
+
"astro-eslint-parser": "^1.3.0",
|
|
41
|
+
"eslint": "^9.39.2 || ^10.0.1",
|
|
42
|
+
"eslint-plugin-astro": "^1.6.0",
|
|
43
43
|
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
44
|
-
"eslint-plugin-format": "
|
|
44
|
+
"eslint-plugin-format": ">=0.1.0",
|
|
45
45
|
"prettier-plugin-astro": "^0.14.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
@@ -72,69 +72,71 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@antfu/install-pkg": "^1.1.0",
|
|
75
|
-
"@clack/prompts": "^1.0.
|
|
75
|
+
"@clack/prompts": "^1.0.1",
|
|
76
76
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
|
|
77
77
|
"@eslint/markdown": "^7.5.1",
|
|
78
|
-
"@stylistic/eslint-plugin": "^5.
|
|
79
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
80
|
-
"@typescript-eslint/parser": "^8.
|
|
81
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
78
|
+
"@stylistic/eslint-plugin": "^5.9.0",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
80
|
+
"@typescript-eslint/parser": "^8.56.1",
|
|
81
|
+
"@vitest/eslint-plugin": "^1.6.9",
|
|
82
82
|
"ansis": "^4.2.0",
|
|
83
83
|
"cac": "^6.7.14",
|
|
84
|
-
"eslint-config-flat-gitignore": "^2.1
|
|
85
|
-
"eslint-flat-config-utils": "^3.0.
|
|
84
|
+
"eslint-config-flat-gitignore": "^2.2.1",
|
|
85
|
+
"eslint-flat-config-utils": "^3.0.1",
|
|
86
86
|
"eslint-merge-processors": "^2.0.0",
|
|
87
|
-
"eslint-plugin-antfu": "^3.
|
|
88
|
-
"eslint-plugin-command": "^3.
|
|
89
|
-
"eslint-plugin-import-lite": "^0.5.
|
|
90
|
-
"eslint-plugin-jsdoc": "^62.
|
|
91
|
-
"eslint-plugin-jsonc": "^
|
|
92
|
-
"eslint-plugin-n": "^17.
|
|
87
|
+
"eslint-plugin-antfu": "^3.2.2",
|
|
88
|
+
"eslint-plugin-command": "^3.5.2",
|
|
89
|
+
"eslint-plugin-import-lite": "^0.5.2",
|
|
90
|
+
"eslint-plugin-jsdoc": "^62.7.1",
|
|
91
|
+
"eslint-plugin-jsonc": "^3.1.1",
|
|
92
|
+
"eslint-plugin-n": "^17.24.0",
|
|
93
93
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
94
|
-
"eslint-plugin-perfectionist": "^5.
|
|
95
|
-
"eslint-plugin-pnpm": "^1.
|
|
94
|
+
"eslint-plugin-perfectionist": "^5.6.0",
|
|
95
|
+
"eslint-plugin-pnpm": "^1.6.0",
|
|
96
96
|
"eslint-plugin-regexp": "^3.0.0",
|
|
97
|
-
"eslint-plugin-toml": "^1.0
|
|
98
|
-
"eslint-plugin-unicorn": "^
|
|
99
|
-
"eslint-plugin-unused-imports": "^4.
|
|
100
|
-
"eslint-plugin-vue": "^10.
|
|
101
|
-
"eslint-plugin-yml": "^3.
|
|
97
|
+
"eslint-plugin-toml": "^1.3.0",
|
|
98
|
+
"eslint-plugin-unicorn": "^63.0.0",
|
|
99
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
100
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
101
|
+
"eslint-plugin-yml": "^3.3.0",
|
|
102
102
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
103
103
|
"globals": "^17.3.0",
|
|
104
|
-
"jsonc-eslint-parser": "^2.4.2",
|
|
105
104
|
"local-pkg": "^1.1.2",
|
|
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.
|
|
108
|
+
"vue-eslint-parser": "^10.4.0",
|
|
110
109
|
"yaml-eslint-parser": "^2.0.0"
|
|
111
110
|
},
|
|
112
111
|
"devDependencies": {
|
|
113
|
-
"@adonisjs/eslint-plugin": "^2.2.
|
|
114
|
-
"@commitlint/cli": "^20.4.
|
|
115
|
-
"@commitlint/config-conventional": "^20.4.
|
|
112
|
+
"@adonisjs/eslint-plugin": "^2.2.2",
|
|
113
|
+
"@commitlint/cli": "^20.4.2",
|
|
114
|
+
"@commitlint/config-conventional": "^20.4.2",
|
|
116
115
|
"@eslint/config-inspector": "^1.4.2",
|
|
117
|
-
"@nuxt/eslint-plugin": "^1.
|
|
116
|
+
"@nuxt/eslint-plugin": "^1.15.2",
|
|
118
117
|
"@prettier/plugin-xml": "^3.4.2",
|
|
119
|
-
"@types/node": "^
|
|
120
|
-
"astro-eslint-parser": "^1.
|
|
118
|
+
"@types/node": "^25.3.0",
|
|
119
|
+
"astro-eslint-parser": "^1.3.0",
|
|
121
120
|
"auto-changelog": "^2.5.0",
|
|
122
|
-
"
|
|
123
|
-
"eslint
|
|
121
|
+
"baseline-browser-mapping": "^2.10.0",
|
|
122
|
+
"eslint": "^10.0.2",
|
|
123
|
+
"eslint-plugin-astro": "^1.6.0",
|
|
124
124
|
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
125
|
-
"eslint-plugin-format": "^
|
|
126
|
-
"eslint-typegen": "^2.3.
|
|
125
|
+
"eslint-plugin-format": "^2.0.1",
|
|
126
|
+
"eslint-typegen": "^2.3.1",
|
|
127
127
|
"find-up-simple": "^1.0.1",
|
|
128
128
|
"husky": "^9.1.7",
|
|
129
129
|
"np": "^11.0.2",
|
|
130
|
-
"pnpm-workspace-yaml": "^1.
|
|
130
|
+
"pnpm-workspace-yaml": "^1.6.0",
|
|
131
131
|
"prettier-plugin-astro": "^0.14.1",
|
|
132
|
-
"tsdown": "^0.20.
|
|
132
|
+
"tsdown": "^0.20.3",
|
|
133
133
|
"tsx": "^4.21.0",
|
|
134
134
|
"typescript": "^5.9.3"
|
|
135
135
|
},
|
|
136
136
|
"resolutions": {
|
|
137
|
-
"
|
|
137
|
+
"chokidar": "catalog:dev",
|
|
138
|
+
"eslint": "catalog:peer",
|
|
139
|
+
"tsx": "catalog:dev"
|
|
138
140
|
},
|
|
139
141
|
"commitlint": {
|
|
140
142
|
"extends": [
|