@ota-meshi/eslint-plugin 0.15.3 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/lib/config-builder/+astro-with-ts.d.ts +2 -0
  2. package/lib/config-builder/+astro-with-ts.js +38 -0
  3. package/lib/config-builder/+astro.d.ts +2 -0
  4. package/lib/config-builder/+astro.js +30 -0
  5. package/lib/config-builder/+eslint-plugin.d.ts +2 -0
  6. package/lib/config-builder/+eslint-plugin.js +26 -0
  7. package/lib/config-builder/+json.d.ts +2 -0
  8. package/lib/config-builder/+json.js +32 -0
  9. package/lib/config-builder/+md.d.ts +2 -0
  10. package/lib/config-builder/+md.js +44 -0
  11. package/lib/config-builder/+node.d.ts +2 -0
  12. package/lib/config-builder/+node.js +29 -0
  13. package/lib/config-builder/+package-json.d.ts +2 -0
  14. package/lib/config-builder/+package-json.js +29 -0
  15. package/lib/config-builder/+prettier.d.ts +2 -0
  16. package/lib/config-builder/+prettier.js +28 -0
  17. package/lib/config-builder/+svelte-with-ts.d.ts +2 -0
  18. package/lib/config-builder/+svelte-with-ts.js +42 -0
  19. package/lib/config-builder/+svelte.d.ts +2 -0
  20. package/lib/config-builder/+svelte.js +30 -0
  21. package/lib/config-builder/+toml.d.ts +2 -0
  22. package/lib/config-builder/+toml.js +32 -0
  23. package/lib/config-builder/+typescript.d.ts +2 -0
  24. package/lib/config-builder/+typescript.js +17 -0
  25. package/lib/config-builder/+vue2-with-ts.d.ts +2 -0
  26. package/lib/config-builder/+vue2-with-ts.js +38 -0
  27. package/lib/config-builder/+vue2.d.ts +2 -0
  28. package/lib/config-builder/+vue2.js +30 -0
  29. package/lib/config-builder/+vue3-with-ts.d.ts +2 -0
  30. package/lib/config-builder/+vue3-with-ts.js +38 -0
  31. package/lib/config-builder/+vue3.d.ts +2 -0
  32. package/lib/config-builder/+vue3.js +30 -0
  33. package/lib/config-builder/+yaml.d.ts +2 -0
  34. package/lib/config-builder/+yaml.js +32 -0
  35. package/lib/config-builder/base-plugins/eslint-comments.d.ts +2 -0
  36. package/lib/config-builder/base-plugins/eslint-comments.js +20 -0
  37. package/lib/config-builder/base-plugins/jsdoc.d.ts +2 -0
  38. package/lib/config-builder/base-plugins/jsdoc.js +20 -0
  39. package/lib/config-builder/base-plugins/regexp.d.ts +2 -0
  40. package/lib/config-builder/base-plugins/regexp.js +20 -0
  41. package/lib/config-builder/fallback.d.ts +5 -0
  42. package/lib/config-builder/fallback.js +22 -0
  43. package/lib/config-builder/index.d.ts +20 -0
  44. package/lib/config-builder/index.js +50 -0
  45. package/lib/config-builder/plugins/json-schema.d.ts +2 -0
  46. package/lib/config-builder/plugins/json-schema.js +30 -0
  47. package/lib/config-builder/plugins/ts/base-config.d.ts +2 -0
  48. package/lib/config-builder/plugins/ts/base-config.js +48 -0
  49. package/lib/config-builder/plugins/ts/index.d.ts +1 -0
  50. package/lib/config-builder/plugins/ts/index.js +5 -0
  51. package/lib/config-builder/recommended.d.ts +5 -0
  52. package/lib/config-builder/recommended.js +40 -0
  53. package/lib/config-helpers/+astro.d.ts +3 -0
  54. package/lib/config-helpers/+astro.js +5 -0
  55. package/lib/config-helpers/+eslint-plugin.d.ts +3 -0
  56. package/lib/config-helpers/+eslint-plugin.js +102 -0
  57. package/lib/config-helpers/+json.d.ts +3 -0
  58. package/lib/config-helpers/+json.js +10 -0
  59. package/lib/config-helpers/+md.d.ts +5 -0
  60. package/lib/config-helpers/+md.js +44 -0
  61. package/lib/config-helpers/+node.d.ts +11 -0
  62. package/lib/config-helpers/+node.js +25 -0
  63. package/lib/config-helpers/+package-json.d.ts +1 -0
  64. package/lib/config-helpers/+package-json.js +4 -0
  65. package/lib/config-helpers/+prettier.d.ts +3 -0
  66. package/lib/config-helpers/+prettier.js +44 -0
  67. package/lib/config-helpers/+svelte.d.ts +3 -0
  68. package/lib/config-helpers/+svelte.js +16 -0
  69. package/lib/config-helpers/+toml.d.ts +3 -0
  70. package/lib/config-helpers/+toml.js +5 -0
  71. package/lib/config-helpers/+typescript.d.ts +4 -0
  72. package/lib/config-helpers/+typescript.js +18 -0
  73. package/lib/config-helpers/+vue.d.ts +3 -0
  74. package/lib/config-helpers/+vue.js +5 -0
  75. package/lib/config-helpers/+yaml.d.ts +3 -0
  76. package/lib/config-helpers/+yaml.js +7 -0
  77. package/lib/config-helpers/base-plugins/eslint-comments.d.ts +2 -0
  78. package/lib/config-helpers/base-plugins/eslint-comments.js +7 -0
  79. package/lib/config-helpers/base-plugins/jsdoc.d.ts +2 -0
  80. package/lib/config-helpers/base-plugins/jsdoc.js +6 -0
  81. package/lib/config-helpers/base-plugins/regexp.d.ts +2 -0
  82. package/lib/config-helpers/base-plugins/regexp.js +10 -0
  83. package/lib/config-helpers/plugins/json-schema.d.ts +2 -0
  84. package/lib/config-helpers/plugins/json-schema.js +31 -0
  85. package/lib/config-helpers/plugins/ts/base-config.d.ts +2 -0
  86. package/lib/config-helpers/plugins/ts/base-config.js +116 -0
  87. package/lib/config-helpers/plugins/ts/index.d.ts +7 -0
  88. package/lib/config-helpers/plugins/ts/index.js +21 -0
  89. package/lib/config-helpers/recommended.d.ts +5 -0
  90. package/lib/config-helpers/recommended.js +240 -0
  91. package/lib/configs/+eslint-plugin.d.ts +3 -0
  92. package/lib/configs/+eslint-plugin.js +22 -95
  93. package/lib/configs/+json.d.ts +3 -0
  94. package/lib/configs/+json.js +22 -22
  95. package/lib/configs/+md.d.ts +3 -0
  96. package/lib/configs/+md.js +30 -29
  97. package/lib/configs/+node.d.ts +3 -0
  98. package/lib/configs/+node.js +23 -29
  99. package/lib/configs/+package-json.d.ts +3 -0
  100. package/lib/configs/+package-json.js +20 -20
  101. package/lib/configs/+prettier.d.ts +3 -0
  102. package/lib/configs/+prettier.js +23 -70
  103. package/lib/configs/+svelte-with-ts.d.ts +3 -0
  104. package/lib/configs/+svelte-with-ts.js +47 -25
  105. package/lib/configs/+svelte.d.ts +3 -0
  106. package/lib/configs/+svelte.js +23 -32
  107. package/lib/configs/+toml.d.ts +3 -0
  108. package/lib/configs/+toml.js +20 -18
  109. package/lib/configs/+typescript.d.ts +3 -0
  110. package/lib/configs/+typescript.js +53 -32
  111. package/lib/configs/+vue2-with-ts.d.ts +3 -0
  112. package/lib/configs/+vue2-with-ts.js +48 -25
  113. package/lib/configs/+vue2.d.ts +3 -0
  114. package/lib/configs/+vue2.js +24 -25
  115. package/lib/configs/+vue3-with-ts.d.ts +3 -0
  116. package/lib/configs/+vue3-with-ts.js +48 -25
  117. package/lib/configs/+vue3.d.ts +3 -0
  118. package/lib/configs/+vue3.js +24 -25
  119. package/lib/configs/+yaml.d.ts +3 -0
  120. package/lib/configs/+yaml.js +22 -22
  121. package/lib/configs/base-plugins/eslint-comments.d.ts +3 -0
  122. package/lib/configs/base-plugins/eslint-comments.js +7 -9
  123. package/lib/configs/base-plugins/jsdoc.d.ts +3 -0
  124. package/lib/configs/base-plugins/jsdoc.js +10 -0
  125. package/lib/configs/base-plugins/regexp.d.ts +3 -0
  126. package/lib/configs/base-plugins/regexp.js +6 -11
  127. package/lib/configs/fallback.d.ts +5 -0
  128. package/lib/configs/fallback.js +15 -0
  129. package/lib/configs/json-schema/config.d.ts +3 -0
  130. package/lib/configs/json-schema/config.js +14 -31
  131. package/lib/configs/recommended.d.ts +26 -0
  132. package/lib/configs/recommended.js +26 -255
  133. package/lib/configs/ts/base-config.d.ts +10 -0
  134. package/lib/configs/ts/base-config.js +10 -118
  135. package/lib/configs/ts/index.d.ts +2 -0
  136. package/lib/configs/ts/index.js +4 -16
  137. package/lib/index.d.ts +48 -0
  138. package/lib/index.js +15 -23
  139. package/lib/parsers/any-parser.d.ts +5 -0
  140. package/lib/parsers/any-parser.js +29 -0
  141. package/lib/rules/missing-module-for-config.d.ts +16 -0
  142. package/lib/rules/missing-module-for-config.js +35 -53
  143. package/lib/utils/find-root-dir.d.ts +1 -0
  144. package/lib/utils/find-root-dir.js +21 -18
  145. package/lib/utils/get-linters.d.ts +1 -0
  146. package/lib/utils/get-linters.js +27 -27
  147. package/lib/utils/module.d.ts +19 -0
  148. package/lib/utils/module.js +81 -59
  149. package/package.json +23 -14
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildAstroTs(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildAstroTs = void 0;
4
+ const module_js_1 = require("../utils/module.js");
5
+ const _astro_js_1 = require("../config-helpers/+astro.js");
6
+ const index_js_1 = require("./plugins/ts/index.js");
7
+ const index_js_2 = require("../config-helpers/plugins/ts/index.js");
8
+ const fallback_js_1 = require("./fallback.js");
9
+ const any_parser_js_1 = require("../parsers/any-parser.js");
10
+ const _astro_js_2 = require("./+astro.js");
11
+ function buildAstroTs() {
12
+ return (0, module_js_1.requireOf)(["eslint-plugin-astro", "astro-eslint-parser", "@typescript-eslint/parser"], () => {
13
+ return [
14
+ ...(0, index_js_1.buildTS)(_astro_js_1.astroFiles),
15
+ {
16
+ files: _astro_js_1.astroFiles,
17
+ languageOptions: {
18
+ parserOptions: {
19
+ parser: (0, module_js_1.requireFromCwd)("@typescript-eslint/parser"),
20
+ },
21
+ },
22
+ rules: {
23
+ ...index_js_2.tsExtendRules,
24
+ },
25
+ },
26
+ ...(0, _astro_js_2.buildAstro)(),
27
+ ];
28
+ }, (missingList) => [
29
+ {
30
+ files: _astro_js_1.astroFiles,
31
+ languageOptions: {
32
+ parser: any_parser_js_1.anyParser,
33
+ },
34
+ ...(0, fallback_js_1.buildFallback)(missingList),
35
+ },
36
+ ]);
37
+ }
38
+ exports.buildAstroTs = buildAstroTs;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildAstro(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildAstro = void 0;
4
+ const _astro_js_1 = require("../config-helpers/+astro.js");
5
+ const module_js_1 = require("../utils/module.js");
6
+ const fallback_js_1 = require("./fallback.js");
7
+ const any_parser_js_1 = require("../parsers/any-parser.js");
8
+ function buildAstro() {
9
+ return (0, module_js_1.requireOf)(["eslint-plugin-astro"], () => {
10
+ const eslintPluginAstro = (0, module_js_1.requireFromCwd)("eslint-plugin-astro");
11
+ return [
12
+ ...eslintPluginAstro.configs["flat/recommended"],
13
+ {
14
+ files: _astro_js_1.astroFiles,
15
+ rules: {
16
+ ..._astro_js_1.astroExtendRules,
17
+ },
18
+ },
19
+ ];
20
+ }, (missingList) => [
21
+ {
22
+ files: _astro_js_1.astroFiles,
23
+ languageOptions: {
24
+ parser: any_parser_js_1.anyParser,
25
+ },
26
+ ...(0, fallback_js_1.buildFallback)(missingList),
27
+ },
28
+ ]);
29
+ }
30
+ exports.buildAstro = buildAstro;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildESLintPlugin(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildESLintPlugin = void 0;
4
+ const module_js_1 = require("../utils/module.js");
5
+ const _eslint_plugin_js_1 = require("../config-helpers/+eslint-plugin.js");
6
+ const fallback_js_1 = require("./fallback.js");
7
+ const _node_js_1 = require("./+node.js");
8
+ function buildESLintPlugin() {
9
+ return (0, module_js_1.requireOf)(["eslint-plugin-eslint-plugin@5.5.1"], () => {
10
+ const eslintPlugin = (0, module_js_1.requireFromCwd)("eslint-plugin-eslint-plugin");
11
+ return [
12
+ {
13
+ ...eslintPlugin.configs["flat/recommended"],
14
+ files: _eslint_plugin_js_1.eslintPluginFiles,
15
+ },
16
+ ...(0, _node_js_1.buildNode)(),
17
+ {
18
+ files: _eslint_plugin_js_1.eslintPluginFiles,
19
+ rules: {
20
+ ..._eslint_plugin_js_1.eslintPluginExtendRules,
21
+ },
22
+ },
23
+ ];
24
+ }, fallback_js_1.buildFallback);
25
+ }
26
+ exports.buildESLintPlugin = buildESLintPlugin;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildJson(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildJson = void 0;
4
+ const module_js_1 = require("../utils/module.js");
5
+ const _json_js_1 = require("../config-helpers/+json.js");
6
+ const json_schema_js_1 = require("./plugins/json-schema.js");
7
+ const fallback_js_1 = require("./fallback.js");
8
+ const any_parser_js_1 = require("../parsers/any-parser.js");
9
+ function buildJson() {
10
+ return (0, module_js_1.requireOf)(["eslint-plugin-jsonc"], () => {
11
+ const eslintPluginJsonc = (0, module_js_1.requireFromCwd)("eslint-plugin-jsonc");
12
+ return [
13
+ ...eslintPluginJsonc.configs["flat/recommended-with-jsonc"],
14
+ {
15
+ files: _json_js_1.jsonFiles,
16
+ rules: {
17
+ ..._json_js_1.jsonExtendRules,
18
+ },
19
+ },
20
+ ...(0, json_schema_js_1.buildJsonSchema)(_json_js_1.jsonFiles),
21
+ ];
22
+ }, (missingList) => [
23
+ {
24
+ files: _json_js_1.jsonFiles,
25
+ languageOptions: {
26
+ parser: any_parser_js_1.anyParser,
27
+ },
28
+ ...(0, fallback_js_1.buildFallback)(missingList),
29
+ },
30
+ ]);
31
+ }
32
+ exports.buildJson = buildJson;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildMd(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildMd = void 0;
4
+ const module_js_1 = require("../utils/module.js");
5
+ const _md_js_1 = require("../config-helpers/+md.js");
6
+ const fallback_js_1 = require("./fallback.js");
7
+ const any_parser_js_1 = require("../parsers/any-parser.js");
8
+ function buildMd() {
9
+ return (0, module_js_1.requireOf)(["eslint-plugin-markdown@4.0.0"], () => {
10
+ const markdown = (0, module_js_1.requireFromCwd)("eslint-plugin-markdown");
11
+ return [
12
+ {
13
+ plugins: {
14
+ markdown,
15
+ },
16
+ },
17
+ {
18
+ files: _md_js_1.mdFiles,
19
+ processor: "markdown/markdown",
20
+ },
21
+ {
22
+ files: _md_js_1.jsInMdFiles,
23
+ rules: {
24
+ ..._md_js_1.jsInMdRules,
25
+ },
26
+ languageOptions: {
27
+ sourceType: "module",
28
+ parserOptions: {
29
+ project: null,
30
+ },
31
+ },
32
+ },
33
+ ];
34
+ }, (missingList) => [
35
+ {
36
+ files: _md_js_1.mdFiles,
37
+ languageOptions: {
38
+ parser: any_parser_js_1.anyParser,
39
+ },
40
+ ...(0, fallback_js_1.buildFallback)(missingList),
41
+ },
42
+ ]);
43
+ }
44
+ exports.buildMd = buildMd;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildNode(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildNode = void 0;
4
+ const module_js_1 = require("../utils/module.js");
5
+ const fallback_js_1 = require("./fallback.js");
6
+ const _node_js_1 = require("../config-helpers/+node.js");
7
+ function buildNode() {
8
+ return (0, module_js_1.requireOf)(["eslint-plugin-n@17.2.0"], () => {
9
+ const nodePlugin = (0, module_js_1.requireFromCwd)("eslint-plugin-n");
10
+ return [
11
+ ...nodePlugin.configs["flat/mixed-esm-and-cjs"],
12
+ {
13
+ files: _node_js_1.nodeFiles,
14
+ rules: {
15
+ ..._node_js_1.nodeExtendRules,
16
+ },
17
+ },
18
+ {
19
+ settings: {
20
+ ..._node_js_1.nodeSettings,
21
+ },
22
+ },
23
+ ];
24
+ }, (missingList) => (0, fallback_js_1.buildFallback)(missingList).map((config) => ({
25
+ ...config,
26
+ files: _node_js_1.nodeFiles,
27
+ })));
28
+ }
29
+ exports.buildNode = buildNode;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildPackageJson(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildPackageJson = void 0;
4
+ const module_js_1 = require("../utils/module.js");
5
+ const _json_js_1 = require("./+json.js");
6
+ const _package_json_js_1 = require("../config-helpers/+package-json.js");
7
+ const fallback_js_1 = require("./fallback.js");
8
+ const any_parser_js_1 = require("../parsers/any-parser.js");
9
+ function buildPackageJson() {
10
+ return (0, module_js_1.requireOf)(["eslint-plugin-node-dependencies@0.12.0"], () => {
11
+ const nodeDependenciesPlugin = (0, module_js_1.requireFromCwd)("eslint-plugin-node-dependencies");
12
+ return [
13
+ ...(0, _json_js_1.buildJson)().map((config) => ({
14
+ ...config,
15
+ files: _package_json_js_1.packageJsonFiles,
16
+ })),
17
+ ...nodeDependenciesPlugin.configs["flat/recommended"],
18
+ ];
19
+ }, (missingList) => [
20
+ {
21
+ files: _package_json_js_1.packageJsonFiles,
22
+ languageOptions: {
23
+ parser: any_parser_js_1.anyParser,
24
+ },
25
+ ...(0, fallback_js_1.buildFallback)(missingList),
26
+ },
27
+ ]);
28
+ }
29
+ exports.buildPackageJson = buildPackageJson;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildPrettier(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildPrettier = void 0;
4
+ const module_js_1 = require("../utils/module.js");
5
+ const _prettier_js_1 = require("../config-helpers/+prettier.js");
6
+ const fallback_js_1 = require("./fallback.js");
7
+ function buildPrettier() {
8
+ return (0, module_js_1.requireOf)(["eslint-plugin-prettier", "eslint-config-prettier", "prettier"], () => {
9
+ const eslintConfigPrettier = (0, module_js_1.requireFromCwd)("eslint-config-prettier");
10
+ const prettier = (0, module_js_1.requireFromCwd)("eslint-plugin-prettier");
11
+ return [
12
+ eslintConfigPrettier,
13
+ {
14
+ plugins: { prettier },
15
+ rules: {
16
+ ..._prettier_js_1.prettierExtendRules,
17
+ },
18
+ },
19
+ {
20
+ files: _prettier_js_1.prettierOffFiles,
21
+ rules: {
22
+ "prettier/prettier": "off",
23
+ },
24
+ },
25
+ ];
26
+ }, fallback_js_1.buildFallback);
27
+ }
28
+ exports.buildPrettier = buildPrettier;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildSvelteTs(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildSvelteTs = void 0;
4
+ const module_js_1 = require("../utils/module.js");
5
+ const _svelte_js_1 = require("../config-helpers/+svelte.js");
6
+ const index_js_1 = require("./plugins/ts/index.js");
7
+ const index_js_2 = require("../config-helpers/plugins/ts/index.js");
8
+ const fallback_js_1 = require("./fallback.js");
9
+ const any_parser_js_1 = require("../parsers/any-parser.js");
10
+ const _svelte_js_2 = require("./+svelte.js");
11
+ function buildSvelteTs() {
12
+ return (0, module_js_1.requireOf)([
13
+ "eslint-plugin-svelte",
14
+ "svelte-eslint-parser",
15
+ "@typescript-eslint/parser",
16
+ ], () => {
17
+ return [
18
+ ...(0, index_js_1.buildTS)(_svelte_js_1.svelteFiles),
19
+ {
20
+ files: _svelte_js_1.svelteFiles,
21
+ languageOptions: {
22
+ parserOptions: {
23
+ parser: (0, module_js_1.requireFromCwd)("@typescript-eslint/parser"),
24
+ },
25
+ },
26
+ rules: {
27
+ ...index_js_2.tsExtendRules,
28
+ },
29
+ },
30
+ ...(0, _svelte_js_2.buildSvelte)(),
31
+ ];
32
+ }, (missingList) => [
33
+ {
34
+ files: _svelte_js_1.svelteFiles,
35
+ languageOptions: {
36
+ parser: any_parser_js_1.anyParser,
37
+ },
38
+ ...(0, fallback_js_1.buildFallback)(missingList),
39
+ },
40
+ ]);
41
+ }
42
+ exports.buildSvelteTs = buildSvelteTs;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildSvelte(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildSvelte = void 0;
4
+ const _svelte_js_1 = require("../config-helpers/+svelte.js");
5
+ const module_js_1 = require("../utils/module.js");
6
+ const fallback_js_1 = require("./fallback.js");
7
+ const any_parser_js_1 = require("../parsers/any-parser.js");
8
+ function buildSvelte() {
9
+ return (0, module_js_1.requireOf)(["eslint-plugin-svelte@2.9.0"], () => {
10
+ const eslintPluginSvelte = (0, module_js_1.requireFromCwd)("eslint-plugin-svelte");
11
+ return [
12
+ ...eslintPluginSvelte.configs["flat/recommended"],
13
+ {
14
+ files: _svelte_js_1.svelteFiles,
15
+ rules: {
16
+ ..._svelte_js_1.svelteExtendRules,
17
+ },
18
+ },
19
+ ];
20
+ }, (missingList) => [
21
+ {
22
+ files: _svelte_js_1.svelteFiles,
23
+ languageOptions: {
24
+ parser: any_parser_js_1.anyParser,
25
+ },
26
+ ...(0, fallback_js_1.buildFallback)(missingList),
27
+ },
28
+ ]);
29
+ }
30
+ exports.buildSvelte = buildSvelte;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildToml(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildToml = void 0;
4
+ const module_js_1 = require("../utils/module.js");
5
+ const _toml_js_1 = require("../config-helpers/+toml.js");
6
+ const json_schema_js_1 = require("./plugins/json-schema.js");
7
+ const fallback_js_1 = require("./fallback.js");
8
+ const any_parser_js_1 = require("../parsers/any-parser.js");
9
+ function buildToml() {
10
+ return (0, module_js_1.requireOf)(["eslint-plugin-toml"], () => {
11
+ const eslintPluginToml = (0, module_js_1.requireFromCwd)("eslint-plugin-toml");
12
+ return [
13
+ ...eslintPluginToml.configs["flat/standard"],
14
+ ...(0, json_schema_js_1.buildJsonSchema)(_toml_js_1.tomlFiles),
15
+ {
16
+ files: _toml_js_1.tomlFiles,
17
+ rules: {
18
+ ..._toml_js_1.tomlExtendRules,
19
+ },
20
+ },
21
+ ];
22
+ }, (missingList) => [
23
+ {
24
+ files: _toml_js_1.tomlFiles,
25
+ languageOptions: {
26
+ parser: any_parser_js_1.anyParser,
27
+ },
28
+ ...(0, fallback_js_1.buildFallback)(missingList),
29
+ },
30
+ ]);
31
+ }
32
+ exports.buildToml = buildToml;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildTs(): Linter.FlatConfig[];
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildTs = void 0;
4
+ const _typescript_js_1 = require("../config-helpers/+typescript.js");
5
+ const index_js_1 = require("./plugins/ts/index.js");
6
+ function buildTs() {
7
+ return [
8
+ ...(0, index_js_1.buildTS)(_typescript_js_1.tsFiles),
9
+ {
10
+ files: _typescript_js_1.tsTestFiles,
11
+ rules: {
12
+ ..._typescript_js_1.tsTestExtendRules,
13
+ },
14
+ },
15
+ ];
16
+ }
17
+ exports.buildTs = buildTs;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildVue2Ts(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildVue2Ts = void 0;
4
+ const _vue_js_1 = require("../config-helpers/+vue.js");
5
+ const module_js_1 = require("../utils/module.js");
6
+ const _vue2_js_1 = require("./+vue2.js");
7
+ const index_js_1 = require("./plugins/ts/index.js");
8
+ const base_config_js_1 = require("../config-helpers/plugins/ts/base-config.js");
9
+ const any_parser_js_1 = require("../parsers/any-parser.js");
10
+ const fallback_js_1 = require("./fallback.js");
11
+ function buildVue2Ts() {
12
+ return (0, module_js_1.requireOf)(["eslint-plugin-vue", "vue-eslint-parser", "@typescript-eslint/parser"], () => {
13
+ return [
14
+ ...(0, index_js_1.buildTS)(_vue_js_1.vueFiles),
15
+ {
16
+ files: _vue_js_1.vueFiles,
17
+ languageOptions: {
18
+ parserOptions: {
19
+ parser: (0, module_js_1.requireFromCwd)("@typescript-eslint/parser"),
20
+ },
21
+ },
22
+ rules: {
23
+ ...base_config_js_1.tsExtendRules,
24
+ },
25
+ },
26
+ ...(0, _vue2_js_1.buildVue2)(),
27
+ ];
28
+ }, (missingList) => [
29
+ {
30
+ files: _vue_js_1.vueFiles,
31
+ languageOptions: {
32
+ parser: any_parser_js_1.anyParser,
33
+ },
34
+ ...(0, fallback_js_1.buildFallback)(missingList),
35
+ },
36
+ ]);
37
+ }
38
+ exports.buildVue2Ts = buildVue2Ts;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildVue2(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildVue2 = void 0;
4
+ const _vue_js_1 = require("../config-helpers/+vue.js");
5
+ const module_js_1 = require("../utils/module.js");
6
+ const fallback_js_1 = require("./fallback.js");
7
+ const any_parser_js_1 = require("../parsers/any-parser.js");
8
+ function buildVue2() {
9
+ return (0, module_js_1.requireOf)(["eslint-plugin-vue", "vue-eslint-parser"], () => {
10
+ const eslintPluginVue = (0, module_js_1.requireFromCwd)("eslint-plugin-vue");
11
+ return [
12
+ ...eslintPluginVue.configs["flat/vue2-recommended"],
13
+ {
14
+ files: _vue_js_1.vueFiles,
15
+ rules: {
16
+ ..._vue_js_1.vueExtendRules,
17
+ },
18
+ },
19
+ ];
20
+ }, (missingList) => [
21
+ {
22
+ files: _vue_js_1.vueFiles,
23
+ languageOptions: {
24
+ parser: any_parser_js_1.anyParser,
25
+ },
26
+ ...(0, fallback_js_1.buildFallback)(missingList),
27
+ },
28
+ ]);
29
+ }
30
+ exports.buildVue2 = buildVue2;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildVue3Ts(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildVue3Ts = void 0;
4
+ const _vue_js_1 = require("../config-helpers/+vue.js");
5
+ const module_js_1 = require("../utils/module.js");
6
+ const index_js_1 = require("./plugins/ts/index.js");
7
+ const base_config_js_1 = require("../config-helpers/plugins/ts/base-config.js");
8
+ const any_parser_js_1 = require("../parsers/any-parser.js");
9
+ const fallback_js_1 = require("./fallback.js");
10
+ const _vue3_js_1 = require("./+vue3.js");
11
+ function buildVue3Ts() {
12
+ return (0, module_js_1.requireOf)(["eslint-plugin-vue", "vue-eslint-parser", "@typescript-eslint/parser"], () => {
13
+ return [
14
+ ...(0, index_js_1.buildTS)(_vue_js_1.vueFiles),
15
+ {
16
+ files: _vue_js_1.vueFiles,
17
+ languageOptions: {
18
+ parserOptions: {
19
+ parser: (0, module_js_1.requireFromCwd)("@typescript-eslint/parser"),
20
+ },
21
+ },
22
+ rules: {
23
+ ...base_config_js_1.tsExtendRules,
24
+ },
25
+ },
26
+ ...(0, _vue3_js_1.buildVue3)(),
27
+ ];
28
+ }, (missingList) => [
29
+ {
30
+ files: _vue_js_1.vueFiles,
31
+ languageOptions: {
32
+ parser: any_parser_js_1.anyParser,
33
+ },
34
+ ...(0, fallback_js_1.buildFallback)(missingList),
35
+ },
36
+ ]);
37
+ }
38
+ exports.buildVue3Ts = buildVue3Ts;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildVue3(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildVue3 = void 0;
4
+ const _vue_js_1 = require("../config-helpers/+vue.js");
5
+ const module_js_1 = require("../utils/module.js");
6
+ const fallback_js_1 = require("./fallback.js");
7
+ const any_parser_js_1 = require("../parsers/any-parser.js");
8
+ function buildVue3() {
9
+ return (0, module_js_1.requireOf)(["eslint-plugin-vue", "vue-eslint-parser"], () => {
10
+ const eslintPluginVue = (0, module_js_1.requireFromCwd)("eslint-plugin-vue");
11
+ return [
12
+ ...eslintPluginVue.configs["flat/recommended"],
13
+ {
14
+ files: _vue_js_1.vueFiles,
15
+ rules: {
16
+ ..._vue_js_1.vueExtendRules,
17
+ },
18
+ },
19
+ ];
20
+ }, (missingList) => [
21
+ {
22
+ files: _vue_js_1.vueFiles,
23
+ languageOptions: {
24
+ parser: any_parser_js_1.anyParser,
25
+ },
26
+ ...(0, fallback_js_1.buildFallback)(missingList),
27
+ },
28
+ ]);
29
+ }
30
+ exports.buildVue3 = buildVue3;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildYaml(): Linter.FlatConfig<Linter.RulesRecord>[];
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildYaml = void 0;
4
+ const _yaml_js_1 = require("../config-helpers/+yaml.js");
5
+ const module_js_1 = require("../utils/module.js");
6
+ const json_schema_js_1 = require("./plugins/json-schema.js");
7
+ const any_parser_js_1 = require("../parsers/any-parser.js");
8
+ const fallback_js_1 = require("./fallback.js");
9
+ function buildYaml() {
10
+ return (0, module_js_1.requireOf)(["eslint-plugin-yml"], () => {
11
+ const eslintPluginYml = (0, module_js_1.requireFromCwd)("eslint-plugin-yml");
12
+ return [
13
+ ...eslintPluginYml.configs["flat/standard"],
14
+ ...(0, json_schema_js_1.buildJsonSchema)(_yaml_js_1.yamlFiles),
15
+ {
16
+ files: _yaml_js_1.yamlFiles,
17
+ rules: {
18
+ ..._yaml_js_1.yamlExtendRules,
19
+ },
20
+ },
21
+ ];
22
+ }, (missingList) => [
23
+ {
24
+ files: _yaml_js_1.yamlFiles,
25
+ languageOptions: {
26
+ parser: any_parser_js_1.anyParser,
27
+ },
28
+ ...(0, fallback_js_1.buildFallback)(missingList),
29
+ },
30
+ ]);
31
+ }
32
+ exports.buildYaml = buildYaml;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare function buildESLintComments(): Linter.FlatConfig<Linter.RulesRecord>[];