@ntnyq/eslint-config 2.0.0-beta.22 → 2.0.0-beta.24
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 +25 -106
- package/dist/index.d.cts +2 -14
- package/dist/index.d.ts +2 -14
- package/dist/index.js +60 -134
- package/package.json +25 -29
package/dist/index.cjs
CHANGED
|
@@ -31,7 +31,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
33
|
GLOB_ALL_SRC: () => GLOB_ALL_SRC,
|
|
34
|
-
GLOB_ASTRO: () => GLOB_ASTRO,
|
|
35
34
|
GLOB_CSS: () => GLOB_CSS,
|
|
36
35
|
GLOB_DIST: () => GLOB_DIST,
|
|
37
36
|
GLOB_EXCLUDE: () => GLOB_EXCLUDE,
|
|
@@ -54,7 +53,6 @@ __export(src_exports, {
|
|
|
54
53
|
GLOB_VUE: () => GLOB_VUE,
|
|
55
54
|
GLOB_YAML: () => GLOB_YAML,
|
|
56
55
|
all: () => all,
|
|
57
|
-
astro: () => astro,
|
|
58
56
|
basic: () => basic,
|
|
59
57
|
comments: () => comments,
|
|
60
58
|
common: () => common,
|
|
@@ -67,27 +65,22 @@ __export(src_exports, {
|
|
|
67
65
|
markdown: () => markdown,
|
|
68
66
|
node: () => node,
|
|
69
67
|
ntnyq: () => ntnyq,
|
|
70
|
-
parserAstro: () => import_astro_eslint_parser.default,
|
|
71
68
|
parserJsonc: () => import_jsonc_eslint_parser.default,
|
|
72
69
|
parserTs: () => parserTs,
|
|
73
70
|
parserVue: () => import_vue_eslint_parser.default,
|
|
74
71
|
parserYaml: () => import_yaml_eslint_parser.default,
|
|
75
|
-
pluginAstro: () => pluginAstro,
|
|
76
72
|
pluginComments: () => import_eslint_plugin_eslint_comments.default,
|
|
77
73
|
pluginImport: () => import_eslint_plugin_i.default,
|
|
78
74
|
pluginJsonc: () => import_eslint_plugin_jsonc.default,
|
|
79
75
|
pluginMarkdown: () => import_eslint_plugin_markdown.default,
|
|
80
76
|
pluginNode: () => import_eslint_plugin_n.default,
|
|
81
77
|
pluginPrettier: () => import_eslint_plugin_prettier.default,
|
|
82
|
-
pluginReact: () => import_eslint_plugin_react.default,
|
|
83
|
-
pluginReactHooks: () => import_eslint_plugin_react_hooks.default,
|
|
84
78
|
pluginTs: () => import_eslint_plugin2.default,
|
|
85
79
|
pluginUnicorn: () => import_eslint_plugin_unicorn.default,
|
|
86
80
|
pluginUnoCSS: () => import_eslint_plugin.default,
|
|
87
81
|
pluginVue: () => import_eslint_plugin_vue.default,
|
|
88
82
|
pluginYaml: () => pluginYaml,
|
|
89
83
|
prettier: () => prettier,
|
|
90
|
-
react: () => react,
|
|
91
84
|
sortPackageJson: () => sortPackageJson,
|
|
92
85
|
sortTsConfig: () => sortTsConfig,
|
|
93
86
|
typescript: () => typescript,
|
|
@@ -113,7 +106,6 @@ var GLOB_JSON = "**/*.json";
|
|
|
113
106
|
var GLOB_JSON5 = "**/*.json5";
|
|
114
107
|
var GLOB_JSONC = "**/*.jsonc";
|
|
115
108
|
var GLOB_VUE = "**/*.vue";
|
|
116
|
-
var GLOB_ASTRO = "**/*.astro";
|
|
117
109
|
var GLOB_MARKDOWN = "**/*.md";
|
|
118
110
|
var GLOB_YAML = "**/*.y?(a)ml";
|
|
119
111
|
var GLOB_HTML = "**/*.htm?(l)";
|
|
@@ -159,7 +151,7 @@ var GLOB_EXCLUDE = [
|
|
|
159
151
|
];
|
|
160
152
|
|
|
161
153
|
// src/presets.ts
|
|
162
|
-
var
|
|
154
|
+
var import_eslint_define_config15 = require("eslint-define-config");
|
|
163
155
|
|
|
164
156
|
// src/configs/vue.ts
|
|
165
157
|
var import_node_process = __toESM(require("process"), 1);
|
|
@@ -168,23 +160,19 @@ var import_eslint_define_config2 = require("eslint-define-config");
|
|
|
168
160
|
|
|
169
161
|
// src/plugins.ts
|
|
170
162
|
var pluginYaml = __toESM(require("eslint-plugin-yml"), 1);
|
|
171
|
-
var pluginAstro = __toESM(require("eslint-plugin-astro"), 1);
|
|
172
163
|
var import_eslint_plugin_n = __toESM(require("eslint-plugin-n"), 1);
|
|
173
164
|
var import_eslint_plugin_i = __toESM(require("eslint-plugin-i"), 1);
|
|
174
165
|
var import_eslint_plugin_vue = __toESM(require("eslint-plugin-vue"), 1);
|
|
175
166
|
var import_eslint_plugin_jsonc = __toESM(require("eslint-plugin-jsonc"), 1);
|
|
176
|
-
var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
|
|
177
167
|
var import_eslint_plugin = __toESM(require("@unocss/eslint-plugin"), 1);
|
|
178
168
|
var import_eslint_plugin_unicorn = __toESM(require("eslint-plugin-unicorn"), 1);
|
|
179
169
|
var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
|
|
180
170
|
var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1);
|
|
181
|
-
var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
|
|
182
171
|
var import_eslint_plugin_eslint_comments = __toESM(require("eslint-plugin-eslint-comments"), 1);
|
|
183
172
|
var import_eslint_plugin2 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
|
|
184
173
|
var import_yaml_eslint_parser = __toESM(require("yaml-eslint-parser"), 1);
|
|
185
174
|
var import_vue_eslint_parser = __toESM(require("vue-eslint-parser"), 1);
|
|
186
175
|
var import_jsonc_eslint_parser = __toESM(require("jsonc-eslint-parser"), 1);
|
|
187
|
-
var import_astro_eslint_parser = __toESM(require("astro-eslint-parser"), 1);
|
|
188
176
|
var parserTs = __toESM(require("@typescript-eslint/parser"), 1);
|
|
189
177
|
|
|
190
178
|
// src/configs/typescript.ts
|
|
@@ -545,60 +533,9 @@ var sortTsConfig = (0, import_eslint_define_config5.defineFlatConfig)([
|
|
|
545
533
|
}
|
|
546
534
|
]);
|
|
547
535
|
|
|
548
|
-
// src/configs/react.ts
|
|
549
|
-
var import_eslint_define_config6 = require("eslint-define-config");
|
|
550
|
-
var react = (0, import_eslint_define_config6.defineFlatConfig)([
|
|
551
|
-
{
|
|
552
|
-
files: [GLOB_JSX, GLOB_TSX],
|
|
553
|
-
plugins: {
|
|
554
|
-
react: import_eslint_plugin_react.default,
|
|
555
|
-
"react-hooks": import_eslint_plugin_react_hooks.default
|
|
556
|
-
},
|
|
557
|
-
settings: {
|
|
558
|
-
react: {
|
|
559
|
-
version: "18.0"
|
|
560
|
-
}
|
|
561
|
-
},
|
|
562
|
-
languageOptions: {
|
|
563
|
-
parserOptions: {
|
|
564
|
-
ecmaFeatures: {
|
|
565
|
-
jsx: true
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
rules: {
|
|
570
|
-
...import_eslint_plugin_react.default.configs.recommended.rules,
|
|
571
|
-
...import_eslint_plugin_react_hooks.default.configs.recommended.rules,
|
|
572
|
-
"jsx-quotes": ["error", "prefer-double"],
|
|
573
|
-
"react/react-in-jsx-scope": "off"
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
]);
|
|
577
|
-
|
|
578
|
-
// src/configs/astro.ts
|
|
579
|
-
var import_eslint_define_config7 = require("eslint-define-config");
|
|
580
|
-
var astro = (0, import_eslint_define_config7.defineFlatConfig)([
|
|
581
|
-
{
|
|
582
|
-
files: [GLOB_ASTRO],
|
|
583
|
-
plugins: {
|
|
584
|
-
astro: pluginAstro
|
|
585
|
-
},
|
|
586
|
-
languageOptions: {
|
|
587
|
-
parser: import_astro_eslint_parser.default,
|
|
588
|
-
parserOptions: {
|
|
589
|
-
parser: "@typescript-eslint/parser",
|
|
590
|
-
extraFileExtensions: [".astro"]
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
|
-
rules: {
|
|
594
|
-
...pluginAstro.configs.recommended.rules
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
]);
|
|
598
|
-
|
|
599
536
|
// src/configs/jsonc.ts
|
|
600
|
-
var
|
|
601
|
-
var jsonc = (0,
|
|
537
|
+
var import_eslint_define_config6 = require("eslint-define-config");
|
|
538
|
+
var jsonc = (0, import_eslint_define_config6.defineFlatConfig)([
|
|
602
539
|
{
|
|
603
540
|
files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
|
|
604
541
|
plugins: {
|
|
@@ -640,8 +577,8 @@ var jsonc = (0, import_eslint_define_config8.defineFlatConfig)([
|
|
|
640
577
|
]);
|
|
641
578
|
|
|
642
579
|
// src/configs/imports.ts
|
|
643
|
-
var
|
|
644
|
-
var imports = (0,
|
|
580
|
+
var import_eslint_define_config7 = require("eslint-define-config");
|
|
581
|
+
var imports = (0, import_eslint_define_config7.defineFlatConfig)([
|
|
645
582
|
{
|
|
646
583
|
plugins: {
|
|
647
584
|
import: import_eslint_plugin_i.default
|
|
@@ -683,8 +620,8 @@ var imports = (0, import_eslint_define_config9.defineFlatConfig)([
|
|
|
683
620
|
]);
|
|
684
621
|
|
|
685
622
|
// src/configs/unocss.ts
|
|
686
|
-
var
|
|
687
|
-
var unocss = (0,
|
|
623
|
+
var import_eslint_define_config8 = require("eslint-define-config");
|
|
624
|
+
var unocss = (0, import_eslint_define_config8.defineFlatConfig)([
|
|
688
625
|
{
|
|
689
626
|
plugins: {
|
|
690
627
|
"@unocss": import_eslint_plugin.default
|
|
@@ -696,8 +633,8 @@ var unocss = (0, import_eslint_define_config10.defineFlatConfig)([
|
|
|
696
633
|
]);
|
|
697
634
|
|
|
698
635
|
// src/configs/unicorn.ts
|
|
699
|
-
var
|
|
700
|
-
var unicorn = (0,
|
|
636
|
+
var import_eslint_define_config9 = require("eslint-define-config");
|
|
637
|
+
var unicorn = (0, import_eslint_define_config9.defineFlatConfig)([
|
|
701
638
|
{
|
|
702
639
|
plugins: {
|
|
703
640
|
unicorn: import_eslint_plugin_unicorn.default
|
|
@@ -773,8 +710,8 @@ var unicorn = (0, import_eslint_define_config11.defineFlatConfig)([
|
|
|
773
710
|
|
|
774
711
|
// src/configs/prettier.ts
|
|
775
712
|
var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
|
|
776
|
-
var
|
|
777
|
-
var prettier = (0,
|
|
713
|
+
var import_eslint_define_config10 = require("eslint-define-config");
|
|
714
|
+
var prettier = (0, import_eslint_define_config10.defineFlatConfig)([
|
|
778
715
|
{
|
|
779
716
|
plugins: {
|
|
780
717
|
prettier: import_eslint_plugin_prettier.default
|
|
@@ -788,8 +725,8 @@ var prettier = (0, import_eslint_define_config12.defineFlatConfig)([
|
|
|
788
725
|
]);
|
|
789
726
|
|
|
790
727
|
// src/configs/markdown.ts
|
|
791
|
-
var
|
|
792
|
-
var markdown = (0,
|
|
728
|
+
var import_eslint_define_config11 = require("eslint-define-config");
|
|
729
|
+
var markdown = (0, import_eslint_define_config11.defineFlatConfig)([
|
|
793
730
|
{
|
|
794
731
|
files: [GLOB_MARKDOWN],
|
|
795
732
|
plugins: {
|
|
@@ -831,8 +768,8 @@ var markdown = (0, import_eslint_define_config13.defineFlatConfig)([
|
|
|
831
768
|
]);
|
|
832
769
|
|
|
833
770
|
// src/configs/comments.ts
|
|
834
|
-
var
|
|
835
|
-
var comments = (0,
|
|
771
|
+
var import_eslint_define_config12 = require("eslint-define-config");
|
|
772
|
+
var comments = (0, import_eslint_define_config12.defineFlatConfig)([
|
|
836
773
|
{
|
|
837
774
|
plugins: {
|
|
838
775
|
"eslint-comments": import_eslint_plugin_eslint_comments.default
|
|
@@ -847,8 +784,8 @@ var comments = (0, import_eslint_define_config14.defineFlatConfig)([
|
|
|
847
784
|
// src/configs/javascript.ts
|
|
848
785
|
var import_globals = __toESM(require("globals"), 1);
|
|
849
786
|
var import_js = __toESM(require("@eslint/js"), 1);
|
|
850
|
-
var
|
|
851
|
-
var javascript = (0,
|
|
787
|
+
var import_eslint_define_config13 = require("eslint-define-config");
|
|
788
|
+
var javascript = (0, import_eslint_define_config13.defineFlatConfig)([
|
|
852
789
|
import_js.default.configs.recommended,
|
|
853
790
|
{
|
|
854
791
|
languageOptions: {
|
|
@@ -1210,7 +1147,7 @@ var javascript = (0, import_eslint_define_config15.defineFlatConfig)([
|
|
|
1210
1147
|
}
|
|
1211
1148
|
}
|
|
1212
1149
|
]);
|
|
1213
|
-
var jsx = (0,
|
|
1150
|
+
var jsx = (0, import_eslint_define_config13.defineFlatConfig)([
|
|
1214
1151
|
{
|
|
1215
1152
|
files: ["**/*.jsx"],
|
|
1216
1153
|
languageOptions: {
|
|
@@ -1224,15 +1161,15 @@ var jsx = (0, import_eslint_define_config15.defineFlatConfig)([
|
|
|
1224
1161
|
]);
|
|
1225
1162
|
|
|
1226
1163
|
// src/configs/ignores.ts
|
|
1227
|
-
var
|
|
1228
|
-
var ignores = (0,
|
|
1164
|
+
var import_eslint_define_config14 = require("eslint-define-config");
|
|
1165
|
+
var ignores = (0, import_eslint_define_config14.defineFlatConfig)([
|
|
1229
1166
|
{
|
|
1230
1167
|
ignores: GLOB_EXCLUDE
|
|
1231
1168
|
}
|
|
1232
1169
|
]);
|
|
1233
1170
|
|
|
1234
1171
|
// src/presets.ts
|
|
1235
|
-
var basic = (0,
|
|
1172
|
+
var basic = (0, import_eslint_define_config15.defineFlatConfig)([
|
|
1236
1173
|
...ignores,
|
|
1237
1174
|
...javascript,
|
|
1238
1175
|
...jsx,
|
|
@@ -1242,7 +1179,7 @@ var basic = (0, import_eslint_define_config17.defineFlatConfig)([
|
|
|
1242
1179
|
...unicorn,
|
|
1243
1180
|
...comments
|
|
1244
1181
|
]);
|
|
1245
|
-
var common = (0,
|
|
1182
|
+
var common = (0, import_eslint_define_config15.defineFlatConfig)([
|
|
1246
1183
|
...basic,
|
|
1247
1184
|
...yml,
|
|
1248
1185
|
...jsonc,
|
|
@@ -1251,23 +1188,12 @@ var common = (0, import_eslint_define_config17.defineFlatConfig)([
|
|
|
1251
1188
|
...prettier,
|
|
1252
1189
|
...markdown
|
|
1253
1190
|
]);
|
|
1254
|
-
var all = (0,
|
|
1255
|
-
function ntnyq(config = [], {
|
|
1256
|
-
|
|
1257
|
-
react: enableReact = false,
|
|
1258
|
-
astro: enableAstro = false,
|
|
1259
|
-
unocss: enableUnoCSS = false
|
|
1260
|
-
} = {}) {
|
|
1261
|
-
const configs = (0, import_eslint_define_config17.defineFlatConfig)([...common]);
|
|
1191
|
+
var all = (0, import_eslint_define_config15.defineFlatConfig)([...common, ...vue, ...unocss]);
|
|
1192
|
+
function ntnyq(config = [], { vue: enableVue = false, unocss: enableUnoCSS = false } = {}) {
|
|
1193
|
+
const configs = (0, import_eslint_define_config15.defineFlatConfig)([...common]);
|
|
1262
1194
|
if (enableVue) {
|
|
1263
1195
|
configs.push(...vue);
|
|
1264
1196
|
}
|
|
1265
|
-
if (enableReact) {
|
|
1266
|
-
configs.push(...react);
|
|
1267
|
-
}
|
|
1268
|
-
if (enableAstro) {
|
|
1269
|
-
configs.push(...astro);
|
|
1270
|
-
}
|
|
1271
1197
|
if (enableUnoCSS) {
|
|
1272
1198
|
configs.push(...unocss);
|
|
1273
1199
|
}
|
|
@@ -1279,7 +1205,6 @@ function ntnyq(config = [], {
|
|
|
1279
1205
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1280
1206
|
0 && (module.exports = {
|
|
1281
1207
|
GLOB_ALL_SRC,
|
|
1282
|
-
GLOB_ASTRO,
|
|
1283
1208
|
GLOB_CSS,
|
|
1284
1209
|
GLOB_DIST,
|
|
1285
1210
|
GLOB_EXCLUDE,
|
|
@@ -1302,7 +1227,6 @@ function ntnyq(config = [], {
|
|
|
1302
1227
|
GLOB_VUE,
|
|
1303
1228
|
GLOB_YAML,
|
|
1304
1229
|
all,
|
|
1305
|
-
astro,
|
|
1306
1230
|
basic,
|
|
1307
1231
|
comments,
|
|
1308
1232
|
common,
|
|
@@ -1315,27 +1239,22 @@ function ntnyq(config = [], {
|
|
|
1315
1239
|
markdown,
|
|
1316
1240
|
node,
|
|
1317
1241
|
ntnyq,
|
|
1318
|
-
parserAstro,
|
|
1319
1242
|
parserJsonc,
|
|
1320
1243
|
parserTs,
|
|
1321
1244
|
parserVue,
|
|
1322
1245
|
parserYaml,
|
|
1323
|
-
pluginAstro,
|
|
1324
1246
|
pluginComments,
|
|
1325
1247
|
pluginImport,
|
|
1326
1248
|
pluginJsonc,
|
|
1327
1249
|
pluginMarkdown,
|
|
1328
1250
|
pluginNode,
|
|
1329
1251
|
pluginPrettier,
|
|
1330
|
-
pluginReact,
|
|
1331
|
-
pluginReactHooks,
|
|
1332
1252
|
pluginTs,
|
|
1333
1253
|
pluginUnicorn,
|
|
1334
1254
|
pluginUnoCSS,
|
|
1335
1255
|
pluginVue,
|
|
1336
1256
|
pluginYaml,
|
|
1337
1257
|
prettier,
|
|
1338
|
-
react,
|
|
1339
1258
|
sortPackageJson,
|
|
1340
1259
|
sortTsConfig,
|
|
1341
1260
|
typescript,
|
package/dist/index.d.cts
CHANGED
|
@@ -2,24 +2,19 @@ import * as eslint_define_config from 'eslint-define-config';
|
|
|
2
2
|
import { FlatESLintConfig } from 'eslint-define-config';
|
|
3
3
|
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
4
4
|
export { eslintPluginYml as pluginYaml };
|
|
5
|
-
import * as eslintPluginAstro from 'eslint-plugin-astro';
|
|
6
|
-
export { eslintPluginAstro as pluginAstro };
|
|
7
5
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
8
6
|
export { default as pluginImport } from 'eslint-plugin-i';
|
|
9
7
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
10
8
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
11
|
-
export { default as pluginReact } from 'eslint-plugin-react';
|
|
12
9
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
13
10
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
14
11
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
15
12
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
16
|
-
export { default as pluginReactHooks } from 'eslint-plugin-react-hooks';
|
|
17
13
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
18
14
|
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
19
15
|
export { default as parserYaml } from 'yaml-eslint-parser';
|
|
20
16
|
export { default as parserVue } from 'vue-eslint-parser';
|
|
21
17
|
export { default as parserJsonc } from 'jsonc-eslint-parser';
|
|
22
|
-
export { default as parserAstro } from 'astro-eslint-parser';
|
|
23
18
|
import * as parser from '@typescript-eslint/parser';
|
|
24
19
|
export { parser as parserTs };
|
|
25
20
|
|
|
@@ -40,7 +35,6 @@ declare const GLOB_JSON = "**/*.json";
|
|
|
40
35
|
declare const GLOB_JSON5 = "**/*.json5";
|
|
41
36
|
declare const GLOB_JSONC = "**/*.jsonc";
|
|
42
37
|
declare const GLOB_VUE = "**/*.vue";
|
|
43
|
-
declare const GLOB_ASTRO = "**/*.astro";
|
|
44
38
|
declare const GLOB_MARKDOWN = "**/*.md";
|
|
45
39
|
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
46
40
|
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
@@ -66,10 +60,8 @@ declare const all: FlatESLintConfig[];
|
|
|
66
60
|
/**
|
|
67
61
|
* custom framework support
|
|
68
62
|
*/
|
|
69
|
-
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue,
|
|
63
|
+
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, unocss: enableUnoCSS }?: {
|
|
70
64
|
vue?: boolean | undefined;
|
|
71
|
-
react?: boolean | undefined;
|
|
72
|
-
astro?: boolean | undefined;
|
|
73
65
|
unocss?: boolean | undefined;
|
|
74
66
|
}): FlatESLintConfig[];
|
|
75
67
|
|
|
@@ -83,10 +75,6 @@ declare const node: eslint_define_config.FlatESLintConfig[];
|
|
|
83
75
|
declare const sortPackageJson: eslint_define_config.FlatESLintConfig[];
|
|
84
76
|
declare const sortTsConfig: eslint_define_config.FlatESLintConfig[];
|
|
85
77
|
|
|
86
|
-
declare const react: eslint_define_config.FlatESLintConfig[];
|
|
87
|
-
|
|
88
|
-
declare const astro: eslint_define_config.FlatESLintConfig[];
|
|
89
|
-
|
|
90
78
|
declare const jsonc: eslint_define_config.FlatESLintConfig[];
|
|
91
79
|
|
|
92
80
|
declare const imports: eslint_define_config.FlatESLintConfig[];
|
|
@@ -111,4 +99,4 @@ declare const typescript: eslint_define_config.FlatESLintConfig[];
|
|
|
111
99
|
*/
|
|
112
100
|
declare const ignores: eslint_define_config.FlatESLintConfig[];
|
|
113
101
|
|
|
114
|
-
export { GLOB_ALL_SRC,
|
|
102
|
+
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, common, getVueVersion, ignores, imports, javascript, jsonc, jsx, markdown, node, ntnyq, prettier, sortPackageJson, sortTsConfig, typescript, unicorn, unocss, vue, yml };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,24 +2,19 @@ import * as eslint_define_config from 'eslint-define-config';
|
|
|
2
2
|
import { FlatESLintConfig } from 'eslint-define-config';
|
|
3
3
|
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
4
4
|
export { eslintPluginYml as pluginYaml };
|
|
5
|
-
import * as eslintPluginAstro from 'eslint-plugin-astro';
|
|
6
|
-
export { eslintPluginAstro as pluginAstro };
|
|
7
5
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
8
6
|
export { default as pluginImport } from 'eslint-plugin-i';
|
|
9
7
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
10
8
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
11
|
-
export { default as pluginReact } from 'eslint-plugin-react';
|
|
12
9
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
13
10
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
14
11
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
15
12
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
16
|
-
export { default as pluginReactHooks } from 'eslint-plugin-react-hooks';
|
|
17
13
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
18
14
|
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
19
15
|
export { default as parserYaml } from 'yaml-eslint-parser';
|
|
20
16
|
export { default as parserVue } from 'vue-eslint-parser';
|
|
21
17
|
export { default as parserJsonc } from 'jsonc-eslint-parser';
|
|
22
|
-
export { default as parserAstro } from 'astro-eslint-parser';
|
|
23
18
|
import * as parser from '@typescript-eslint/parser';
|
|
24
19
|
export { parser as parserTs };
|
|
25
20
|
|
|
@@ -40,7 +35,6 @@ declare const GLOB_JSON = "**/*.json";
|
|
|
40
35
|
declare const GLOB_JSON5 = "**/*.json5";
|
|
41
36
|
declare const GLOB_JSONC = "**/*.jsonc";
|
|
42
37
|
declare const GLOB_VUE = "**/*.vue";
|
|
43
|
-
declare const GLOB_ASTRO = "**/*.astro";
|
|
44
38
|
declare const GLOB_MARKDOWN = "**/*.md";
|
|
45
39
|
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
46
40
|
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
@@ -66,10 +60,8 @@ declare const all: FlatESLintConfig[];
|
|
|
66
60
|
/**
|
|
67
61
|
* custom framework support
|
|
68
62
|
*/
|
|
69
|
-
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue,
|
|
63
|
+
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, unocss: enableUnoCSS }?: {
|
|
70
64
|
vue?: boolean | undefined;
|
|
71
|
-
react?: boolean | undefined;
|
|
72
|
-
astro?: boolean | undefined;
|
|
73
65
|
unocss?: boolean | undefined;
|
|
74
66
|
}): FlatESLintConfig[];
|
|
75
67
|
|
|
@@ -83,10 +75,6 @@ declare const node: eslint_define_config.FlatESLintConfig[];
|
|
|
83
75
|
declare const sortPackageJson: eslint_define_config.FlatESLintConfig[];
|
|
84
76
|
declare const sortTsConfig: eslint_define_config.FlatESLintConfig[];
|
|
85
77
|
|
|
86
|
-
declare const react: eslint_define_config.FlatESLintConfig[];
|
|
87
|
-
|
|
88
|
-
declare const astro: eslint_define_config.FlatESLintConfig[];
|
|
89
|
-
|
|
90
78
|
declare const jsonc: eslint_define_config.FlatESLintConfig[];
|
|
91
79
|
|
|
92
80
|
declare const imports: eslint_define_config.FlatESLintConfig[];
|
|
@@ -111,4 +99,4 @@ declare const typescript: eslint_define_config.FlatESLintConfig[];
|
|
|
111
99
|
*/
|
|
112
100
|
declare const ignores: eslint_define_config.FlatESLintConfig[];
|
|
113
101
|
|
|
114
|
-
export { GLOB_ALL_SRC,
|
|
102
|
+
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, common, getVueVersion, ignores, imports, javascript, jsonc, jsx, markdown, node, ntnyq, prettier, sortPackageJson, sortTsConfig, typescript, unicorn, unocss, vue, yml };
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,6 @@ var GLOB_JSON = "**/*.json";
|
|
|
13
13
|
var GLOB_JSON5 = "**/*.json5";
|
|
14
14
|
var GLOB_JSONC = "**/*.jsonc";
|
|
15
15
|
var GLOB_VUE = "**/*.vue";
|
|
16
|
-
var GLOB_ASTRO = "**/*.astro";
|
|
17
16
|
var GLOB_MARKDOWN = "**/*.md";
|
|
18
17
|
var GLOB_YAML = "**/*.y?(a)ml";
|
|
19
18
|
var GLOB_HTML = "**/*.htm?(l)";
|
|
@@ -59,7 +58,7 @@ var GLOB_EXCLUDE = [
|
|
|
59
58
|
];
|
|
60
59
|
|
|
61
60
|
// src/presets.ts
|
|
62
|
-
import { defineFlatConfig as
|
|
61
|
+
import { defineFlatConfig as defineFlatConfig15 } from "eslint-define-config";
|
|
63
62
|
|
|
64
63
|
// src/configs/vue.ts
|
|
65
64
|
import process from "node:process";
|
|
@@ -68,23 +67,19 @@ import { defineFlatConfig as defineFlatConfig2 } from "eslint-define-config";
|
|
|
68
67
|
|
|
69
68
|
// src/plugins.ts
|
|
70
69
|
import * as pluginYaml from "eslint-plugin-yml";
|
|
71
|
-
import * as pluginAstro from "eslint-plugin-astro";
|
|
72
70
|
import { default as default2 } from "eslint-plugin-n";
|
|
73
71
|
import { default as default3 } from "eslint-plugin-i";
|
|
74
72
|
import { default as default4 } from "eslint-plugin-vue";
|
|
75
73
|
import { default as default5 } from "eslint-plugin-jsonc";
|
|
76
|
-
import { default as default6 } from "eslint-plugin
|
|
77
|
-
import { default as default7 } from "
|
|
78
|
-
import { default as default8 } from "eslint-plugin-
|
|
79
|
-
import { default as default9 } from "eslint-plugin-
|
|
80
|
-
import { default as default10 } from "eslint-plugin-
|
|
81
|
-
import { default as default11 } from "eslint-plugin
|
|
82
|
-
import { default as default12 } from "
|
|
83
|
-
import { default as default13 } from "
|
|
84
|
-
import { default as default14 } from "
|
|
85
|
-
import { default as default15 } from "vue-eslint-parser";
|
|
86
|
-
import { default as default16 } from "jsonc-eslint-parser";
|
|
87
|
-
import { default as default17 } from "astro-eslint-parser";
|
|
74
|
+
import { default as default6 } from "@unocss/eslint-plugin";
|
|
75
|
+
import { default as default7 } from "eslint-plugin-unicorn";
|
|
76
|
+
import { default as default8 } from "eslint-plugin-prettier";
|
|
77
|
+
import { default as default9 } from "eslint-plugin-markdown";
|
|
78
|
+
import { default as default10 } from "eslint-plugin-eslint-comments";
|
|
79
|
+
import { default as default11 } from "@typescript-eslint/eslint-plugin";
|
|
80
|
+
import { default as default12 } from "yaml-eslint-parser";
|
|
81
|
+
import { default as default13 } from "vue-eslint-parser";
|
|
82
|
+
import { default as default14 } from "jsonc-eslint-parser";
|
|
88
83
|
import * as parserTs from "@typescript-eslint/parser";
|
|
89
84
|
|
|
90
85
|
// src/configs/typescript.ts
|
|
@@ -99,11 +94,11 @@ var typescript = defineFlatConfig([
|
|
|
99
94
|
}
|
|
100
95
|
},
|
|
101
96
|
plugins: {
|
|
102
|
-
"@typescript-eslint":
|
|
97
|
+
"@typescript-eslint": default11
|
|
103
98
|
},
|
|
104
99
|
rules: {
|
|
105
|
-
...
|
|
106
|
-
...
|
|
100
|
+
...default11.configs.recommended.rules,
|
|
101
|
+
...default11.configs.stylistic.rules,
|
|
107
102
|
"@typescript-eslint/no-unused-vars": "error",
|
|
108
103
|
"@typescript-eslint/no-redeclare": "error",
|
|
109
104
|
"@typescript-eslint/consistent-type-imports": [
|
|
@@ -183,10 +178,10 @@ var vue = defineFlatConfig2([
|
|
|
183
178
|
files: [GLOB_VUE],
|
|
184
179
|
plugins: {
|
|
185
180
|
vue: default4,
|
|
186
|
-
"@typescript-eslint":
|
|
181
|
+
"@typescript-eslint": default11
|
|
187
182
|
},
|
|
188
183
|
languageOptions: {
|
|
189
|
-
parser:
|
|
184
|
+
parser: default13,
|
|
190
185
|
parserOptions: {
|
|
191
186
|
parser: "@typescript-eslint/parser",
|
|
192
187
|
sourceType: "module",
|
|
@@ -215,7 +210,7 @@ var yml = defineFlatConfig3([
|
|
|
215
210
|
{
|
|
216
211
|
files: [GLOB_YAML],
|
|
217
212
|
languageOptions: {
|
|
218
|
-
parser:
|
|
213
|
+
parser: default12
|
|
219
214
|
},
|
|
220
215
|
plugins: {
|
|
221
216
|
yml: pluginYaml
|
|
@@ -445,67 +440,16 @@ var sortTsConfig = defineFlatConfig5([
|
|
|
445
440
|
}
|
|
446
441
|
]);
|
|
447
442
|
|
|
448
|
-
// src/configs/react.ts
|
|
449
|
-
import { defineFlatConfig as defineFlatConfig6 } from "eslint-define-config";
|
|
450
|
-
var react = defineFlatConfig6([
|
|
451
|
-
{
|
|
452
|
-
files: [GLOB_JSX, GLOB_TSX],
|
|
453
|
-
plugins: {
|
|
454
|
-
react: default6,
|
|
455
|
-
"react-hooks": default11
|
|
456
|
-
},
|
|
457
|
-
settings: {
|
|
458
|
-
react: {
|
|
459
|
-
version: "18.0"
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
languageOptions: {
|
|
463
|
-
parserOptions: {
|
|
464
|
-
ecmaFeatures: {
|
|
465
|
-
jsx: true
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
rules: {
|
|
470
|
-
...default6.configs.recommended.rules,
|
|
471
|
-
...default11.configs.recommended.rules,
|
|
472
|
-
"jsx-quotes": ["error", "prefer-double"],
|
|
473
|
-
"react/react-in-jsx-scope": "off"
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
]);
|
|
477
|
-
|
|
478
|
-
// src/configs/astro.ts
|
|
479
|
-
import { defineFlatConfig as defineFlatConfig7 } from "eslint-define-config";
|
|
480
|
-
var astro = defineFlatConfig7([
|
|
481
|
-
{
|
|
482
|
-
files: [GLOB_ASTRO],
|
|
483
|
-
plugins: {
|
|
484
|
-
astro: pluginAstro
|
|
485
|
-
},
|
|
486
|
-
languageOptions: {
|
|
487
|
-
parser: default17,
|
|
488
|
-
parserOptions: {
|
|
489
|
-
parser: "@typescript-eslint/parser",
|
|
490
|
-
extraFileExtensions: [".astro"]
|
|
491
|
-
}
|
|
492
|
-
},
|
|
493
|
-
rules: {
|
|
494
|
-
...pluginAstro.configs.recommended.rules
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
]);
|
|
498
|
-
|
|
499
443
|
// src/configs/jsonc.ts
|
|
500
|
-
import { defineFlatConfig as
|
|
501
|
-
var jsonc =
|
|
444
|
+
import { defineFlatConfig as defineFlatConfig6 } from "eslint-define-config";
|
|
445
|
+
var jsonc = defineFlatConfig6([
|
|
502
446
|
{
|
|
503
447
|
files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
|
|
504
448
|
plugins: {
|
|
505
449
|
jsonc: default5
|
|
506
450
|
},
|
|
507
451
|
languageOptions: {
|
|
508
|
-
parser:
|
|
452
|
+
parser: default14
|
|
509
453
|
},
|
|
510
454
|
rules: {
|
|
511
455
|
...default5.configs["recommended-with-jsonc"].rules,
|
|
@@ -540,8 +484,8 @@ var jsonc = defineFlatConfig8([
|
|
|
540
484
|
]);
|
|
541
485
|
|
|
542
486
|
// src/configs/imports.ts
|
|
543
|
-
import { defineFlatConfig as
|
|
544
|
-
var imports =
|
|
487
|
+
import { defineFlatConfig as defineFlatConfig7 } from "eslint-define-config";
|
|
488
|
+
var imports = defineFlatConfig7([
|
|
545
489
|
{
|
|
546
490
|
plugins: {
|
|
547
491
|
import: default3
|
|
@@ -583,24 +527,24 @@ var imports = defineFlatConfig9([
|
|
|
583
527
|
]);
|
|
584
528
|
|
|
585
529
|
// src/configs/unocss.ts
|
|
586
|
-
import { defineFlatConfig as
|
|
587
|
-
var unocss =
|
|
530
|
+
import { defineFlatConfig as defineFlatConfig8 } from "eslint-define-config";
|
|
531
|
+
var unocss = defineFlatConfig8([
|
|
588
532
|
{
|
|
589
533
|
plugins: {
|
|
590
|
-
"@unocss":
|
|
534
|
+
"@unocss": default6
|
|
591
535
|
},
|
|
592
536
|
rules: {
|
|
593
|
-
...
|
|
537
|
+
...default6.configs.recommended.rules
|
|
594
538
|
}
|
|
595
539
|
}
|
|
596
540
|
]);
|
|
597
541
|
|
|
598
542
|
// src/configs/unicorn.ts
|
|
599
|
-
import { defineFlatConfig as
|
|
600
|
-
var unicorn =
|
|
543
|
+
import { defineFlatConfig as defineFlatConfig9 } from "eslint-define-config";
|
|
544
|
+
var unicorn = defineFlatConfig9([
|
|
601
545
|
{
|
|
602
546
|
plugins: {
|
|
603
|
-
unicorn:
|
|
547
|
+
unicorn: default7
|
|
604
548
|
},
|
|
605
549
|
rules: {
|
|
606
550
|
"unicorn/no-unsafe-regex": "off",
|
|
@@ -673,27 +617,27 @@ var unicorn = defineFlatConfig11([
|
|
|
673
617
|
|
|
674
618
|
// src/configs/prettier.ts
|
|
675
619
|
import prettierConfig from "eslint-config-prettier";
|
|
676
|
-
import { defineFlatConfig as
|
|
677
|
-
var prettier =
|
|
620
|
+
import { defineFlatConfig as defineFlatConfig10 } from "eslint-define-config";
|
|
621
|
+
var prettier = defineFlatConfig10([
|
|
678
622
|
{
|
|
679
623
|
plugins: {
|
|
680
|
-
prettier:
|
|
624
|
+
prettier: default8
|
|
681
625
|
},
|
|
682
626
|
rules: {
|
|
683
627
|
...prettierConfig.rules,
|
|
684
|
-
...
|
|
628
|
+
...default8.configs.recommended.rules,
|
|
685
629
|
"prettier/prettier": "warn"
|
|
686
630
|
}
|
|
687
631
|
}
|
|
688
632
|
]);
|
|
689
633
|
|
|
690
634
|
// src/configs/markdown.ts
|
|
691
|
-
import { defineFlatConfig as
|
|
692
|
-
var markdown =
|
|
635
|
+
import { defineFlatConfig as defineFlatConfig11 } from "eslint-define-config";
|
|
636
|
+
var markdown = defineFlatConfig11([
|
|
693
637
|
{
|
|
694
638
|
files: [GLOB_MARKDOWN],
|
|
695
639
|
plugins: {
|
|
696
|
-
markdown:
|
|
640
|
+
markdown: default9
|
|
697
641
|
},
|
|
698
642
|
processor: "markdown/markdown"
|
|
699
643
|
},
|
|
@@ -707,10 +651,10 @@ var markdown = defineFlatConfig13([
|
|
|
707
651
|
}
|
|
708
652
|
},
|
|
709
653
|
plugins: {
|
|
710
|
-
"@typescript-eslint":
|
|
654
|
+
"@typescript-eslint": default11
|
|
711
655
|
},
|
|
712
656
|
rules: {
|
|
713
|
-
...
|
|
657
|
+
...default9.configs.recommended.overrides[1].rules,
|
|
714
658
|
"no-undef": "off",
|
|
715
659
|
"no-alert": "off",
|
|
716
660
|
"no-console": "off",
|
|
@@ -731,14 +675,14 @@ var markdown = defineFlatConfig13([
|
|
|
731
675
|
]);
|
|
732
676
|
|
|
733
677
|
// src/configs/comments.ts
|
|
734
|
-
import { defineFlatConfig as
|
|
735
|
-
var comments =
|
|
678
|
+
import { defineFlatConfig as defineFlatConfig12 } from "eslint-define-config";
|
|
679
|
+
var comments = defineFlatConfig12([
|
|
736
680
|
{
|
|
737
681
|
plugins: {
|
|
738
|
-
"eslint-comments":
|
|
682
|
+
"eslint-comments": default10
|
|
739
683
|
},
|
|
740
684
|
rules: {
|
|
741
|
-
...
|
|
685
|
+
...default10.configs.recommended.rules,
|
|
742
686
|
"eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }]
|
|
743
687
|
}
|
|
744
688
|
}
|
|
@@ -747,8 +691,8 @@ var comments = defineFlatConfig14([
|
|
|
747
691
|
// src/configs/javascript.ts
|
|
748
692
|
import globals from "globals";
|
|
749
693
|
import jsConfig from "@eslint/js";
|
|
750
|
-
import { defineFlatConfig as
|
|
751
|
-
var javascript =
|
|
694
|
+
import { defineFlatConfig as defineFlatConfig13 } from "eslint-define-config";
|
|
695
|
+
var javascript = defineFlatConfig13([
|
|
752
696
|
jsConfig.configs.recommended,
|
|
753
697
|
{
|
|
754
698
|
languageOptions: {
|
|
@@ -1110,7 +1054,7 @@ var javascript = defineFlatConfig15([
|
|
|
1110
1054
|
}
|
|
1111
1055
|
}
|
|
1112
1056
|
]);
|
|
1113
|
-
var jsx =
|
|
1057
|
+
var jsx = defineFlatConfig13([
|
|
1114
1058
|
{
|
|
1115
1059
|
files: ["**/*.jsx"],
|
|
1116
1060
|
languageOptions: {
|
|
@@ -1124,15 +1068,15 @@ var jsx = defineFlatConfig15([
|
|
|
1124
1068
|
]);
|
|
1125
1069
|
|
|
1126
1070
|
// src/configs/ignores.ts
|
|
1127
|
-
import { defineFlatConfig as
|
|
1128
|
-
var ignores =
|
|
1071
|
+
import { defineFlatConfig as defineFlatConfig14 } from "eslint-define-config";
|
|
1072
|
+
var ignores = defineFlatConfig14([
|
|
1129
1073
|
{
|
|
1130
1074
|
ignores: GLOB_EXCLUDE
|
|
1131
1075
|
}
|
|
1132
1076
|
]);
|
|
1133
1077
|
|
|
1134
1078
|
// src/presets.ts
|
|
1135
|
-
var basic =
|
|
1079
|
+
var basic = defineFlatConfig15([
|
|
1136
1080
|
...ignores,
|
|
1137
1081
|
...javascript,
|
|
1138
1082
|
...jsx,
|
|
@@ -1142,7 +1086,7 @@ var basic = defineFlatConfig17([
|
|
|
1142
1086
|
...unicorn,
|
|
1143
1087
|
...comments
|
|
1144
1088
|
]);
|
|
1145
|
-
var common =
|
|
1089
|
+
var common = defineFlatConfig15([
|
|
1146
1090
|
...basic,
|
|
1147
1091
|
...yml,
|
|
1148
1092
|
...jsonc,
|
|
@@ -1151,23 +1095,12 @@ var common = defineFlatConfig17([
|
|
|
1151
1095
|
...prettier,
|
|
1152
1096
|
...markdown
|
|
1153
1097
|
]);
|
|
1154
|
-
var all =
|
|
1155
|
-
function ntnyq(config = [], {
|
|
1156
|
-
|
|
1157
|
-
react: enableReact = false,
|
|
1158
|
-
astro: enableAstro = false,
|
|
1159
|
-
unocss: enableUnoCSS = false
|
|
1160
|
-
} = {}) {
|
|
1161
|
-
const configs = defineFlatConfig17([...common]);
|
|
1098
|
+
var all = defineFlatConfig15([...common, ...vue, ...unocss]);
|
|
1099
|
+
function ntnyq(config = [], { vue: enableVue = false, unocss: enableUnoCSS = false } = {}) {
|
|
1100
|
+
const configs = defineFlatConfig15([...common]);
|
|
1162
1101
|
if (enableVue) {
|
|
1163
1102
|
configs.push(...vue);
|
|
1164
1103
|
}
|
|
1165
|
-
if (enableReact) {
|
|
1166
|
-
configs.push(...react);
|
|
1167
|
-
}
|
|
1168
|
-
if (enableAstro) {
|
|
1169
|
-
configs.push(...astro);
|
|
1170
|
-
}
|
|
1171
1104
|
if (enableUnoCSS) {
|
|
1172
1105
|
configs.push(...unocss);
|
|
1173
1106
|
}
|
|
@@ -1178,7 +1111,6 @@ function ntnyq(config = [], {
|
|
|
1178
1111
|
}
|
|
1179
1112
|
export {
|
|
1180
1113
|
GLOB_ALL_SRC,
|
|
1181
|
-
GLOB_ASTRO,
|
|
1182
1114
|
GLOB_CSS,
|
|
1183
1115
|
GLOB_DIST,
|
|
1184
1116
|
GLOB_EXCLUDE,
|
|
@@ -1201,7 +1133,6 @@ export {
|
|
|
1201
1133
|
GLOB_VUE,
|
|
1202
1134
|
GLOB_YAML,
|
|
1203
1135
|
all,
|
|
1204
|
-
astro,
|
|
1205
1136
|
basic,
|
|
1206
1137
|
comments,
|
|
1207
1138
|
common,
|
|
@@ -1214,27 +1145,22 @@ export {
|
|
|
1214
1145
|
markdown,
|
|
1215
1146
|
node,
|
|
1216
1147
|
ntnyq,
|
|
1217
|
-
|
|
1218
|
-
default16 as parserJsonc,
|
|
1148
|
+
default14 as parserJsonc,
|
|
1219
1149
|
parserTs,
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
default12 as pluginComments,
|
|
1150
|
+
default13 as parserVue,
|
|
1151
|
+
default12 as parserYaml,
|
|
1152
|
+
default10 as pluginComments,
|
|
1224
1153
|
default3 as pluginImport,
|
|
1225
1154
|
default5 as pluginJsonc,
|
|
1226
|
-
|
|
1155
|
+
default9 as pluginMarkdown,
|
|
1227
1156
|
default2 as pluginNode,
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
default8 as pluginUnicorn,
|
|
1233
|
-
default7 as pluginUnoCSS,
|
|
1157
|
+
default8 as pluginPrettier,
|
|
1158
|
+
default11 as pluginTs,
|
|
1159
|
+
default7 as pluginUnicorn,
|
|
1160
|
+
default6 as pluginUnoCSS,
|
|
1234
1161
|
default4 as pluginVue,
|
|
1235
1162
|
pluginYaml,
|
|
1236
1163
|
prettier,
|
|
1237
|
-
react,
|
|
1238
1164
|
sortPackageJson,
|
|
1239
1165
|
sortTsConfig,
|
|
1240
1166
|
typescript,
|
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.24",
|
|
5
5
|
"description": "ESLint flat config of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"build": "tsup",
|
|
39
39
|
"clean": "rimraf dist",
|
|
40
40
|
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
|
|
41
|
-
"prepare": "husky
|
|
41
|
+
"prepare": "husky",
|
|
42
42
|
"release": "run-s release:check release:version",
|
|
43
43
|
"release:check": "run-s clean build lint typecheck",
|
|
44
44
|
"release:version": "bumpp && npm publish --tag next",
|
|
@@ -51,46 +51,42 @@
|
|
|
51
51
|
"eslint": "^8.50.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@eslint/js": "^8.
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
56
|
-
"@typescript-eslint/parser": "^
|
|
57
|
-
"@unocss/eslint-plugin": "^0.
|
|
58
|
-
"
|
|
59
|
-
"eslint-config
|
|
60
|
-
"eslint-define-config": "^2.0.0",
|
|
61
|
-
"eslint-plugin-astro": "^0.29.1",
|
|
54
|
+
"@eslint/js": "^8.56.0",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
56
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
57
|
+
"@unocss/eslint-plugin": "^0.58.5",
|
|
58
|
+
"eslint-config-prettier": "^9.1.0",
|
|
59
|
+
"eslint-define-config": "^2.1.0",
|
|
62
60
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
63
|
-
"eslint-plugin-i": "^2.29.
|
|
64
|
-
"eslint-plugin-jsonc": "^2.
|
|
61
|
+
"eslint-plugin-i": "^2.29.1",
|
|
62
|
+
"eslint-plugin-jsonc": "^2.13.0",
|
|
65
63
|
"eslint-plugin-markdown": "^3.0.1",
|
|
66
|
-
"eslint-plugin-n": "^16.
|
|
67
|
-
"eslint-plugin-prettier": "^5.
|
|
68
|
-
"eslint-plugin-
|
|
69
|
-
"eslint-plugin-
|
|
70
|
-
"eslint-plugin-
|
|
71
|
-
"
|
|
72
|
-
"eslint-plugin-yml": "^1.10.0",
|
|
73
|
-
"globals": "^13.23.0",
|
|
64
|
+
"eslint-plugin-n": "^16.6.2",
|
|
65
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
66
|
+
"eslint-plugin-unicorn": "^51.0.1",
|
|
67
|
+
"eslint-plugin-vue": "^9.21.1",
|
|
68
|
+
"eslint-plugin-yml": "^1.12.2",
|
|
69
|
+
"globals": "^14.0.0",
|
|
74
70
|
"jsonc-eslint-parser": "^2.4.0",
|
|
75
71
|
"local-pkg": "^0.5.0",
|
|
76
|
-
"prettier": "^3.
|
|
77
|
-
"vue-eslint-parser": "^9.
|
|
72
|
+
"prettier": "^3.2.5",
|
|
73
|
+
"vue-eslint-parser": "^9.4.2",
|
|
78
74
|
"yaml-eslint-parser": "^1.2.2"
|
|
79
75
|
},
|
|
80
76
|
"devDependencies": {
|
|
81
|
-
"@ntnyq/prettier-config": "^1.
|
|
82
|
-
"@types/node": "^20.
|
|
83
|
-
"bumpp": "^9.
|
|
84
|
-
"eslint": "^8.
|
|
85
|
-
"husky": "^
|
|
77
|
+
"@ntnyq/prettier-config": "^1.20.3",
|
|
78
|
+
"@types/node": "^20.11.19",
|
|
79
|
+
"bumpp": "^9.3.0",
|
|
80
|
+
"eslint": "^8.56.0",
|
|
81
|
+
"husky": "^9.0.11",
|
|
86
82
|
"nano-staged": "^0.8.0",
|
|
87
83
|
"npm-run-all": "^4.1.5",
|
|
88
84
|
"rimraf": "^5.0.5",
|
|
89
|
-
"tsup": "^8.0.
|
|
85
|
+
"tsup": "^8.0.2",
|
|
90
86
|
"typescript": "5.2.2"
|
|
91
87
|
},
|
|
92
88
|
"engines": {
|
|
93
|
-
"node": ">=18.
|
|
89
|
+
"node": ">=18.18"
|
|
94
90
|
},
|
|
95
91
|
"prettier": "@ntnyq/prettier-config",
|
|
96
92
|
"nano-staged": {
|