@ntnyq/eslint-config 2.0.0-beta.25 → 2.0.0-beta.27

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 CHANGED
@@ -57,33 +57,36 @@ __export(src_exports, {
57
57
  comments: () => comments,
58
58
  common: () => common,
59
59
  getVueVersion: () => getVueVersion,
60
+ hasTypeScript: () => hasTypeScript,
61
+ hasVue: () => hasVue,
60
62
  ignores: () => ignores,
61
63
  imports: () => imports,
64
+ interopDefault: () => interopDefault,
62
65
  javascript: () => javascript,
63
66
  jsonc: () => jsonc,
64
67
  jsx: () => jsx,
65
68
  markdown: () => markdown,
66
69
  node: () => node,
67
70
  ntnyq: () => ntnyq,
68
- parserJsonc: () => import_jsonc_eslint_parser.default,
69
- parserTs: () => parserTs,
70
- parserVue: () => import_vue_eslint_parser.default,
71
- parserYaml: () => import_yaml_eslint_parser.default,
71
+ parserJsonc: () => parserJsonc,
72
+ parserVue: () => parserVue,
73
+ parserYaml: () => parserYaml,
72
74
  pluginComments: () => import_eslint_plugin_eslint_comments.default,
73
- pluginImport: () => import_eslint_plugin_i.default,
74
- pluginJsonc: () => import_eslint_plugin_jsonc.default,
75
+ pluginImport: () => import_eslint_plugin_import_x.default,
76
+ pluginJsonc: () => pluginJsonc,
75
77
  pluginMarkdown: () => import_eslint_plugin_markdown.default,
76
78
  pluginNode: () => import_eslint_plugin_n.default,
77
79
  pluginPrettier: () => import_eslint_plugin_prettier.default,
78
- pluginTs: () => import_eslint_plugin2.default,
79
80
  pluginUnicorn: () => import_eslint_plugin_unicorn.default,
80
81
  pluginUnoCSS: () => import_eslint_plugin.default,
81
82
  pluginVue: () => import_eslint_plugin_vue.default,
82
- pluginYaml: () => pluginYaml,
83
+ pluginYaml: () => import_eslint_plugin_yml.default,
83
84
  prettier: () => prettier,
84
85
  sortPackageJson: () => sortPackageJson,
85
86
  sortTsConfig: () => sortTsConfig,
87
+ tseslint: () => import_typescript_eslint.default,
86
88
  typescript: () => typescript,
89
+ typescriptCore: () => typescriptCore,
87
90
  unicorn: () => unicorn,
88
91
  unocss: () => unocss,
89
92
  vue: () => vue,
@@ -91,7 +94,12 @@ __export(src_exports, {
91
94
  });
92
95
  module.exports = __toCommonJS(src_exports);
93
96
 
94
- // src/shared.ts
97
+ // src/env.ts
98
+ var import_local_pkg = require("local-pkg");
99
+ var hasTypeScript = (0, import_local_pkg.isPackageExists)("typescript");
100
+ var hasVue = (0, import_local_pkg.isPackageExists)("vue") || (0, import_local_pkg.isPackageExists)("nuxt") || (0, import_local_pkg.isPackageExists)("vitepress") || (0, import_local_pkg.isPackageExists)("@slidev/cli");
101
+
102
+ // src/globs.ts
95
103
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
96
104
  var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
97
105
  var GLOB_JS = "**/*.?([cm])js";
@@ -137,19 +145,30 @@ var GLOB_EXCLUDE = [
137
145
  "**/__snapshots__",
138
146
  "**/auto-import?(s).d.ts",
139
147
  "**/components.d.ts",
140
- "**/output",
141
148
  "**/coverage",
149
+ "**/fixtures",
150
+ "**/output",
151
+ "**/public",
152
+ "**/static",
142
153
  "**/temp",
143
154
  "**/cache",
144
- "**/fixtures",
145
155
  "**/.vitepress/cache",
156
+ "**/.eslintcache",
157
+ "**/.stylelintcache",
158
+ "**/.vite-inspect",
146
159
  "**/.nuxt",
147
160
  "**/.output",
161
+ "**/.tsup",
148
162
  "**/.nitro",
149
163
  "**/.vercel",
150
164
  "**/.changeset",
151
165
  "**/.npmrc",
152
- "**/.yarnrc"
166
+ "**/.yarnrc",
167
+ // Force lint
168
+ "!.github",
169
+ "!.vitepress",
170
+ "!.vuepress",
171
+ "!.vscode"
153
172
  ];
154
173
 
155
174
  // src/presets.ts
@@ -157,79 +176,79 @@ var import_eslint_define_config15 = require("eslint-define-config");
157
176
 
158
177
  // src/configs/vue.ts
159
178
  var import_node_process = __toESM(require("process"), 1);
160
- var import_local_pkg = require("local-pkg");
179
+ var import_local_pkg2 = require("local-pkg");
161
180
  var import_eslint_define_config2 = require("eslint-define-config");
162
181
 
163
182
  // src/plugins.ts
164
- var pluginYaml = __toESM(require("eslint-plugin-yml"), 1);
165
183
  var import_eslint_plugin_n = __toESM(require("eslint-plugin-n"), 1);
166
- var import_eslint_plugin_i = __toESM(require("eslint-plugin-i"), 1);
167
184
  var import_eslint_plugin_vue = __toESM(require("eslint-plugin-vue"), 1);
168
- var import_eslint_plugin_jsonc = __toESM(require("eslint-plugin-jsonc"), 1);
169
185
  var import_eslint_plugin = __toESM(require("@unocss/eslint-plugin"), 1);
170
186
  var import_eslint_plugin_unicorn = __toESM(require("eslint-plugin-unicorn"), 1);
171
187
  var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
172
188
  var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1);
173
189
  var import_eslint_plugin_eslint_comments = __toESM(require("eslint-plugin-eslint-comments"), 1);
174
- var import_eslint_plugin2 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
175
- var import_yaml_eslint_parser = __toESM(require("yaml-eslint-parser"), 1);
176
- var import_vue_eslint_parser = __toESM(require("vue-eslint-parser"), 1);
177
- var import_jsonc_eslint_parser = __toESM(require("jsonc-eslint-parser"), 1);
178
- var parserTs = __toESM(require("@typescript-eslint/parser"), 1);
190
+ var import_typescript_eslint = __toESM(require("typescript-eslint"), 1);
191
+ var import_eslint_plugin_yml = __toESM(require("eslint-plugin-yml"), 1);
192
+ var pluginJsonc = __toESM(require("eslint-plugin-jsonc"), 1);
193
+ var import_eslint_plugin_import_x = __toESM(require("eslint-plugin-import-x"), 1);
194
+ var parserYaml = __toESM(require("yaml-eslint-parser"), 1);
195
+ var parserVue = __toESM(require("vue-eslint-parser"), 1);
196
+ var parserJsonc = __toESM(require("jsonc-eslint-parser"), 1);
197
+ // @__NO_SIDE_EFFECTS__
198
+ function interopDefault(m) {
199
+ return m.default || m;
200
+ }
179
201
 
180
202
  // src/configs/typescript.ts
181
203
  var import_eslint_define_config = require("eslint-define-config");
182
- var typescript = (0, import_eslint_define_config.defineFlatConfig)([
183
- {
184
- files: [GLOB_TS, GLOB_TSX],
185
- languageOptions: {
186
- parser: parserTs,
187
- parserOptions: {
188
- sourceType: "module"
189
- }
190
- },
191
- plugins: {
192
- "@typescript-eslint": import_eslint_plugin2.default
193
- },
194
- rules: {
195
- ...import_eslint_plugin2.default.configs.recommended.rules,
196
- ...import_eslint_plugin2.default.configs.stylistic.rules,
197
- "@typescript-eslint/no-unused-vars": "error",
198
- "@typescript-eslint/no-redeclare": "error",
199
- "@typescript-eslint/consistent-type-imports": [
200
- "error",
201
- {
202
- prefer: "type-imports",
203
- fixStyle: "separate-type-imports",
204
- disallowTypeAnnotations: false
205
- }
206
- ],
207
- "@typescript-eslint/consistent-type-assertions": [
208
- "error",
209
- {
210
- assertionStyle: "as",
211
- objectLiteralTypeAssertions: "allow-as-parameter"
212
- }
213
- ],
214
- "@typescript-eslint/prefer-as-const": "warn",
215
- "@typescript-eslint/ban-types": "off",
216
- "@typescript-eslint/camelcase": "off",
217
- "@typescript-eslint/no-namespace": "off",
218
- "@typescript-eslint/ban-ts-ignore": "off",
219
- "@typescript-eslint/ban-ts-comment": "off",
220
- "@typescript-eslint/no-explicit-any": "off",
221
- "@typescript-eslint/no-empty-function": "off",
222
- "@typescript-eslint/naming-convention": "off",
223
- "@typescript-eslint/no-empty-interface": "off",
224
- "@typescript-eslint/no-non-null-assertion": "off",
225
- "@typescript-eslint/triple-slash-reference": "off",
226
- "@typescript-eslint/no-parameter-properties": "off",
227
- "@typescript-eslint/explicit-member-accessibility": "off",
228
- "@typescript-eslint/explicit-function-return-type": "off",
229
- "@typescript-eslint/explicit-module-boundary-types": "off",
230
- "@typescript-eslint/consistent-indexed-object-style": "off"
204
+ var typescriptCore = import_typescript_eslint.default.config({
205
+ extends: [...import_typescript_eslint.default.configs.recommended],
206
+ files: [GLOB_TS, GLOB_TSX],
207
+ languageOptions: {
208
+ parser: import_typescript_eslint.default.parser,
209
+ parserOptions: {
210
+ sourceType: "module"
231
211
  }
232
212
  },
213
+ rules: {
214
+ "@typescript-eslint/no-unused-vars": "error",
215
+ "@typescript-eslint/no-redeclare": "error",
216
+ "@typescript-eslint/consistent-type-imports": [
217
+ "error",
218
+ {
219
+ prefer: "type-imports",
220
+ fixStyle: "separate-type-imports",
221
+ disallowTypeAnnotations: false
222
+ }
223
+ ],
224
+ "@typescript-eslint/consistent-type-assertions": [
225
+ "error",
226
+ {
227
+ assertionStyle: "as",
228
+ objectLiteralTypeAssertions: "allow-as-parameter"
229
+ }
230
+ ],
231
+ "@typescript-eslint/prefer-as-const": "warn",
232
+ "@typescript-eslint/ban-types": "off",
233
+ "@typescript-eslint/camelcase": "off",
234
+ "@typescript-eslint/no-namespace": "off",
235
+ "@typescript-eslint/ban-ts-ignore": "off",
236
+ "@typescript-eslint/ban-ts-comment": "off",
237
+ "@typescript-eslint/no-explicit-any": "off",
238
+ "@typescript-eslint/no-empty-function": "off",
239
+ "@typescript-eslint/naming-convention": "off",
240
+ "@typescript-eslint/no-empty-interface": "off",
241
+ "@typescript-eslint/no-non-null-assertion": "off",
242
+ "@typescript-eslint/triple-slash-reference": "off",
243
+ "@typescript-eslint/no-parameter-properties": "off",
244
+ "@typescript-eslint/explicit-member-accessibility": "off",
245
+ "@typescript-eslint/explicit-function-return-type": "off",
246
+ "@typescript-eslint/explicit-module-boundary-types": "off",
247
+ "@typescript-eslint/consistent-indexed-object-style": "off"
248
+ }
249
+ });
250
+ var typescript = (0, import_eslint_define_config.defineFlatConfig)([
251
+ ...typescriptCore,
233
252
  {
234
253
  files: ["**/*.d.ts"],
235
254
  rules: {
@@ -245,7 +264,7 @@ var typescript = (0, import_eslint_define_config.defineFlatConfig)([
245
264
  }
246
265
  },
247
266
  {
248
- files: ["**/*.js", "**/*.cjs"],
267
+ files: [GLOB_JS, "**/*.cjs"],
249
268
  rules: {
250
269
  "@typescript-eslint/no-var-requires": "off"
251
270
  }
@@ -254,29 +273,38 @@ var typescript = (0, import_eslint_define_config.defineFlatConfig)([
254
273
 
255
274
  // src/configs/vue.ts
256
275
  function getVueVersion() {
257
- const pkg = (0, import_local_pkg.getPackageInfoSync)("vue", { paths: [import_node_process.default.cwd()] });
276
+ const pkg = (0, import_local_pkg2.getPackageInfoSync)("vue", { paths: [import_node_process.default.cwd()] });
258
277
  if (pkg && typeof pkg.version === "string" && !Number.isNaN(+pkg.version[0])) {
259
278
  return +pkg.version[0];
260
279
  }
261
280
  return 3;
262
281
  }
263
282
  var isVue3 = getVueVersion() === 3;
264
- var vueBaseRules = {};
265
283
  var vue2Rules = {
266
- ...vueBaseRules
284
+ ...import_eslint_plugin_vue.default.configs.base.rules,
285
+ ...import_eslint_plugin_vue.default.configs.essential.rules,
286
+ ...import_eslint_plugin_vue.default.configs["strongly-recommended"].rules,
287
+ ...import_eslint_plugin_vue.default.configs.recommended.rules
267
288
  };
268
289
  var vue3Rules = {
269
- ...vueBaseRules
290
+ ...import_eslint_plugin_vue.default.configs.base.rules,
291
+ ...import_eslint_plugin_vue.default.configs["vue3-essential"].rules,
292
+ ...import_eslint_plugin_vue.default.configs["vue3-strongly-recommended"].rules,
293
+ ...import_eslint_plugin_vue.default.configs["vue3-recommended"].rules
270
294
  };
271
295
  var vue = (0, import_eslint_define_config2.defineFlatConfig)([
296
+ ...import_typescript_eslint.default.config({
297
+ files: [GLOB_VUE],
298
+ extends: typescriptCore
299
+ }),
272
300
  {
273
301
  files: [GLOB_VUE],
274
302
  plugins: {
275
303
  vue: import_eslint_plugin_vue.default,
276
- "@typescript-eslint": import_eslint_plugin2.default
304
+ "@typescript-eslint": import_typescript_eslint.default.plugin
277
305
  },
278
306
  languageOptions: {
279
- parser: import_vue_eslint_parser.default,
307
+ parser: parserVue,
280
308
  parserOptions: {
281
309
  parser: "@typescript-eslint/parser",
282
310
  sourceType: "module",
@@ -288,14 +316,220 @@ var vue = (0, import_eslint_define_config2.defineFlatConfig)([
288
316
  },
289
317
  processor: import_eslint_plugin_vue.default.processors[".vue"],
290
318
  rules: {
291
- ...typescript[0].rules
319
+ ...isVue3 ? vue3Rules : vue2Rules,
320
+ // OFF
321
+ "vue/no-v-html": "off",
322
+ "vue/require-prop-types": "off",
323
+ "vue/require-default-prop": "off",
324
+ "vue/multi-word-component-names": "off",
325
+ "vue/no-setup-props-reactivity-loss": "off",
326
+ "vue/html-self-closing": [
327
+ "error",
328
+ {
329
+ html: {
330
+ void: "always",
331
+ normal: "always",
332
+ component: "always"
333
+ },
334
+ svg: "always",
335
+ math: "always"
336
+ }
337
+ ],
338
+ "vue/block-tag-newline": [
339
+ "error",
340
+ {
341
+ singleline: "always",
342
+ multiline: "always"
343
+ }
344
+ ],
345
+ "vue/component-name-in-template-casing": [
346
+ "error",
347
+ "PascalCase",
348
+ {
349
+ // Force auto-import components to be PascalCase
350
+ registeredComponentsOnly: false,
351
+ ignores: ["slot", "component"]
352
+ }
353
+ ],
354
+ "vue/component-options-name-casing": ["error", "PascalCase"],
355
+ "vue/custom-event-name-casing": ["error", "camelCase"],
356
+ "vue/define-macros-order": [
357
+ "error",
358
+ {
359
+ order: ["defineProps", "defineEmits", "defineOptions", "defineSlots"]
360
+ }
361
+ ],
362
+ "vue/html-comment-content-spacing": [
363
+ "error",
364
+ "always",
365
+ {
366
+ exceptions: ["-"]
367
+ }
368
+ ],
369
+ "vue/array-bracket-spacing": ["error", "never"],
370
+ "vue/arrow-spacing": ["error", { before: true, after: true }],
371
+ "vue/block-spacing": ["error", "always"],
372
+ "vue/brace-style": ["error", "stroustrup", { allowSingleLine: true }],
373
+ "vue/comma-dangle": ["error", "always-multiline"],
374
+ "vue/comma-spacing": ["error", { before: false, after: true }],
375
+ "vue/comma-style": ["error", "last"],
376
+ "vue/dot-location": ["error", "property"],
377
+ "vue/dot-notation": ["error", { allowKeywords: true }],
378
+ "vue/eqeqeq": ["error", "smart"],
379
+ "vue/key-spacing": ["error", { beforeColon: false, afterColon: true }],
380
+ "vue/keyword-spacing": ["error", { before: true, after: true }],
381
+ "vue/no-empty-pattern": "error",
382
+ "vue/no-loss-of-precision": "error",
383
+ "vue/no-irregular-whitespace": "error",
384
+ "vue/no-use-v-else-with-v-for": "error",
385
+ "vue/require-typed-object-prop": "error",
386
+ "vue/no-extra-parens": ["error", "functions"],
387
+ "vue/no-restricted-syntax": [
388
+ "error",
389
+ "DebuggerStatement",
390
+ "LabeledStatement",
391
+ "WithStatement"
392
+ ],
393
+ "vue/no-sparse-arrays": "error",
394
+ "vue/no-deprecated-model-definition": [
395
+ "error",
396
+ {
397
+ allowVue3Compat: true
398
+ }
399
+ ],
400
+ "vue/object-curly-newline": [
401
+ "error",
402
+ {
403
+ multiline: true,
404
+ consistent: true
405
+ }
406
+ ],
407
+ "vue/no-static-inline-styles": [
408
+ "error",
409
+ {
410
+ allowBinding: true
411
+ }
412
+ ],
413
+ "vue/object-curly-spacing": ["error", "always"],
414
+ "vue/object-property-newline": [
415
+ "error",
416
+ {
417
+ allowMultiplePropertiesPerLine: true
418
+ }
419
+ ],
420
+ "vue/object-shorthand": [
421
+ "error",
422
+ "always",
423
+ {
424
+ ignoreConstructors: false,
425
+ avoidQuotes: true
426
+ }
427
+ ],
428
+ "vue/operator-linebreak": ["error", "before"],
429
+ "vue/prefer-template": "error",
430
+ "vue/prop-name-casing": ["error", "camelCase"],
431
+ "vue/quote-props": ["error", "consistent-as-needed"],
432
+ "vue/space-in-parens": ["error", "never"],
433
+ "vue/space-infix-ops": "error",
434
+ "vue/space-unary-ops": [
435
+ "error",
436
+ {
437
+ words: true,
438
+ nonwords: false
439
+ }
440
+ ],
441
+ "vue/template-curly-spacing": "error",
442
+ "vue/block-order": [
443
+ "error",
444
+ {
445
+ order: ["script", "template", "style"]
446
+ }
447
+ ],
448
+ "vue/attributes-order": [
449
+ "error",
450
+ {
451
+ order: [
452
+ "EVENTS",
453
+ // `@click="functionCall"`, `v-on="event"`
454
+ "TWO_WAY_BINDING",
455
+ // `v-model`
456
+ "OTHER_DIRECTIVES",
457
+ // `v-custom-directive`
458
+ "LIST_RENDERING",
459
+ // `v-for item in items`
460
+ "CONDITIONALS",
461
+ // `v-if`, `v-show`, `v-cloak`
462
+ "CONTENT",
463
+ // `v-text`, `v-html`
464
+ "SLOT",
465
+ // `v-slot`, `slot`
466
+ "UNIQUE",
467
+ // `ref`, `key`
468
+ "DEFINITION",
469
+ // `is`, `v-is`
470
+ "ATTR_DYNAMIC",
471
+ // `v-bind:prop="foo"`, `:prop="foo"`
472
+ // `OTHER_ATTR`, // `custom-prop="foo"`, `:prop="foo"`, `disabled`
473
+ "RENDER_MODIFIERS",
474
+ // `v-once`, `v-pre`
475
+ "GLOBAL",
476
+ // `id`
477
+ "ATTR_STATIC",
478
+ // `prop="foo", `static attributes
479
+ "ATTR_SHORTHAND_BOOL"
480
+ // `disabled`, prop shorthand
481
+ ],
482
+ alphabetical: false
483
+ }
484
+ ],
485
+ "vue/order-in-components": [
486
+ "error",
487
+ {
488
+ order: [
489
+ "el",
490
+ "name",
491
+ "key",
492
+ "parent",
493
+ "functional",
494
+ ["provide", "inject"],
495
+ ["delimiters", "comments"],
496
+ ["components", "directives", "filters"],
497
+ "extends",
498
+ "mixins",
499
+ "layout",
500
+ "middleware",
501
+ "validate",
502
+ "scrollToTop",
503
+ "transition",
504
+ "loading",
505
+ "inheritAttrs",
506
+ "model",
507
+ ["props", "propsData"],
508
+ "emits",
509
+ "setup",
510
+ "asyncData",
511
+ "computed",
512
+ "data",
513
+ "fetch",
514
+ "head",
515
+ "methods",
516
+ ["template", "render"],
517
+ "watch",
518
+ "watchQuery",
519
+ "LIFECYCLE_HOOKS",
520
+ "renderError",
521
+ "ROUTER_GUARDS"
522
+ ]
523
+ }
524
+ ],
525
+ "vue/max-attributes-per-line": [
526
+ "error",
527
+ {
528
+ singleline: 1,
529
+ multiline: 1
530
+ }
531
+ ]
292
532
  }
293
- },
294
- {
295
- plugins: {
296
- vue: import_eslint_plugin_vue.default
297
- },
298
- rules: isVue3 ? vue3Rules : vue2Rules
299
533
  }
300
534
  ]);
301
535
 
@@ -305,14 +539,14 @@ var yml = (0, import_eslint_define_config3.defineFlatConfig)([
305
539
  {
306
540
  files: [GLOB_YAML],
307
541
  languageOptions: {
308
- parser: import_yaml_eslint_parser.default
542
+ parser: parserYaml
309
543
  },
310
544
  plugins: {
311
- yml: pluginYaml
545
+ yml: import_eslint_plugin_yml.default
312
546
  },
313
547
  rules: {
314
- ...pluginYaml.configs.standard.rules,
315
- ...pluginYaml.configs.prettier.rules,
548
+ ...import_eslint_plugin_yml.default.configs.standard.rules,
549
+ ...import_eslint_plugin_yml.default.configs.prettier.rules,
316
550
  "yml/no-empty-mapping-value": "off",
317
551
  "yml/quotes": ["error", { avoidEscape: false, prefer: "single" }]
318
552
  }
@@ -541,13 +775,13 @@ var jsonc = (0, import_eslint_define_config6.defineFlatConfig)([
541
775
  {
542
776
  files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
543
777
  plugins: {
544
- jsonc: import_eslint_plugin_jsonc.default
778
+ jsonc: pluginJsonc
545
779
  },
546
780
  languageOptions: {
547
- parser: import_jsonc_eslint_parser.default
781
+ parser: parserJsonc
548
782
  },
549
783
  rules: {
550
- ...import_eslint_plugin_jsonc.default.configs["recommended-with-jsonc"].rules,
784
+ ...pluginJsonc.configs["recommended-with-jsonc"].rules,
551
785
  "jsonc/array-bracket-spacing": ["error", "never"],
552
786
  "jsonc/comma-dangle": ["error", "never"],
553
787
  "jsonc/comma-style": ["error", "last"],
@@ -583,7 +817,7 @@ var import_eslint_define_config7 = require("eslint-define-config");
583
817
  var imports = (0, import_eslint_define_config7.defineFlatConfig)([
584
818
  {
585
819
  plugins: {
586
- import: import_eslint_plugin_i.default
820
+ import: import_eslint_plugin_import_x.default
587
821
  },
588
822
  settings: {
589
823
  "import/resolver": {
@@ -729,42 +963,28 @@ var prettier = (0, import_eslint_define_config10.defineFlatConfig)([
729
963
  // src/configs/markdown.ts
730
964
  var import_eslint_define_config11 = require("eslint-define-config");
731
965
  var markdown = (0, import_eslint_define_config11.defineFlatConfig)([
732
- {
733
- files: [GLOB_MARKDOWN],
734
- plugins: {
735
- markdown: import_eslint_plugin_markdown.default
736
- },
737
- processor: "markdown/markdown"
738
- },
966
+ ...import_eslint_plugin_markdown.default.configs.recommended,
739
967
  {
740
968
  files: [`${GLOB_MARKDOWN}/${GLOB_SRC}`, `${GLOB_MARKDOWN}/${GLOB_VUE}`],
741
- languageOptions: {
742
- parserOptions: {
743
- ecmaFeatures: {
744
- impliedStrict: true
745
- }
746
- }
747
- },
748
- plugins: {
749
- "@typescript-eslint": import_eslint_plugin2.default
750
- },
751
969
  rules: {
752
- ...import_eslint_plugin_markdown.default.configs["recommended-legacy"].overrides[1].rules,
753
970
  "no-undef": "off",
754
971
  "no-alert": "off",
755
972
  "no-console": "off",
756
973
  "no-unused-vars": "off",
757
974
  "no-unused-expressions": "off",
758
975
  "no-restricted-imports": "off",
976
+ "node/prefer-global/buffer": "off",
977
+ "node/prefer-global/process": "off",
759
978
  "import/no-unresolved": "off",
979
+ "unused-imports/no-unused-imports": "off",
980
+ "unused-imports/no-unused-vars": "off",
760
981
  "@typescript-eslint/comma-dangle": "off",
761
982
  "@typescript-eslint/no-redeclare": "off",
983
+ "@typescript-eslint/no-namespace": "off",
762
984
  "@typescript-eslint/no-unused-vars": "off",
763
985
  "@typescript-eslint/no-var-requires": "off",
764
986
  "@typescript-eslint/no-extraneous-class": "off",
765
- "@typescript-eslint/no-use-before-define": "off",
766
- "unused-imports/no-unused-imports": "off",
767
- "unused-imports/no-unused-vars": "off"
987
+ "@typescript-eslint/no-use-before-define": "off"
768
988
  }
769
989
  }
770
990
  ]);
@@ -1233,8 +1453,11 @@ function ntnyq(config = [], { vue: enableVue = false, unocss: enableUnoCSS = fal
1233
1453
  comments,
1234
1454
  common,
1235
1455
  getVueVersion,
1456
+ hasTypeScript,
1457
+ hasVue,
1236
1458
  ignores,
1237
1459
  imports,
1460
+ interopDefault,
1238
1461
  javascript,
1239
1462
  jsonc,
1240
1463
  jsx,
@@ -1242,7 +1465,6 @@ function ntnyq(config = [], { vue: enableVue = false, unocss: enableUnoCSS = fal
1242
1465
  node,
1243
1466
  ntnyq,
1244
1467
  parserJsonc,
1245
- parserTs,
1246
1468
  parserVue,
1247
1469
  parserYaml,
1248
1470
  pluginComments,
@@ -1251,7 +1473,6 @@ function ntnyq(config = [], { vue: enableVue = false, unocss: enableUnoCSS = fal
1251
1473
  pluginMarkdown,
1252
1474
  pluginNode,
1253
1475
  pluginPrettier,
1254
- pluginTs,
1255
1476
  pluginUnicorn,
1256
1477
  pluginUnoCSS,
1257
1478
  pluginVue,
@@ -1259,7 +1480,9 @@ function ntnyq(config = [], { vue: enableVue = false, unocss: enableUnoCSS = fal
1259
1480
  prettier,
1260
1481
  sortPackageJson,
1261
1482
  sortTsConfig,
1483
+ tseslint,
1262
1484
  typescript,
1485
+ typescriptCore,
1263
1486
  unicorn,
1264
1487
  unocss,
1265
1488
  vue,