@eienjs/eslint-config 1.4.1 → 1.5.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.
- package/dist/cli/{constants_generated.js → constants_generated.mjs} +3 -3
- package/dist/cli/{index.js → index.mjs} +2 -2
- package/dist/cli/{run.js → run.mjs} +5 -5
- package/dist/cli/stages/{update_eslint_files.js → update_eslint_files.mjs} +1 -1
- package/dist/cli/stages/{update_package_json.js → update_package_json.mjs} +3 -3
- package/dist/cli/stages/{update_vscode_settings.js → update_vscode_settings.mjs} +1 -1
- package/dist/configs/{adonisjs.d.ts → adonisjs.d.mts} +1 -1
- package/dist/configs/{adonisjs.js → adonisjs.mjs} +7 -4
- package/dist/configs/{astro.d.ts → astro.d.mts} +1 -1
- package/dist/configs/{astro.js → astro.mjs} +2 -2
- package/dist/configs/{command.d.ts → command.d.mts} +1 -1
- package/dist/configs/{comments.d.ts → comments.d.mts} +1 -1
- package/dist/configs/{comments.js → comments.mjs} +1 -1
- package/dist/configs/{disables.d.ts → disables.d.mts} +1 -1
- package/dist/configs/{disables.js → disables.mjs} +1 -1
- package/dist/configs/{formatters.d.ts → formatters.d.mts} +1 -1
- package/dist/configs/{formatters.js → formatters.mjs} +3 -3
- package/dist/configs/ignores.d.mts +6 -0
- package/dist/configs/ignores.mjs +14 -0
- package/dist/configs/{imports.d.ts → imports.d.mts} +1 -1
- package/dist/configs/{imports.js → imports.mjs} +1 -1
- package/dist/configs/index.d.mts +26 -0
- package/dist/configs/index.mjs +27 -0
- package/dist/configs/{javascript.d.ts → javascript.d.mts} +1 -1
- package/dist/configs/{javascript.js → javascript.mjs} +1 -1
- package/dist/configs/{jsdoc.d.ts → jsdoc.d.mts} +1 -1
- package/dist/configs/{jsdoc.js → jsdoc.mjs} +1 -1
- package/dist/configs/{jsonc.d.ts → jsonc.d.mts} +1 -1
- package/dist/configs/{jsonc.js → jsonc.mjs} +2 -2
- package/dist/configs/{markdown.d.ts → markdown.d.mts} +1 -1
- package/dist/configs/{markdown.js → markdown.mjs} +2 -2
- package/dist/configs/{node.d.ts → node.d.mts} +1 -1
- package/dist/configs/{node.js → node.mjs} +1 -1
- package/dist/configs/{nuxt.d.ts → nuxt.d.mts} +1 -1
- package/dist/configs/{nuxt.js → nuxt.mjs} +2 -2
- package/dist/configs/{perfectionist.d.ts → perfectionist.d.mts} +1 -1
- package/dist/configs/{perfectionist.js → perfectionist.mjs} +1 -1
- package/dist/configs/{pnpm.d.ts → pnpm.d.mts} +1 -1
- package/dist/configs/{pnpm.js → pnpm.mjs} +1 -1
- package/dist/configs/{regexp.d.ts → regexp.d.mts} +1 -1
- package/dist/configs/{sort.d.ts → sort.d.mts} +1 -1
- package/dist/configs/{stylistic.d.ts → stylistic.d.mts} +1 -1
- package/dist/configs/{stylistic.js → stylistic.mjs} +2 -2
- package/dist/configs/{test.d.ts → test.d.mts} +1 -1
- package/dist/configs/{test.js → test.mjs} +2 -2
- package/dist/configs/{toml.d.ts → toml.d.mts} +1 -1
- package/dist/configs/{toml.js → toml.mjs} +2 -2
- package/dist/configs/{typescript.d.ts → typescript.d.mts} +1 -1
- package/dist/configs/{typescript.js → typescript.mjs} +4 -3
- package/dist/configs/{unicorn.d.ts → unicorn.d.mts} +1 -1
- package/dist/configs/{unicorn.js → unicorn.mjs} +2 -2
- package/dist/configs/{vue.d.ts → vue.d.mts} +1 -1
- package/dist/configs/{vue.js → vue.mjs} +2 -2
- package/dist/configs/{yaml.d.ts → yaml.d.mts} +1 -1
- package/dist/configs/{yaml.js → yaml.mjs} +2 -2
- package/dist/{factory.d.ts → factory.d.mts} +2 -2
- package/dist/{factory.js → factory.mjs} +29 -29
- package/dist/{index.d.ts → index.d.mts} +5 -5
- package/dist/{index.js → index.mjs} +3 -3
- package/dist/package.mjs +5 -0
- package/dist/{typegen.d.ts → typegen.d.mts} +344 -145
- package/dist/{types.d.ts → types.d.mts} +11 -2
- package/dist/{utils.d.ts → utils.d.mts} +1 -1
- package/package.json +29 -33
- package/dist/configs/ignores.d.ts +0 -6
- package/dist/configs/ignores.js +0 -12
- package/dist/configs/index.d.ts +0 -26
- package/dist/configs/index.js +0 -27
- package/dist/package.js +0 -5
- /package/dist/cli/{constants.js → constants.mjs} +0 -0
- /package/dist/cli/{index.d.ts → index.d.mts} +0 -0
- /package/dist/cli/{utils.js → utils.mjs} +0 -0
- /package/dist/configs/{command.js → command.mjs} +0 -0
- /package/dist/configs/{regexp.js → regexp.mjs} +0 -0
- /package/dist/configs/{sort.js → sort.mjs} +0 -0
- /package/dist/{globs.d.ts → globs.d.mts} +0 -0
- /package/dist/{globs.js → globs.mjs} +0 -0
- /package/dist/{plugins.js → plugins.mjs} +0 -0
- /package/dist/{utils.js → utils.mjs} +0 -0
- /package/dist/vendored/{prettier_types.d.ts → prettier_types.d.mts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region src/cli/constants_generated.ts
|
|
2
2
|
const versionsMap = {
|
|
3
3
|
"@adonisjs/eslint-plugin": "^2.0.1",
|
|
4
|
-
"@nuxt/eslint-plugin": "^1.
|
|
4
|
+
"@nuxt/eslint-plugin": "^1.10.0",
|
|
5
5
|
"astro-eslint-parser": "^1.2.2",
|
|
6
|
-
"eslint": "^9.
|
|
7
|
-
"eslint-plugin-astro": "^1.
|
|
6
|
+
"eslint": "^9.39.1",
|
|
7
|
+
"eslint-plugin-astro": "^1.4.0",
|
|
8
8
|
"eslint-plugin-format": "^1.0.2",
|
|
9
9
|
"prettier-plugin-astro": "^0.14.1"
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { extra, extraOptions, frameworkOptions, frameworks } from "./constants.
|
|
2
|
-
import { isGitClean } from "./utils.
|
|
3
|
-
import { updateEslintFiles } from "./stages/update_eslint_files.
|
|
4
|
-
import { updatePackageJson } from "./stages/update_package_json.
|
|
5
|
-
import { updateVscodeSettings } from "./stages/update_vscode_settings.
|
|
1
|
+
import { extra, extraOptions, frameworkOptions, frameworks } from "./constants.mjs";
|
|
2
|
+
import { isGitClean } from "./utils.mjs";
|
|
3
|
+
import { updateEslintFiles } from "./stages/update_eslint_files.mjs";
|
|
4
|
+
import { updatePackageJson } from "./stages/update_package_json.mjs";
|
|
5
|
+
import { updateVscodeSettings } from "./stages/update_vscode_settings.mjs";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import * as p from "@clack/prompts";
|
|
8
8
|
import c from "ansis";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { version } from "../../package.
|
|
2
|
-
import { dependenciesMap } from "../constants.
|
|
3
|
-
import { versionsMap } from "../constants_generated.
|
|
1
|
+
import { version } from "../../package.mjs";
|
|
2
|
+
import { dependenciesMap } from "../constants.mjs";
|
|
3
|
+
import { versionsMap } from "../constants_generated.mjs";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import * as p from "@clack/prompts";
|
|
6
6
|
import c from "ansis";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GLOB_SRC_EXT } from "../globs.
|
|
2
|
-
import { ensurePackages, interopDefault } from "../utils.
|
|
1
|
+
import { GLOB_SRC_EXT } from "../globs.mjs";
|
|
2
|
+
import { ensurePackages, interopDefault } from "../utils.mjs";
|
|
3
3
|
import { join } from "pathe";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/adonisjs.ts
|
|
@@ -85,7 +85,8 @@ async function adonisjs(options = {}) {
|
|
|
85
85
|
name: "eienjs/adonisjs/controllers-disables",
|
|
86
86
|
rules: {
|
|
87
87
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
88
|
-
"@typescript-eslint/explicit-module-boundary-types": "off"
|
|
88
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
89
|
+
"@typescript-eslint/require-await": "off"
|
|
89
90
|
}
|
|
90
91
|
},
|
|
91
92
|
{
|
|
@@ -105,7 +106,9 @@ async function adonisjs(options = {}) {
|
|
|
105
106
|
"@typescript-eslint/unbound-method": "off",
|
|
106
107
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
107
108
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
108
|
-
"@typescript-eslint/no-unsafe-assignment": "off"
|
|
109
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
110
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
111
|
+
"@typescript-eslint/no-unsafe-return": "off"
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
114
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/astro.d.ts
|
|
4
4
|
declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GLOB_ASTRO, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_SRC, GLOB_SRC_EXT, GLOB_TOML, GLOB_YAML } from "../globs.
|
|
1
|
+
import { GLOB_ASTRO, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_SRC, GLOB_SRC_EXT, GLOB_TOML, GLOB_YAML } from "../globs.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/disables.ts
|
|
4
4
|
function disables() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsFormatters, StylisticConfig, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsFormatters, StylisticConfig, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/formatters.d.ts
|
|
4
4
|
declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_HTML, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SVG, GLOB_XML } from "../globs.
|
|
2
|
-
import { ensurePackages, interopDefault, isPackageInScope, parserPlain } from "../utils.
|
|
3
|
-
import { StylisticConfigDefaults } from "./stylistic.
|
|
1
|
+
import { GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_HTML, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SVG, GLOB_XML } from "../globs.mjs";
|
|
2
|
+
import { ensurePackages, interopDefault, isPackageInScope, parserPlain } from "../utils.mjs";
|
|
3
|
+
import { StylisticConfigDefaults } from "./stylistic.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/formatters.ts
|
|
6
6
|
function mergePrettierOptions(options, overrides = {}) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GLOB_EXCLUDE } from "../globs.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/configs/ignores.ts
|
|
4
|
+
function ignores(userIgnores = []) {
|
|
5
|
+
let ignores$1 = [...GLOB_EXCLUDE];
|
|
6
|
+
ignores$1 = typeof userIgnores === "function" ? userIgnores(ignores$1) : [...ignores$1, ...userIgnores];
|
|
7
|
+
return [{
|
|
8
|
+
ignores: ignores$1,
|
|
9
|
+
name: "eienjs/ignores"
|
|
10
|
+
}];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ignores };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/imports.d.ts
|
|
4
4
|
declare function imports(options?: OptionsOverrides & OptionsStylistic): TypedFlatConfigItem[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { adonisjs } from "./adonisjs.mjs";
|
|
2
|
+
import { astro } from "./astro.mjs";
|
|
3
|
+
import { command } from "./command.mjs";
|
|
4
|
+
import { comments } from "./comments.mjs";
|
|
5
|
+
import { disables } from "./disables.mjs";
|
|
6
|
+
import { formatters } from "./formatters.mjs";
|
|
7
|
+
import { ignores } from "./ignores.mjs";
|
|
8
|
+
import { imports } from "./imports.mjs";
|
|
9
|
+
import { javascript } from "./javascript.mjs";
|
|
10
|
+
import { jsdoc } from "./jsdoc.mjs";
|
|
11
|
+
import { jsonc } from "./jsonc.mjs";
|
|
12
|
+
import { markdown } from "./markdown.mjs";
|
|
13
|
+
import { node } from "./node.mjs";
|
|
14
|
+
import { nuxt } from "./nuxt.mjs";
|
|
15
|
+
import { perfectionist } from "./perfectionist.mjs";
|
|
16
|
+
import { pnpm } from "./pnpm.mjs";
|
|
17
|
+
import { regexp } from "./regexp.mjs";
|
|
18
|
+
import { sortPackageJson, sortTsconfig } from "./sort.mjs";
|
|
19
|
+
import { StylisticConfigDefaults, StylisticOptions, stylistic } from "./stylistic.mjs";
|
|
20
|
+
import { test } from "./test.mjs";
|
|
21
|
+
import { toml } from "./toml.mjs";
|
|
22
|
+
import { typescript } from "./typescript.mjs";
|
|
23
|
+
import { unicorn } from "./unicorn.mjs";
|
|
24
|
+
import { vue } from "./vue.mjs";
|
|
25
|
+
import { yaml } from "./yaml.mjs";
|
|
26
|
+
export { StylisticConfigDefaults, StylisticOptions, adonisjs, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, nuxt, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { adonisjs } from "./adonisjs.mjs";
|
|
2
|
+
import { astro } from "./astro.mjs";
|
|
3
|
+
import { command } from "./command.mjs";
|
|
4
|
+
import { comments } from "./comments.mjs";
|
|
5
|
+
import { disables } from "./disables.mjs";
|
|
6
|
+
import { StylisticConfigDefaults, stylistic } from "./stylistic.mjs";
|
|
7
|
+
import { formatters } from "./formatters.mjs";
|
|
8
|
+
import { ignores } from "./ignores.mjs";
|
|
9
|
+
import { imports } from "./imports.mjs";
|
|
10
|
+
import { javascript } from "./javascript.mjs";
|
|
11
|
+
import { jsdoc } from "./jsdoc.mjs";
|
|
12
|
+
import { jsonc } from "./jsonc.mjs";
|
|
13
|
+
import { markdown } from "./markdown.mjs";
|
|
14
|
+
import { node } from "./node.mjs";
|
|
15
|
+
import { nuxt } from "./nuxt.mjs";
|
|
16
|
+
import { perfectionist } from "./perfectionist.mjs";
|
|
17
|
+
import { pnpm } from "./pnpm.mjs";
|
|
18
|
+
import { regexp } from "./regexp.mjs";
|
|
19
|
+
import { sortPackageJson, sortTsconfig } from "./sort.mjs";
|
|
20
|
+
import { test } from "./test.mjs";
|
|
21
|
+
import { toml } from "./toml.mjs";
|
|
22
|
+
import { typescript } from "./typescript.mjs";
|
|
23
|
+
import { unicorn } from "./unicorn.mjs";
|
|
24
|
+
import { vue } from "./vue.mjs";
|
|
25
|
+
import { yaml } from "./yaml.mjs";
|
|
26
|
+
|
|
27
|
+
export { StylisticConfigDefaults, adonisjs, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, nuxt, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsIsInEditor, OptionsOverrides, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsIsInEditor, OptionsOverrides, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/javascript.d.ts
|
|
4
4
|
declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): TypedFlatConfigItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/jsonc.d.ts
|
|
4
4
|
declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from "../globs.
|
|
2
|
-
import { interopDefault } from "../utils.
|
|
1
|
+
import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from "../globs.mjs";
|
|
2
|
+
import { interopDefault } from "../utils.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/jsonc.ts
|
|
5
5
|
async function jsonc(options = {}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsComponentExts, OptionsFiles, OptionsOverrides, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsComponentExts, OptionsFiles, OptionsOverrides, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/markdown.d.ts
|
|
4
4
|
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN } from "../globs.
|
|
2
|
-
import { interopDefault, parserPlain } from "../utils.
|
|
1
|
+
import { GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN } from "../globs.mjs";
|
|
2
|
+
import { interopDefault, parserPlain } from "../utils.mjs";
|
|
3
3
|
import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/markdown.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsNuxt, OptionsStylistic, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsNuxt, OptionsStylistic, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/nuxt.d.ts
|
|
4
4
|
declare function nuxt(options?: OptionsNuxt & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GLOB_EXTS, GLOB_SRC, GLOB_VUE } from "../globs.
|
|
2
|
-
import { ensurePackages, interopDefault } from "../utils.
|
|
1
|
+
import { GLOB_EXTS, GLOB_SRC, GLOB_VUE } from "../globs.mjs";
|
|
2
|
+
import { ensurePackages, interopDefault } from "../utils.mjs";
|
|
3
3
|
import { join } from "pathe";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/nuxt.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsOverrides, OptionsRegExp, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsOverrides, OptionsRegExp, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/regexp.d.ts
|
|
4
4
|
declare function regexp(options?: OptionsRegExp & OptionsOverrides): TypedFlatConfigItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsOverrides, StylisticConfig, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsOverrides, StylisticConfig, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/stylistic.d.ts
|
|
4
4
|
declare const StylisticConfigDefaults: StylisticConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsFiles, OptionsIsInEditor, OptionsOverrides, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsFiles, OptionsIsInEditor, OptionsOverrides, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/test.d.ts
|
|
4
4
|
declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/toml.d.ts
|
|
4
4
|
declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsComponentExts, OptionsFiles, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescriptWithErasableSyntaxOnly, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsComponentExts, OptionsFiles, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescriptWithErasableSyntaxOnly, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/typescript.d.ts
|
|
4
4
|
declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsTypescriptWithErasableSyntaxOnly & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from "../globs.
|
|
2
|
-
import { ensurePackages, interopDefault } from "../utils.
|
|
3
|
-
import { pluginAntfu } from "../plugins.
|
|
1
|
+
import { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX, GLOB_VUE } from "../globs.mjs";
|
|
2
|
+
import { ensurePackages, interopDefault } from "../utils.mjs";
|
|
3
|
+
import { pluginAntfu } from "../plugins.mjs";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
|
|
6
6
|
//#region src/configs/typescript.ts
|
|
@@ -9,6 +9,7 @@ async function typescript(options = {}) {
|
|
|
9
9
|
const files = options.files ?? [
|
|
10
10
|
GLOB_TS,
|
|
11
11
|
GLOB_TSX,
|
|
12
|
+
GLOB_VUE,
|
|
12
13
|
...componentExts.map((ext) => `**/*.${ext}`)
|
|
13
14
|
];
|
|
14
15
|
const filesTypeAware = options.filesTypeAware ?? [GLOB_TS, GLOB_TSX];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsFiles, OptionsHasTypeScript, OptionsOverrides, OptionsStylistic, OptionsVue, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsFiles, OptionsHasTypeScript, OptionsOverrides, OptionsStylistic, OptionsVue, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/vue.d.ts
|
|
4
4
|
declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GLOB_SRC, GLOB_VUE } from "../globs.
|
|
2
|
-
import { interopDefault } from "../utils.
|
|
1
|
+
import { GLOB_SRC, GLOB_VUE } from "../globs.mjs";
|
|
2
|
+
import { interopDefault } from "../utils.mjs";
|
|
3
3
|
import { mergeProcessors } from "eslint-merge-processors";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/vue.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.
|
|
1
|
+
import { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/configs/yaml.d.ts
|
|
4
4
|
declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigNames, RuleOptions } from "./typegen.
|
|
2
|
-
import { OptionsConfig, TypedFlatConfigItem } from "./types.
|
|
1
|
+
import { ConfigNames, RuleOptions } from "./typegen.mjs";
|
|
2
|
+
import { OptionsConfig, TypedFlatConfigItem } from "./types.mjs";
|
|
3
3
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
4
4
|
import { Linter } from "eslint";
|
|
5
5
|
|