@ntnyq/eslint-config 2.0.0-beta.20 → 2.0.0-beta.21
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/index.cjs +22 -24
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +73 -75
- package/package.json +18 -18
package/dist/index.cjs
CHANGED
|
@@ -69,10 +69,10 @@ __export(src_exports, {
|
|
|
69
69
|
ntnyq: () => ntnyq,
|
|
70
70
|
parserAstro: () => import_astro_eslint_parser.default,
|
|
71
71
|
parserJsonc: () => import_jsonc_eslint_parser.default,
|
|
72
|
-
|
|
72
|
+
parserTs: () => parserTs,
|
|
73
73
|
parserVue: () => import_vue_eslint_parser.default,
|
|
74
|
-
|
|
75
|
-
pluginAstro: () =>
|
|
74
|
+
parserYaml: () => import_yaml_eslint_parser.default,
|
|
75
|
+
pluginAstro: () => pluginAstro,
|
|
76
76
|
pluginComments: () => import_eslint_plugin_eslint_comments.default,
|
|
77
77
|
pluginImport: () => import_eslint_plugin_i.default,
|
|
78
78
|
pluginJsonc: () => import_eslint_plugin_jsonc.default,
|
|
@@ -81,11 +81,11 @@ __export(src_exports, {
|
|
|
81
81
|
pluginPrettier: () => import_eslint_plugin_prettier.default,
|
|
82
82
|
pluginReact: () => import_eslint_plugin_react.default,
|
|
83
83
|
pluginReactHooks: () => import_eslint_plugin_react_hooks.default,
|
|
84
|
-
|
|
84
|
+
pluginTs: () => import_eslint_plugin2.default,
|
|
85
85
|
pluginUnicorn: () => import_eslint_plugin_unicorn.default,
|
|
86
86
|
pluginUnoCSS: () => import_eslint_plugin.default,
|
|
87
87
|
pluginVue: () => import_eslint_plugin_vue.default,
|
|
88
|
-
|
|
88
|
+
pluginYaml: () => pluginYaml,
|
|
89
89
|
prettier: () => prettier,
|
|
90
90
|
react: () => react,
|
|
91
91
|
sortPackageJson: () => sortPackageJson,
|
|
@@ -162,19 +162,12 @@ var GLOB_EXCLUDE = [
|
|
|
162
162
|
var import_node_process = __toESM(require("process"), 1);
|
|
163
163
|
var import_local_pkg = require("local-pkg");
|
|
164
164
|
|
|
165
|
-
// src/parsers.ts
|
|
166
|
-
var import_yaml_eslint_parser = __toESM(require("yaml-eslint-parser"), 1);
|
|
167
|
-
var import_vue_eslint_parser = __toESM(require("vue-eslint-parser"), 1);
|
|
168
|
-
var import_jsonc_eslint_parser = __toESM(require("jsonc-eslint-parser"), 1);
|
|
169
|
-
var import_astro_eslint_parser = __toESM(require("astro-eslint-parser"), 1);
|
|
170
|
-
var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
|
|
171
|
-
|
|
172
165
|
// src/plugins.ts
|
|
166
|
+
var pluginYaml = __toESM(require("eslint-plugin-yml"), 1);
|
|
167
|
+
var pluginAstro = __toESM(require("eslint-plugin-astro"), 1);
|
|
173
168
|
var import_eslint_plugin_n = __toESM(require("eslint-plugin-n"), 1);
|
|
174
169
|
var import_eslint_plugin_i = __toESM(require("eslint-plugin-i"), 1);
|
|
175
|
-
var import_eslint_plugin_yml = __toESM(require("eslint-plugin-yml"), 1);
|
|
176
170
|
var import_eslint_plugin_vue = __toESM(require("eslint-plugin-vue"), 1);
|
|
177
|
-
var import_eslint_plugin_astro = __toESM(require("eslint-plugin-astro"), 1);
|
|
178
171
|
var import_eslint_plugin_jsonc = __toESM(require("eslint-plugin-jsonc"), 1);
|
|
179
172
|
var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
|
|
180
173
|
var import_eslint_plugin = __toESM(require("@unocss/eslint-plugin"), 1);
|
|
@@ -184,13 +177,18 @@ var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1
|
|
|
184
177
|
var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
|
|
185
178
|
var import_eslint_plugin_eslint_comments = __toESM(require("eslint-plugin-eslint-comments"), 1);
|
|
186
179
|
var import_eslint_plugin2 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
|
|
180
|
+
var import_yaml_eslint_parser = __toESM(require("yaml-eslint-parser"), 1);
|
|
181
|
+
var import_vue_eslint_parser = __toESM(require("vue-eslint-parser"), 1);
|
|
182
|
+
var import_jsonc_eslint_parser = __toESM(require("jsonc-eslint-parser"), 1);
|
|
183
|
+
var import_astro_eslint_parser = __toESM(require("astro-eslint-parser"), 1);
|
|
184
|
+
var parserTs = __toESM(require("@typescript-eslint/parser"), 1);
|
|
187
185
|
|
|
188
186
|
// src/configs/typescript.ts
|
|
189
187
|
var typescript = [
|
|
190
188
|
{
|
|
191
189
|
files: [GLOB_TS, GLOB_TSX],
|
|
192
190
|
languageOptions: {
|
|
193
|
-
parser:
|
|
191
|
+
parser: parserTs,
|
|
194
192
|
parserOptions: {
|
|
195
193
|
sourceType: "module"
|
|
196
194
|
}
|
|
@@ -314,11 +312,11 @@ var yml = [
|
|
|
314
312
|
parser: import_yaml_eslint_parser.default
|
|
315
313
|
},
|
|
316
314
|
plugins: {
|
|
317
|
-
yml:
|
|
315
|
+
yml: pluginYaml
|
|
318
316
|
},
|
|
319
317
|
rules: {
|
|
320
|
-
...
|
|
321
|
-
...
|
|
318
|
+
...pluginYaml.configs.standard.rules,
|
|
319
|
+
...pluginYaml.configs.prettier.rules,
|
|
322
320
|
"yml/no-empty-mapping-value": "off",
|
|
323
321
|
"yml/quotes": ["error", { avoidEscape: false, prefer: "single" }]
|
|
324
322
|
}
|
|
@@ -573,7 +571,7 @@ var astro = [
|
|
|
573
571
|
{
|
|
574
572
|
files: [GLOB_ASTRO],
|
|
575
573
|
plugins: {
|
|
576
|
-
astro:
|
|
574
|
+
astro: pluginAstro
|
|
577
575
|
},
|
|
578
576
|
languageOptions: {
|
|
579
577
|
parser: import_astro_eslint_parser.default,
|
|
@@ -583,7 +581,7 @@ var astro = [
|
|
|
583
581
|
}
|
|
584
582
|
},
|
|
585
583
|
rules: {
|
|
586
|
-
...
|
|
584
|
+
...pluginAstro.configs.recommended.rules
|
|
587
585
|
}
|
|
588
586
|
}
|
|
589
587
|
];
|
|
@@ -1300,9 +1298,9 @@ function ntnyq(config = [], {
|
|
|
1300
1298
|
ntnyq,
|
|
1301
1299
|
parserAstro,
|
|
1302
1300
|
parserJsonc,
|
|
1303
|
-
|
|
1301
|
+
parserTs,
|
|
1304
1302
|
parserVue,
|
|
1305
|
-
|
|
1303
|
+
parserYaml,
|
|
1306
1304
|
pluginAstro,
|
|
1307
1305
|
pluginComments,
|
|
1308
1306
|
pluginImport,
|
|
@@ -1312,11 +1310,11 @@ function ntnyq(config = [], {
|
|
|
1312
1310
|
pluginPrettier,
|
|
1313
1311
|
pluginReact,
|
|
1314
1312
|
pluginReactHooks,
|
|
1315
|
-
|
|
1313
|
+
pluginTs,
|
|
1316
1314
|
pluginUnicorn,
|
|
1317
1315
|
pluginUnoCSS,
|
|
1318
1316
|
pluginVue,
|
|
1319
|
-
|
|
1317
|
+
pluginYaml,
|
|
1320
1318
|
prettier,
|
|
1321
1319
|
react,
|
|
1322
1320
|
sortPackageJson,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FlatESLintConfigItem } from 'eslint-define-config';
|
|
2
|
+
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
3
|
+
export { eslintPluginYml as pluginYaml };
|
|
4
|
+
import * as eslintPluginAstro from 'eslint-plugin-astro';
|
|
5
|
+
export { eslintPluginAstro as pluginAstro };
|
|
2
6
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
3
7
|
export { default as pluginImport } from 'eslint-plugin-i';
|
|
4
|
-
export { default as pluginYml } from 'eslint-plugin-yml';
|
|
5
8
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
6
|
-
export { default as pluginAstro } from 'eslint-plugin-astro';
|
|
7
9
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
8
10
|
export { default as pluginReact } from 'eslint-plugin-react';
|
|
9
11
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
@@ -12,12 +14,13 @@ export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
|
12
14
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
13
15
|
export { default as pluginReactHooks } from 'eslint-plugin-react-hooks';
|
|
14
16
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
+
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
18
|
+
export { default as parserYaml } from 'yaml-eslint-parser';
|
|
17
19
|
export { default as parserVue } from 'vue-eslint-parser';
|
|
18
20
|
export { default as parserJsonc } from 'jsonc-eslint-parser';
|
|
19
21
|
export { default as parserAstro } from 'astro-eslint-parser';
|
|
20
|
-
|
|
22
|
+
import * as parser from '@typescript-eslint/parser';
|
|
23
|
+
export { parser as parserTs };
|
|
21
24
|
|
|
22
25
|
/**
|
|
23
26
|
* @file shared constants
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FlatESLintConfigItem } from 'eslint-define-config';
|
|
2
|
+
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
3
|
+
export { eslintPluginYml as pluginYaml };
|
|
4
|
+
import * as eslintPluginAstro from 'eslint-plugin-astro';
|
|
5
|
+
export { eslintPluginAstro as pluginAstro };
|
|
2
6
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
3
7
|
export { default as pluginImport } from 'eslint-plugin-i';
|
|
4
|
-
export { default as pluginYml } from 'eslint-plugin-yml';
|
|
5
8
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
6
|
-
export { default as pluginAstro } from 'eslint-plugin-astro';
|
|
7
9
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
8
10
|
export { default as pluginReact } from 'eslint-plugin-react';
|
|
9
11
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
@@ -12,12 +14,13 @@ export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
|
12
14
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
13
15
|
export { default as pluginReactHooks } from 'eslint-plugin-react-hooks';
|
|
14
16
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
+
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
18
|
+
export { default as parserYaml } from 'yaml-eslint-parser';
|
|
17
19
|
export { default as parserVue } from 'vue-eslint-parser';
|
|
18
20
|
export { default as parserJsonc } from 'jsonc-eslint-parser';
|
|
19
21
|
export { default as parserAstro } from 'astro-eslint-parser';
|
|
20
|
-
|
|
22
|
+
import * as parser from '@typescript-eslint/parser';
|
|
23
|
+
export { parser as parserTs };
|
|
21
24
|
|
|
22
25
|
/**
|
|
23
26
|
* @file shared constants
|
package/dist/index.js
CHANGED
|
@@ -62,45 +62,43 @@ var GLOB_EXCLUDE = [
|
|
|
62
62
|
import process from "node:process";
|
|
63
63
|
import { getPackageInfoSync } from "local-pkg";
|
|
64
64
|
|
|
65
|
-
// src/parsers.ts
|
|
66
|
-
import { default as default2 } from "yaml-eslint-parser";
|
|
67
|
-
import { default as default3 } from "vue-eslint-parser";
|
|
68
|
-
import { default as default4 } from "jsonc-eslint-parser";
|
|
69
|
-
import { default as default5 } from "astro-eslint-parser";
|
|
70
|
-
import { default as default6 } from "@typescript-eslint/parser";
|
|
71
|
-
|
|
72
65
|
// src/plugins.ts
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
66
|
+
import * as pluginYaml from "eslint-plugin-yml";
|
|
67
|
+
import * as pluginAstro from "eslint-plugin-astro";
|
|
68
|
+
import { default as default2 } from "eslint-plugin-n";
|
|
69
|
+
import { default as default3 } from "eslint-plugin-i";
|
|
70
|
+
import { default as default4 } from "eslint-plugin-vue";
|
|
71
|
+
import { default as default5 } from "eslint-plugin-jsonc";
|
|
72
|
+
import { default as default6 } from "eslint-plugin-react";
|
|
73
|
+
import { default as default7 } from "@unocss/eslint-plugin";
|
|
74
|
+
import { default as default8 } from "eslint-plugin-unicorn";
|
|
75
|
+
import { default as default9 } from "eslint-plugin-prettier";
|
|
76
|
+
import { default as default10 } from "eslint-plugin-markdown";
|
|
77
|
+
import { default as default11 } from "eslint-plugin-react-hooks";
|
|
78
|
+
import { default as default12 } from "eslint-plugin-eslint-comments";
|
|
79
|
+
import { default as default13 } from "@typescript-eslint/eslint-plugin";
|
|
80
|
+
import { default as default14 } from "yaml-eslint-parser";
|
|
81
|
+
import { default as default15 } from "vue-eslint-parser";
|
|
82
|
+
import { default as default16 } from "jsonc-eslint-parser";
|
|
83
|
+
import { default as default17 } from "astro-eslint-parser";
|
|
84
|
+
import * as parserTs from "@typescript-eslint/parser";
|
|
87
85
|
|
|
88
86
|
// src/configs/typescript.ts
|
|
89
87
|
var typescript = [
|
|
90
88
|
{
|
|
91
89
|
files: [GLOB_TS, GLOB_TSX],
|
|
92
90
|
languageOptions: {
|
|
93
|
-
parser:
|
|
91
|
+
parser: parserTs,
|
|
94
92
|
parserOptions: {
|
|
95
93
|
sourceType: "module"
|
|
96
94
|
}
|
|
97
95
|
},
|
|
98
96
|
plugins: {
|
|
99
|
-
"@typescript-eslint":
|
|
97
|
+
"@typescript-eslint": default13
|
|
100
98
|
},
|
|
101
99
|
rules: {
|
|
102
|
-
...
|
|
103
|
-
...
|
|
100
|
+
...default13.configs.recommended.rules,
|
|
101
|
+
...default13.configs.stylistic.rules,
|
|
104
102
|
"@typescript-eslint/no-unused-vars": "error",
|
|
105
103
|
"@typescript-eslint/no-redeclare": "error",
|
|
106
104
|
"@typescript-eslint/consistent-type-imports": [
|
|
@@ -179,11 +177,11 @@ var vue = [
|
|
|
179
177
|
{
|
|
180
178
|
files: [GLOB_VUE],
|
|
181
179
|
plugins: {
|
|
182
|
-
vue:
|
|
183
|
-
"@typescript-eslint":
|
|
180
|
+
vue: default4,
|
|
181
|
+
"@typescript-eslint": default13
|
|
184
182
|
},
|
|
185
183
|
languageOptions: {
|
|
186
|
-
parser:
|
|
184
|
+
parser: default15,
|
|
187
185
|
parserOptions: {
|
|
188
186
|
parser: "@typescript-eslint/parser",
|
|
189
187
|
sourceType: "module",
|
|
@@ -193,14 +191,14 @@ var vue = [
|
|
|
193
191
|
}
|
|
194
192
|
}
|
|
195
193
|
},
|
|
196
|
-
processor:
|
|
194
|
+
processor: default4.processors[".vue"],
|
|
197
195
|
rules: {
|
|
198
196
|
...typescript[0].rules
|
|
199
197
|
}
|
|
200
198
|
},
|
|
201
199
|
{
|
|
202
200
|
plugins: {
|
|
203
|
-
vue:
|
|
201
|
+
vue: default4
|
|
204
202
|
},
|
|
205
203
|
rules: isVue3 ? vue3Rules : vue2Rules
|
|
206
204
|
}
|
|
@@ -211,14 +209,14 @@ var yml = [
|
|
|
211
209
|
{
|
|
212
210
|
files: [GLOB_YAML],
|
|
213
211
|
languageOptions: {
|
|
214
|
-
parser:
|
|
212
|
+
parser: default14
|
|
215
213
|
},
|
|
216
214
|
plugins: {
|
|
217
|
-
yml:
|
|
215
|
+
yml: pluginYaml
|
|
218
216
|
},
|
|
219
217
|
rules: {
|
|
220
|
-
...
|
|
221
|
-
...
|
|
218
|
+
...pluginYaml.configs.standard.rules,
|
|
219
|
+
...pluginYaml.configs.prettier.rules,
|
|
222
220
|
"yml/no-empty-mapping-value": "off",
|
|
223
221
|
"yml/quotes": ["error", { avoidEscape: false, prefer: "single" }]
|
|
224
222
|
}
|
|
@@ -229,7 +227,7 @@ var yml = [
|
|
|
229
227
|
var node = [
|
|
230
228
|
{
|
|
231
229
|
plugins: {
|
|
232
|
-
node:
|
|
230
|
+
node: default2
|
|
233
231
|
},
|
|
234
232
|
rules: {
|
|
235
233
|
"node/handle-callback-err": ["error", "^(err|error)$"],
|
|
@@ -444,8 +442,8 @@ var react = [
|
|
|
444
442
|
{
|
|
445
443
|
files: [GLOB_JSX, GLOB_TSX],
|
|
446
444
|
plugins: {
|
|
447
|
-
react:
|
|
448
|
-
"react-hooks":
|
|
445
|
+
react: default6,
|
|
446
|
+
"react-hooks": default11
|
|
449
447
|
},
|
|
450
448
|
settings: {
|
|
451
449
|
react: {
|
|
@@ -460,8 +458,8 @@ var react = [
|
|
|
460
458
|
}
|
|
461
459
|
},
|
|
462
460
|
rules: {
|
|
463
|
-
...
|
|
464
|
-
...
|
|
461
|
+
...default6.configs.recommended.rules,
|
|
462
|
+
...default11.configs.recommended.rules,
|
|
465
463
|
"jsx-quotes": ["error", "prefer-double"],
|
|
466
464
|
"react/react-in-jsx-scope": "off"
|
|
467
465
|
}
|
|
@@ -473,17 +471,17 @@ var astro = [
|
|
|
473
471
|
{
|
|
474
472
|
files: [GLOB_ASTRO],
|
|
475
473
|
plugins: {
|
|
476
|
-
astro:
|
|
474
|
+
astro: pluginAstro
|
|
477
475
|
},
|
|
478
476
|
languageOptions: {
|
|
479
|
-
parser:
|
|
477
|
+
parser: default17,
|
|
480
478
|
parserOptions: {
|
|
481
479
|
parser: "@typescript-eslint/parser",
|
|
482
480
|
extraFileExtensions: [".astro"]
|
|
483
481
|
}
|
|
484
482
|
},
|
|
485
483
|
rules: {
|
|
486
|
-
...
|
|
484
|
+
...pluginAstro.configs.recommended.rules
|
|
487
485
|
}
|
|
488
486
|
}
|
|
489
487
|
];
|
|
@@ -493,13 +491,13 @@ var jsonc = [
|
|
|
493
491
|
{
|
|
494
492
|
files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
|
|
495
493
|
plugins: {
|
|
496
|
-
jsonc:
|
|
494
|
+
jsonc: default5
|
|
497
495
|
},
|
|
498
496
|
languageOptions: {
|
|
499
|
-
parser:
|
|
497
|
+
parser: default16
|
|
500
498
|
},
|
|
501
499
|
rules: {
|
|
502
|
-
...
|
|
500
|
+
...default5.configs["recommended-with-jsonc"].rules,
|
|
503
501
|
"jsonc/array-bracket-spacing": ["error", "never"],
|
|
504
502
|
"jsonc/comma-dangle": ["error", "never"],
|
|
505
503
|
"jsonc/comma-style": ["error", "last"],
|
|
@@ -534,7 +532,7 @@ var jsonc = [
|
|
|
534
532
|
var imports = [
|
|
535
533
|
{
|
|
536
534
|
plugins: {
|
|
537
|
-
import:
|
|
535
|
+
import: default3
|
|
538
536
|
},
|
|
539
537
|
settings: {
|
|
540
538
|
"import/resolver": {
|
|
@@ -576,10 +574,10 @@ var imports = [
|
|
|
576
574
|
var unocss = [
|
|
577
575
|
{
|
|
578
576
|
plugins: {
|
|
579
|
-
"@unocss":
|
|
577
|
+
"@unocss": default7
|
|
580
578
|
},
|
|
581
579
|
rules: {
|
|
582
|
-
...
|
|
580
|
+
...default7.configs.recommended.rules
|
|
583
581
|
}
|
|
584
582
|
}
|
|
585
583
|
];
|
|
@@ -588,7 +586,7 @@ var unocss = [
|
|
|
588
586
|
var unicorn = [
|
|
589
587
|
{
|
|
590
588
|
plugins: {
|
|
591
|
-
unicorn:
|
|
589
|
+
unicorn: default8
|
|
592
590
|
},
|
|
593
591
|
rules: {
|
|
594
592
|
"unicorn/no-unsafe-regex": "off",
|
|
@@ -664,11 +662,11 @@ import prettierConfig from "eslint-config-prettier";
|
|
|
664
662
|
var prettier = [
|
|
665
663
|
{
|
|
666
664
|
plugins: {
|
|
667
|
-
prettier:
|
|
665
|
+
prettier: default9
|
|
668
666
|
},
|
|
669
667
|
rules: {
|
|
670
668
|
...prettierConfig.rules,
|
|
671
|
-
...
|
|
669
|
+
...default9.configs.recommended.rules,
|
|
672
670
|
"prettier/prettier": "warn"
|
|
673
671
|
}
|
|
674
672
|
}
|
|
@@ -679,7 +677,7 @@ var markdown = [
|
|
|
679
677
|
{
|
|
680
678
|
files: [GLOB_MARKDOWN],
|
|
681
679
|
plugins: {
|
|
682
|
-
markdown:
|
|
680
|
+
markdown: default10
|
|
683
681
|
},
|
|
684
682
|
processor: "markdown/markdown"
|
|
685
683
|
},
|
|
@@ -693,10 +691,10 @@ var markdown = [
|
|
|
693
691
|
}
|
|
694
692
|
},
|
|
695
693
|
plugins: {
|
|
696
|
-
"@typescript-eslint":
|
|
694
|
+
"@typescript-eslint": default13
|
|
697
695
|
},
|
|
698
696
|
rules: {
|
|
699
|
-
...
|
|
697
|
+
...default10.configs.recommended.overrides[1].rules,
|
|
700
698
|
"no-undef": "off",
|
|
701
699
|
"no-alert": "off",
|
|
702
700
|
"no-console": "off",
|
|
@@ -720,10 +718,10 @@ var markdown = [
|
|
|
720
718
|
var comments = [
|
|
721
719
|
{
|
|
722
720
|
plugins: {
|
|
723
|
-
"eslint-comments":
|
|
721
|
+
"eslint-comments": default12
|
|
724
722
|
},
|
|
725
723
|
rules: {
|
|
726
|
-
...
|
|
724
|
+
...default12.configs.recommended.rules,
|
|
727
725
|
"eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }]
|
|
728
726
|
}
|
|
729
727
|
}
|
|
@@ -1197,25 +1195,25 @@ export {
|
|
|
1197
1195
|
markdown,
|
|
1198
1196
|
node,
|
|
1199
1197
|
ntnyq,
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1198
|
+
default17 as parserAstro,
|
|
1199
|
+
default16 as parserJsonc,
|
|
1200
|
+
parserTs,
|
|
1201
|
+
default15 as parserVue,
|
|
1202
|
+
default14 as parserYaml,
|
|
1203
|
+
pluginAstro,
|
|
1204
|
+
default12 as pluginComments,
|
|
1205
|
+
default3 as pluginImport,
|
|
1206
|
+
default5 as pluginJsonc,
|
|
1207
|
+
default10 as pluginMarkdown,
|
|
1208
|
+
default2 as pluginNode,
|
|
1209
|
+
default9 as pluginPrettier,
|
|
1210
|
+
default6 as pluginReact,
|
|
1211
|
+
default11 as pluginReactHooks,
|
|
1212
|
+
default13 as pluginTs,
|
|
1213
|
+
default8 as pluginUnicorn,
|
|
1214
|
+
default7 as pluginUnoCSS,
|
|
1215
|
+
default4 as pluginVue,
|
|
1216
|
+
pluginYaml,
|
|
1219
1217
|
prettier,
|
|
1220
1218
|
react,
|
|
1221
1219
|
sortPackageJson,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.21",
|
|
5
5
|
"description": "ESLint flat config of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -51,41 +51,41 @@
|
|
|
51
51
|
"eslint": "^8.30.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@eslint/js": "^8.
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
56
|
-
"@typescript-eslint/parser": "^6.
|
|
57
|
-
"@unocss/eslint-plugin": "^0.56.
|
|
58
|
-
"astro-eslint-parser": "^0.
|
|
54
|
+
"@eslint/js": "^8.51.0",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
56
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
57
|
+
"@unocss/eslint-plugin": "^0.56.5",
|
|
58
|
+
"astro-eslint-parser": "^0.16.0",
|
|
59
59
|
"eslint-config-prettier": "^9.0.0",
|
|
60
|
-
"eslint-define-config": "^1.
|
|
61
|
-
"eslint-plugin-astro": "^0.29.
|
|
60
|
+
"eslint-define-config": "^1.24.1",
|
|
61
|
+
"eslint-plugin-astro": "^0.29.1",
|
|
62
62
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
63
63
|
"eslint-plugin-i": "^2.28.1",
|
|
64
|
-
"eslint-plugin-jsonc": "^2.
|
|
64
|
+
"eslint-plugin-jsonc": "^2.10.0",
|
|
65
65
|
"eslint-plugin-markdown": "^3.0.1",
|
|
66
|
-
"eslint-plugin-n": "^16.
|
|
67
|
-
"eslint-plugin-prettier": "^5.0.
|
|
66
|
+
"eslint-plugin-n": "^16.2.0",
|
|
67
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
68
68
|
"eslint-plugin-react": "^7.33.2",
|
|
69
69
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
70
70
|
"eslint-plugin-unicorn": "^48.0.1",
|
|
71
71
|
"eslint-plugin-vue": "^9.17.0",
|
|
72
|
-
"eslint-plugin-yml": "^1.
|
|
73
|
-
"globals": "^13.
|
|
72
|
+
"eslint-plugin-yml": "^1.10.0",
|
|
73
|
+
"globals": "^13.23.0",
|
|
74
74
|
"jsonc-eslint-parser": "^2.3.0",
|
|
75
|
-
"local-pkg": "^0.
|
|
75
|
+
"local-pkg": "^0.5.0",
|
|
76
76
|
"prettier": "^3.0.3",
|
|
77
|
-
"vue-eslint-parser": "^9.3.
|
|
77
|
+
"vue-eslint-parser": "^9.3.2",
|
|
78
78
|
"yaml-eslint-parser": "^1.2.2"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@ntnyq/prettier-config": "^1.14.0",
|
|
82
|
-
"@types/node": "^20.6
|
|
82
|
+
"@types/node": "^20.8.6",
|
|
83
83
|
"bumpp": "^9.2.0",
|
|
84
|
-
"eslint": "^8.
|
|
84
|
+
"eslint": "^8.51.0",
|
|
85
85
|
"husky": "^8.0.3",
|
|
86
86
|
"nano-staged": "^0.8.0",
|
|
87
87
|
"npm-run-all": "^4.1.5",
|
|
88
|
-
"rimraf": "^5.0.
|
|
88
|
+
"rimraf": "^5.0.5",
|
|
89
89
|
"tsup": "^7.2.0",
|
|
90
90
|
"typescript": "5.2.2"
|
|
91
91
|
},
|