@ntnyq/eslint-config 2.0.0-beta.24 → 2.0.0-beta.26

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
@@ -65,13 +65,13 @@ __export(src_exports, {
65
65
  markdown: () => markdown,
66
66
  node: () => node,
67
67
  ntnyq: () => ntnyq,
68
- parserJsonc: () => import_jsonc_eslint_parser.default,
68
+ parserJsonc: () => parserJsonc,
69
69
  parserTs: () => parserTs,
70
- parserVue: () => import_vue_eslint_parser.default,
71
- parserYaml: () => import_yaml_eslint_parser.default,
70
+ parserVue: () => parserVue,
71
+ parserYaml: () => parserYaml,
72
72
  pluginComments: () => import_eslint_plugin_eslint_comments.default,
73
- pluginImport: () => import_eslint_plugin_i.default,
74
- pluginJsonc: () => import_eslint_plugin_jsonc.default,
73
+ pluginImport: () => pluginImport,
74
+ pluginJsonc: () => pluginJsonc,
75
75
  pluginMarkdown: () => import_eslint_plugin_markdown.default,
76
76
  pluginNode: () => import_eslint_plugin_n.default,
77
77
  pluginPrettier: () => import_eslint_plugin_prettier.default,
@@ -144,6 +144,8 @@ var GLOB_EXCLUDE = [
144
144
  "**/fixtures",
145
145
  "**/.vitepress/cache",
146
146
  "**/.nuxt",
147
+ "**/.output",
148
+ "**/.nitro",
147
149
  "**/.vercel",
148
150
  "**/.changeset",
149
151
  "**/.npmrc",
@@ -159,20 +161,20 @@ var import_local_pkg = require("local-pkg");
159
161
  var import_eslint_define_config2 = require("eslint-define-config");
160
162
 
161
163
  // src/plugins.ts
162
- var pluginYaml = __toESM(require("eslint-plugin-yml"), 1);
163
164
  var import_eslint_plugin_n = __toESM(require("eslint-plugin-n"), 1);
164
- var import_eslint_plugin_i = __toESM(require("eslint-plugin-i"), 1);
165
165
  var import_eslint_plugin_vue = __toESM(require("eslint-plugin-vue"), 1);
166
- var import_eslint_plugin_jsonc = __toESM(require("eslint-plugin-jsonc"), 1);
167
166
  var import_eslint_plugin = __toESM(require("@unocss/eslint-plugin"), 1);
168
167
  var import_eslint_plugin_unicorn = __toESM(require("eslint-plugin-unicorn"), 1);
169
168
  var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
170
169
  var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1);
171
170
  var import_eslint_plugin_eslint_comments = __toESM(require("eslint-plugin-eslint-comments"), 1);
172
171
  var import_eslint_plugin2 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
173
- var import_yaml_eslint_parser = __toESM(require("yaml-eslint-parser"), 1);
174
- var import_vue_eslint_parser = __toESM(require("vue-eslint-parser"), 1);
175
- var import_jsonc_eslint_parser = __toESM(require("jsonc-eslint-parser"), 1);
172
+ var pluginYaml = __toESM(require("eslint-plugin-yml"), 1);
173
+ var pluginJsonc = __toESM(require("eslint-plugin-jsonc"), 1);
174
+ var pluginImport = __toESM(require("eslint-plugin-import-x"), 1);
175
+ var parserYaml = __toESM(require("yaml-eslint-parser"), 1);
176
+ var parserVue = __toESM(require("vue-eslint-parser"), 1);
177
+ var parserJsonc = __toESM(require("jsonc-eslint-parser"), 1);
176
178
  var parserTs = __toESM(require("@typescript-eslint/parser"), 1);
177
179
 
178
180
  // src/configs/typescript.ts
@@ -274,7 +276,7 @@ var vue = (0, import_eslint_define_config2.defineFlatConfig)([
274
276
  "@typescript-eslint": import_eslint_plugin2.default
275
277
  },
276
278
  languageOptions: {
277
- parser: import_vue_eslint_parser.default,
279
+ parser: parserVue,
278
280
  parserOptions: {
279
281
  parser: "@typescript-eslint/parser",
280
282
  sourceType: "module",
@@ -303,7 +305,7 @@ var yml = (0, import_eslint_define_config3.defineFlatConfig)([
303
305
  {
304
306
  files: [GLOB_YAML],
305
307
  languageOptions: {
306
- parser: import_yaml_eslint_parser.default
308
+ parser: parserYaml
307
309
  },
308
310
  plugins: {
309
311
  yml: pluginYaml
@@ -539,13 +541,13 @@ var jsonc = (0, import_eslint_define_config6.defineFlatConfig)([
539
541
  {
540
542
  files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
541
543
  plugins: {
542
- jsonc: import_eslint_plugin_jsonc.default
544
+ jsonc: pluginJsonc
543
545
  },
544
546
  languageOptions: {
545
- parser: import_jsonc_eslint_parser.default
547
+ parser: parserJsonc
546
548
  },
547
549
  rules: {
548
- ...import_eslint_plugin_jsonc.default.configs["recommended-with-jsonc"].rules,
550
+ ...pluginJsonc.configs["recommended-with-jsonc"].rules,
549
551
  "jsonc/array-bracket-spacing": ["error", "never"],
550
552
  "jsonc/comma-dangle": ["error", "never"],
551
553
  "jsonc/comma-style": ["error", "last"],
@@ -581,7 +583,7 @@ var import_eslint_define_config7 = require("eslint-define-config");
581
583
  var imports = (0, import_eslint_define_config7.defineFlatConfig)([
582
584
  {
583
585
  plugins: {
584
- import: import_eslint_plugin_i.default
586
+ import: pluginImport
585
587
  },
586
588
  settings: {
587
589
  "import/resolver": {
@@ -747,7 +749,7 @@ var markdown = (0, import_eslint_define_config11.defineFlatConfig)([
747
749
  "@typescript-eslint": import_eslint_plugin2.default
748
750
  },
749
751
  rules: {
750
- ...import_eslint_plugin_markdown.default.configs.recommended.overrides[1].rules,
752
+ ...import_eslint_plugin_markdown.default.configs["recommended-legacy"].overrides[1].rules,
751
753
  "no-undef": "off",
752
754
  "no-alert": "off",
753
755
  "no-console": "off",
package/dist/index.d.cts CHANGED
@@ -1,20 +1,25 @@
1
1
  import * as eslint_define_config from 'eslint-define-config';
2
2
  import { FlatESLintConfig } from 'eslint-define-config';
3
- import * as eslintPluginYml from 'eslint-plugin-yml';
4
- export { eslintPluginYml as pluginYaml };
5
3
  export { default as pluginNode } from 'eslint-plugin-n';
6
- export { default as pluginImport } from 'eslint-plugin-i';
7
4
  export { default as pluginVue } from 'eslint-plugin-vue';
8
- export { default as pluginJsonc } from 'eslint-plugin-jsonc';
9
5
  export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
10
6
  export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
11
7
  export { default as pluginPrettier } from 'eslint-plugin-prettier';
12
8
  export { default as pluginMarkdown } from 'eslint-plugin-markdown';
13
9
  export { default as pluginComments } from 'eslint-plugin-eslint-comments';
14
10
  export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
15
- export { default as parserYaml } from 'yaml-eslint-parser';
16
- export { default as parserVue } from 'vue-eslint-parser';
17
- export { default as parserJsonc } from 'jsonc-eslint-parser';
11
+ import * as eslintPluginYml from 'eslint-plugin-yml';
12
+ export { eslintPluginYml as pluginYaml };
13
+ import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
14
+ export { eslintPluginJsonc as pluginJsonc };
15
+ import * as eslintPluginImportX from 'eslint-plugin-import-x';
16
+ export { eslintPluginImportX as pluginImport };
17
+ import * as yamlEslintParser from 'yaml-eslint-parser';
18
+ export { yamlEslintParser as parserYaml };
19
+ import * as vueEslintParser from 'vue-eslint-parser';
20
+ export { vueEslintParser as parserVue };
21
+ import * as jsoncEslintParser from 'jsonc-eslint-parser';
22
+ export { jsoncEslintParser as parserJsonc };
18
23
  import * as parser from '@typescript-eslint/parser';
19
24
  export { parser as parserTs };
20
25
 
package/dist/index.d.ts CHANGED
@@ -1,20 +1,25 @@
1
1
  import * as eslint_define_config from 'eslint-define-config';
2
2
  import { FlatESLintConfig } from 'eslint-define-config';
3
- import * as eslintPluginYml from 'eslint-plugin-yml';
4
- export { eslintPluginYml as pluginYaml };
5
3
  export { default as pluginNode } from 'eslint-plugin-n';
6
- export { default as pluginImport } from 'eslint-plugin-i';
7
4
  export { default as pluginVue } from 'eslint-plugin-vue';
8
- export { default as pluginJsonc } from 'eslint-plugin-jsonc';
9
5
  export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
10
6
  export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
11
7
  export { default as pluginPrettier } from 'eslint-plugin-prettier';
12
8
  export { default as pluginMarkdown } from 'eslint-plugin-markdown';
13
9
  export { default as pluginComments } from 'eslint-plugin-eslint-comments';
14
10
  export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
15
- export { default as parserYaml } from 'yaml-eslint-parser';
16
- export { default as parserVue } from 'vue-eslint-parser';
17
- export { default as parserJsonc } from 'jsonc-eslint-parser';
11
+ import * as eslintPluginYml from 'eslint-plugin-yml';
12
+ export { eslintPluginYml as pluginYaml };
13
+ import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
14
+ export { eslintPluginJsonc as pluginJsonc };
15
+ import * as eslintPluginImportX from 'eslint-plugin-import-x';
16
+ export { eslintPluginImportX as pluginImport };
17
+ import * as yamlEslintParser from 'yaml-eslint-parser';
18
+ export { yamlEslintParser as parserYaml };
19
+ import * as vueEslintParser from 'vue-eslint-parser';
20
+ export { vueEslintParser as parserVue };
21
+ import * as jsoncEslintParser from 'jsonc-eslint-parser';
22
+ export { jsoncEslintParser as parserJsonc };
18
23
  import * as parser from '@typescript-eslint/parser';
19
24
  export { parser as parserTs };
20
25
 
package/dist/index.js CHANGED
@@ -51,6 +51,8 @@ var GLOB_EXCLUDE = [
51
51
  "**/fixtures",
52
52
  "**/.vitepress/cache",
53
53
  "**/.nuxt",
54
+ "**/.output",
55
+ "**/.nitro",
54
56
  "**/.vercel",
55
57
  "**/.changeset",
56
58
  "**/.npmrc",
@@ -66,20 +68,20 @@ import { getPackageInfoSync } from "local-pkg";
66
68
  import { defineFlatConfig as defineFlatConfig2 } from "eslint-define-config";
67
69
 
68
70
  // src/plugins.ts
69
- import * as pluginYaml from "eslint-plugin-yml";
70
71
  import { default as default2 } from "eslint-plugin-n";
71
- import { default as default3 } from "eslint-plugin-i";
72
- import { default as default4 } from "eslint-plugin-vue";
73
- import { default as default5 } from "eslint-plugin-jsonc";
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";
72
+ import { default as default3 } from "eslint-plugin-vue";
73
+ import { default as default4 } from "@unocss/eslint-plugin";
74
+ import { default as default5 } from "eslint-plugin-unicorn";
75
+ import { default as default6 } from "eslint-plugin-prettier";
76
+ import { default as default7 } from "eslint-plugin-markdown";
77
+ import { default as default8 } from "eslint-plugin-eslint-comments";
78
+ import { default as default9 } from "@typescript-eslint/eslint-plugin";
79
+ import * as pluginYaml from "eslint-plugin-yml";
80
+ import * as pluginJsonc from "eslint-plugin-jsonc";
81
+ import * as pluginImport from "eslint-plugin-import-x";
82
+ import * as parserYaml from "yaml-eslint-parser";
83
+ import * as parserVue from "vue-eslint-parser";
84
+ import * as parserJsonc from "jsonc-eslint-parser";
83
85
  import * as parserTs from "@typescript-eslint/parser";
84
86
 
85
87
  // src/configs/typescript.ts
@@ -94,11 +96,11 @@ var typescript = defineFlatConfig([
94
96
  }
95
97
  },
96
98
  plugins: {
97
- "@typescript-eslint": default11
99
+ "@typescript-eslint": default9
98
100
  },
99
101
  rules: {
100
- ...default11.configs.recommended.rules,
101
- ...default11.configs.stylistic.rules,
102
+ ...default9.configs.recommended.rules,
103
+ ...default9.configs.stylistic.rules,
102
104
  "@typescript-eslint/no-unused-vars": "error",
103
105
  "@typescript-eslint/no-redeclare": "error",
104
106
  "@typescript-eslint/consistent-type-imports": [
@@ -177,11 +179,11 @@ var vue = defineFlatConfig2([
177
179
  {
178
180
  files: [GLOB_VUE],
179
181
  plugins: {
180
- vue: default4,
181
- "@typescript-eslint": default11
182
+ vue: default3,
183
+ "@typescript-eslint": default9
182
184
  },
183
185
  languageOptions: {
184
- parser: default13,
186
+ parser: parserVue,
185
187
  parserOptions: {
186
188
  parser: "@typescript-eslint/parser",
187
189
  sourceType: "module",
@@ -191,14 +193,14 @@ var vue = defineFlatConfig2([
191
193
  }
192
194
  }
193
195
  },
194
- processor: default4.processors[".vue"],
196
+ processor: default3.processors[".vue"],
195
197
  rules: {
196
198
  ...typescript[0].rules
197
199
  }
198
200
  },
199
201
  {
200
202
  plugins: {
201
- vue: default4
203
+ vue: default3
202
204
  },
203
205
  rules: isVue3 ? vue3Rules : vue2Rules
204
206
  }
@@ -210,7 +212,7 @@ var yml = defineFlatConfig3([
210
212
  {
211
213
  files: [GLOB_YAML],
212
214
  languageOptions: {
213
- parser: default12
215
+ parser: parserYaml
214
216
  },
215
217
  plugins: {
216
218
  yml: pluginYaml
@@ -446,13 +448,13 @@ var jsonc = defineFlatConfig6([
446
448
  {
447
449
  files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
448
450
  plugins: {
449
- jsonc: default5
451
+ jsonc: pluginJsonc
450
452
  },
451
453
  languageOptions: {
452
- parser: default14
454
+ parser: parserJsonc
453
455
  },
454
456
  rules: {
455
- ...default5.configs["recommended-with-jsonc"].rules,
457
+ ...pluginJsonc.configs["recommended-with-jsonc"].rules,
456
458
  "jsonc/array-bracket-spacing": ["error", "never"],
457
459
  "jsonc/comma-dangle": ["error", "never"],
458
460
  "jsonc/comma-style": ["error", "last"],
@@ -488,7 +490,7 @@ import { defineFlatConfig as defineFlatConfig7 } from "eslint-define-config";
488
490
  var imports = defineFlatConfig7([
489
491
  {
490
492
  plugins: {
491
- import: default3
493
+ import: pluginImport
492
494
  },
493
495
  settings: {
494
496
  "import/resolver": {
@@ -531,10 +533,10 @@ import { defineFlatConfig as defineFlatConfig8 } from "eslint-define-config";
531
533
  var unocss = defineFlatConfig8([
532
534
  {
533
535
  plugins: {
534
- "@unocss": default6
536
+ "@unocss": default4
535
537
  },
536
538
  rules: {
537
- ...default6.configs.recommended.rules
539
+ ...default4.configs.recommended.rules
538
540
  }
539
541
  }
540
542
  ]);
@@ -544,7 +546,7 @@ import { defineFlatConfig as defineFlatConfig9 } from "eslint-define-config";
544
546
  var unicorn = defineFlatConfig9([
545
547
  {
546
548
  plugins: {
547
- unicorn: default7
549
+ unicorn: default5
548
550
  },
549
551
  rules: {
550
552
  "unicorn/no-unsafe-regex": "off",
@@ -621,11 +623,11 @@ import { defineFlatConfig as defineFlatConfig10 } from "eslint-define-config";
621
623
  var prettier = defineFlatConfig10([
622
624
  {
623
625
  plugins: {
624
- prettier: default8
626
+ prettier: default6
625
627
  },
626
628
  rules: {
627
629
  ...prettierConfig.rules,
628
- ...default8.configs.recommended.rules,
630
+ ...default6.configs.recommended.rules,
629
631
  "prettier/prettier": "warn"
630
632
  }
631
633
  }
@@ -637,7 +639,7 @@ var markdown = defineFlatConfig11([
637
639
  {
638
640
  files: [GLOB_MARKDOWN],
639
641
  plugins: {
640
- markdown: default9
642
+ markdown: default7
641
643
  },
642
644
  processor: "markdown/markdown"
643
645
  },
@@ -651,10 +653,10 @@ var markdown = defineFlatConfig11([
651
653
  }
652
654
  },
653
655
  plugins: {
654
- "@typescript-eslint": default11
656
+ "@typescript-eslint": default9
655
657
  },
656
658
  rules: {
657
- ...default9.configs.recommended.overrides[1].rules,
659
+ ...default7.configs["recommended-legacy"].overrides[1].rules,
658
660
  "no-undef": "off",
659
661
  "no-alert": "off",
660
662
  "no-console": "off",
@@ -679,10 +681,10 @@ import { defineFlatConfig as defineFlatConfig12 } from "eslint-define-config";
679
681
  var comments = defineFlatConfig12([
680
682
  {
681
683
  plugins: {
682
- "eslint-comments": default10
684
+ "eslint-comments": default8
683
685
  },
684
686
  rules: {
685
- ...default10.configs.recommended.rules,
687
+ ...default8.configs.recommended.rules,
686
688
  "eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }]
687
689
  }
688
690
  }
@@ -1145,20 +1147,20 @@ export {
1145
1147
  markdown,
1146
1148
  node,
1147
1149
  ntnyq,
1148
- default14 as parserJsonc,
1150
+ parserJsonc,
1149
1151
  parserTs,
1150
- default13 as parserVue,
1151
- default12 as parserYaml,
1152
- default10 as pluginComments,
1153
- default3 as pluginImport,
1154
- default5 as pluginJsonc,
1155
- default9 as pluginMarkdown,
1152
+ parserVue,
1153
+ parserYaml,
1154
+ default8 as pluginComments,
1155
+ pluginImport,
1156
+ pluginJsonc,
1157
+ default7 as pluginMarkdown,
1156
1158
  default2 as pluginNode,
1157
- default8 as pluginPrettier,
1158
- default11 as pluginTs,
1159
- default7 as pluginUnicorn,
1160
- default6 as pluginUnoCSS,
1161
- default4 as pluginVue,
1159
+ default6 as pluginPrettier,
1160
+ default9 as pluginTs,
1161
+ default5 as pluginUnicorn,
1162
+ default4 as pluginUnoCSS,
1163
+ default3 as pluginVue,
1162
1164
  pluginYaml,
1163
1165
  prettier,
1164
1166
  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.24",
4
+ "version": "2.0.0-beta.26",
5
5
  "description": "ESLint flat config of ntnyq",
6
6
  "keywords": [
7
7
  "eslint",
@@ -37,7 +37,7 @@
37
37
  "scripts": {
38
38
  "build": "tsup",
39
39
  "clean": "rimraf dist",
40
- "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
40
+ "lint": "eslint .",
41
41
  "prepare": "husky",
42
42
  "release": "run-s release:check release:version",
43
43
  "release:check": "run-s clean build lint typecheck",
@@ -48,25 +48,25 @@
48
48
  "access": "public"
49
49
  },
50
50
  "peerDependencies": {
51
- "eslint": "^8.50.0"
51
+ "eslint": "^8.57.0"
52
52
  },
53
53
  "dependencies": {
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",
54
+ "@eslint/js": "^9.0.0",
55
+ "@typescript-eslint/eslint-plugin": "^7.7.0",
56
+ "@typescript-eslint/parser": "^7.7.0",
57
+ "@unocss/eslint-plugin": "^0.59.3",
58
58
  "eslint-config-prettier": "^9.1.0",
59
59
  "eslint-define-config": "^2.1.0",
60
60
  "eslint-plugin-eslint-comments": "^3.2.0",
61
- "eslint-plugin-i": "^2.29.1",
62
- "eslint-plugin-jsonc": "^2.13.0",
63
- "eslint-plugin-markdown": "^3.0.1",
64
- "eslint-plugin-n": "^16.6.2",
61
+ "eslint-plugin-import-x": "^0.5.0",
62
+ "eslint-plugin-jsonc": "^2.15.1",
63
+ "eslint-plugin-markdown": "^4.0.1",
64
+ "eslint-plugin-n": "^17.2.1",
65
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",
66
+ "eslint-plugin-unicorn": "^52.0.0",
67
+ "eslint-plugin-vue": "^9.25.0",
68
+ "eslint-plugin-yml": "^1.14.0",
69
+ "globals": "^15.0.0",
70
70
  "jsonc-eslint-parser": "^2.4.0",
71
71
  "local-pkg": "^0.5.0",
72
72
  "prettier": "^3.2.5",
@@ -74,16 +74,16 @@
74
74
  "yaml-eslint-parser": "^1.2.2"
75
75
  },
76
76
  "devDependencies": {
77
- "@ntnyq/prettier-config": "^1.20.3",
78
- "@types/node": "^20.11.19",
79
- "bumpp": "^9.3.0",
80
- "eslint": "^8.56.0",
77
+ "@ntnyq/prettier-config": "^1.21.2",
78
+ "@types/node": "^20.12.7",
79
+ "bumpp": "^9.4.0",
80
+ "eslint": "^9.0.0",
81
81
  "husky": "^9.0.11",
82
82
  "nano-staged": "^0.8.0",
83
83
  "npm-run-all": "^4.1.5",
84
84
  "rimraf": "^5.0.5",
85
85
  "tsup": "^8.0.2",
86
- "typescript": "5.2.2"
86
+ "typescript": "^5.4.5"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=18.18"