@jsse/eslint-config 0.4.9 → 0.4.12
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/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/dist/cli.js +10 -6
- package/dist/index.d.ts +22 -3
- package/dist/index.js +60 -148
- package/dist/version-BbraMghN.js +39 -0
- package/package.json +18 -15
- package/dist/esm/cli.d.ts +0 -1
- package/dist/esm/cli.js +0 -121
- package/dist/esm/config-fns.d.ts +0 -138
- package/dist/esm/config-fns.js +0 -161
- package/dist/esm/configs/antfu.d.ts +0 -4
- package/dist/esm/configs/antfu.js +0 -30
- package/dist/esm/configs/command.d.ts +0 -10
- package/dist/esm/configs/command.js +0 -17
- package/dist/esm/configs/de-morgan.d.ts +0 -2
- package/dist/esm/configs/de-morgan.js +0 -9
- package/dist/esm/configs/eslint-comments.d.ts +0 -2
- package/dist/esm/configs/eslint-comments.js +0 -16
- package/dist/esm/configs/gql.d.ts +0 -2
- package/dist/esm/configs/gql.js +0 -4
- package/dist/esm/configs/ignores.d.ts +0 -2
- package/dist/esm/configs/ignores.js +0 -9
- package/dist/esm/configs/imports.d.ts +0 -2
- package/dist/esm/configs/imports.js +0 -28
- package/dist/esm/configs/javascript.d.ts +0 -6
- package/dist/esm/configs/javascript.js +0 -262
- package/dist/esm/configs/jsdoc.d.ts +0 -2
- package/dist/esm/configs/jsdoc.js +0 -31
- package/dist/esm/configs/jsonc.d.ts +0 -4
- package/dist/esm/configs/jsonc.js +0 -76
- package/dist/esm/configs/markdown.d.ts +0 -4
- package/dist/esm/configs/markdown.js +0 -122
- package/dist/esm/configs/n.d.ts +0 -2
- package/dist/esm/configs/n.js +0 -21
- package/dist/esm/configs/no-only-tests.d.ts +0 -4
- package/dist/esm/configs/no-only-tests.js +0 -31
- package/dist/esm/configs/perfectionist.d.ts +0 -7
- package/dist/esm/configs/perfectionist.js +0 -60
- package/dist/esm/configs/pnpm.d.ts +0 -2
- package/dist/esm/configs/pnpm.js +0 -34
- package/dist/esm/configs/prettier.d.ts +0 -7
- package/dist/esm/configs/prettier.js +0 -126
- package/dist/esm/configs/react.d.ts +0 -6
- package/dist/esm/configs/react.js +0 -300
- package/dist/esm/configs/sort-package-json.d.ts +0 -7
- package/dist/esm/configs/sort-package-json.js +0 -102
- package/dist/esm/configs/sort-tsconfig.d.ts +0 -14
- package/dist/esm/configs/sort-tsconfig.js +0 -135
- package/dist/esm/configs/stylistic.d.ts +0 -2
- package/dist/esm/configs/stylistic.js +0 -39
- package/dist/esm/configs/tailwind.d.ts +0 -1
- package/dist/esm/configs/tailwind.js +0 -81
- package/dist/esm/configs/toml.d.ts +0 -2
- package/dist/esm/configs/toml.js +0 -50
- package/dist/esm/configs/ts/parser.d.ts +0 -7
- package/dist/esm/configs/ts/parser.js +0 -71
- package/dist/esm/configs/ts/requires-type-checking.d.ts +0 -1
- package/dist/esm/configs/ts/requires-type-checking.js +0 -61
- package/dist/esm/configs/ts/typescript-language-options.d.ts +0 -2
- package/dist/esm/configs/ts/typescript-language-options.js +0 -22
- package/dist/esm/configs/ts/typescript-rules.d.ts +0 -11
- package/dist/esm/configs/ts/typescript-rules.js +0 -379
- package/dist/esm/configs/ts/typescript.d.ts +0 -4
- package/dist/esm/configs/ts/typescript.js +0 -123
- package/dist/esm/configs/tsdoc.d.ts +0 -2
- package/dist/esm/configs/tsdoc.js +0 -16
- package/dist/esm/configs/unicorn.d.ts +0 -2
- package/dist/esm/configs/unicorn.js +0 -114
- package/dist/esm/configs/vitest.d.ts +0 -4
- package/dist/esm/configs/vitest.js +0 -29
- package/dist/esm/configs/yml.d.ts +0 -4
- package/dist/esm/configs/yml.js +0 -51
- package/dist/esm/const.d.ts +0 -5
- package/dist/esm/const.js +0 -25
- package/dist/esm/define-config.d.ts +0 -7
- package/dist/esm/define-config.js +0 -256
- package/dist/esm/dev.d.ts +0 -4
- package/dist/esm/dev.js +0 -25
- package/dist/esm/fixable.d.ts +0 -2
- package/dist/esm/fixable.js +0 -4
- package/dist/esm/generated/fixable-rules-map.d.ts +0 -2
- package/dist/esm/generated/fixable-rules-map.js +0 -443
- package/dist/esm/generated/version.d.ts +0 -1
- package/dist/esm/generated/version.js +0 -1
- package/dist/esm/globs.d.ts +0 -25
- package/dist/esm/globs.js +0 -73
- package/dist/esm/index.d.ts +0 -9
- package/dist/esm/index.js +0 -8
- package/dist/esm/lager.d.ts +0 -32
- package/dist/esm/lager.js +0 -87
- package/dist/esm/log.d.ts +0 -2
- package/dist/esm/log.js +0 -2
- package/dist/esm/plugins-all.d.ts +0 -26
- package/dist/esm/plugins-all.js +0 -120
- package/dist/esm/plugins.d.ts +0 -1570
- package/dist/esm/plugins.js +0 -97
- package/dist/esm/presets.d.ts +0 -18
- package/dist/esm/presets.js +0 -75
- package/dist/esm/types.d.ts +0 -287
- package/dist/esm/types.js +0 -1
- package/dist/esm/utils.d.ts +0 -51
- package/dist/esm/utils.js +0 -156
- package/dist/version-DNhPWuQE.js +0 -5
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { GLOB_TESTS } from "../globs.js";
|
|
2
|
-
import { interopDefault } from "../utils.js";
|
|
3
|
-
export const vitest = async (options = {}) => {
|
|
4
|
-
const { overrides = {} } = options;
|
|
5
|
-
const pluginVitest = await interopDefault(import("@vitest/eslint-plugin"));
|
|
6
|
-
return [
|
|
7
|
-
{
|
|
8
|
-
name: "jsse/vitest/setup",
|
|
9
|
-
plugins: {
|
|
10
|
-
vitest: pluginVitest,
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
files: GLOB_TESTS,
|
|
15
|
-
name: "jsse/vitest/rules",
|
|
16
|
-
rules: {
|
|
17
|
-
"vitest/consistent-test-it": [
|
|
18
|
-
"error",
|
|
19
|
-
{ fn: "test", withinDescribe: "test" },
|
|
20
|
-
],
|
|
21
|
-
"vitest/no-duplicate-hooks": "error",
|
|
22
|
-
"vitest/no-identical-title": "error",
|
|
23
|
-
"vitest/prefer-hooks-in-order": "error",
|
|
24
|
-
"vitest/prefer-lowercase-title": "error",
|
|
25
|
-
...overrides,
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
|
-
};
|
package/dist/esm/configs/yml.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { GLOB_YAML } from "../globs.js";
|
|
2
|
-
import { interopDefault } from "../utils.js";
|
|
3
|
-
export const yml = async (options) => {
|
|
4
|
-
const { files = [GLOB_YAML], overrides = {}, stylistic = true, } = options ?? {};
|
|
5
|
-
const { indent = 2, quotes = "single" } = typeof stylistic === "boolean" ? {} : stylistic;
|
|
6
|
-
const [pluginYaml, parserYaml] = await Promise.all([
|
|
7
|
-
interopDefault(import("eslint-plugin-yml")),
|
|
8
|
-
interopDefault(import("yaml-eslint-parser")),
|
|
9
|
-
]);
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
name: "jsse/yaml/setup",
|
|
13
|
-
plugins: {
|
|
14
|
-
yaml: pluginYaml,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
files,
|
|
19
|
-
languageOptions: {
|
|
20
|
-
parser: parserYaml,
|
|
21
|
-
},
|
|
22
|
-
name: "jsse/yaml/rules",
|
|
23
|
-
rules: {
|
|
24
|
-
"style/spaced-comment": "off",
|
|
25
|
-
"yaml/block-mapping": "error",
|
|
26
|
-
"yaml/block-sequence": "error",
|
|
27
|
-
"yaml/no-empty-key": "error",
|
|
28
|
-
"yaml/no-empty-sequence-entry": "error",
|
|
29
|
-
"yaml/no-irregular-whitespace": "error",
|
|
30
|
-
"yaml/plain-scalar": "error",
|
|
31
|
-
"yaml/vue-custom-block/no-parsing-error": "error",
|
|
32
|
-
...(stylistic
|
|
33
|
-
? {
|
|
34
|
-
"yaml/block-mapping-question-indicator-newline": "error",
|
|
35
|
-
"yaml/block-sequence-hyphen-indicator-newline": "error",
|
|
36
|
-
"yaml/flow-mapping-curly-newline": "error",
|
|
37
|
-
"yaml/flow-mapping-curly-spacing": "error",
|
|
38
|
-
"yaml/flow-sequence-bracket-newline": "error",
|
|
39
|
-
"yaml/flow-sequence-bracket-spacing": "error",
|
|
40
|
-
"yaml/indent": ["error", indent === "tab" ? 2 : indent],
|
|
41
|
-
"yaml/key-spacing": "error",
|
|
42
|
-
"yaml/no-tab-indent": "error",
|
|
43
|
-
"yaml/quotes": ["error", { avoidEscape: false, prefer: quotes }],
|
|
44
|
-
"yaml/spaced-comment": "error",
|
|
45
|
-
}
|
|
46
|
-
: {}),
|
|
47
|
-
...overrides,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
];
|
|
51
|
-
};
|
package/dist/esm/const.d.ts
DELETED
package/dist/esm/const.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CONSTANTS LISTS AND REFERENCES OH MY!
|
|
3
|
-
*/
|
|
4
|
-
// @keep-sorted
|
|
5
|
-
export const SLOW_RULES = [
|
|
6
|
-
"@typescript-eslint/no-misused-promises",
|
|
7
|
-
"@typescript-eslint/no-redeclare",
|
|
8
|
-
"@typescript-eslint/no-unsafe-assignment",
|
|
9
|
-
"@typescript-eslint/no-unsafe-call",
|
|
10
|
-
"@typescript-eslint/no-unsafe-member-access",
|
|
11
|
-
"@typescript-eslint/no-unsafe-return",
|
|
12
|
-
"import/no-duplicates",
|
|
13
|
-
"jsdoc/check-access",
|
|
14
|
-
"jsdoc/check-alignment",
|
|
15
|
-
"jsdoc/check-property-names",
|
|
16
|
-
"jsdoc/check-types",
|
|
17
|
-
"jsdoc/empty-tags",
|
|
18
|
-
"jsdoc/multiline-blocks",
|
|
19
|
-
"jsdoc/no-multi-asterisks",
|
|
20
|
-
"jsdoc/require-property-description",
|
|
21
|
-
"jsdoc/require-property-name",
|
|
22
|
-
"jsdoc/require-property",
|
|
23
|
-
"unicorn/expiring-todo-comments",
|
|
24
|
-
"unicorn/no-unnecessary-polyfills",
|
|
25
|
-
];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Config, OptionsConfig } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Construct an array of ESLint flat config items.
|
|
4
|
-
*/
|
|
5
|
-
export declare function jsse(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;
|
|
6
|
-
export declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;
|
|
7
|
-
export type DefineConfig = typeof defineConfig;
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import process from "node:process";
|
|
3
|
-
import { isPackageExists } from "local-pkg";
|
|
4
|
-
import { antfu, command, deMorgan, eslintComments, ignores, imports, javascript, jsdoc, jsonc, markdown, n, noOnlyTests, perfectionist, pnpm, prettier, react, sortPackageJson, sortTsconfig, stylistic, tsdoc, typescript, unicorn, vitest, yml, } from "./config-fns.js";
|
|
5
|
-
import { SLOW_RULES } from "./const.js";
|
|
6
|
-
import { log } from "./log.js";
|
|
7
|
-
import { combineAsync, interopDefault, isInEditor, turnOffRules, } from "./utils.js";
|
|
8
|
-
const flatConfigProps = [
|
|
9
|
-
"files",
|
|
10
|
-
"ignores",
|
|
11
|
-
"languageOptions",
|
|
12
|
-
"linterOptions",
|
|
13
|
-
"processor",
|
|
14
|
-
"plugins",
|
|
15
|
-
"rules",
|
|
16
|
-
"settings",
|
|
17
|
-
];
|
|
18
|
-
const DEBUG = ["1", "true", "t", "on", "yes", "y"].includes(process.env.DEBUG ?? "");
|
|
19
|
-
function defaultOptions() {
|
|
20
|
-
const typescriptExists = isPackageExists("typescript");
|
|
21
|
-
return {
|
|
22
|
-
command: true,
|
|
23
|
-
componentExts: [],
|
|
24
|
-
debug: DEBUG && process.env.TEST !== "true",
|
|
25
|
-
fast: false,
|
|
26
|
-
gitignore: true,
|
|
27
|
-
isInEditor: isInEditor(),
|
|
28
|
-
jsonc: true,
|
|
29
|
-
markdown: false,
|
|
30
|
-
off: [],
|
|
31
|
-
overrides: {},
|
|
32
|
-
pnpm: false,
|
|
33
|
-
prettier: true,
|
|
34
|
-
react: false,
|
|
35
|
-
reportUnusedDisableDirectives: true,
|
|
36
|
-
rootId: "jsse",
|
|
37
|
-
stylistic: true,
|
|
38
|
-
test: true,
|
|
39
|
-
tsPrefix: "@typescript-eslint",
|
|
40
|
-
typeAware: false,
|
|
41
|
-
typescript: typescriptExists,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function normalizeOptions(options = {}) {
|
|
45
|
-
const off = [
|
|
46
|
-
...new Set([
|
|
47
|
-
...(options.off ?? []),
|
|
48
|
-
...(options.fast ? [...SLOW_RULES] : []),
|
|
49
|
-
]),
|
|
50
|
-
].sort((a, b) =>
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
52
|
-
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }));
|
|
53
|
-
const stylisticOptions = options.stylistic === false
|
|
54
|
-
? false
|
|
55
|
-
: typeof options.stylistic === "object"
|
|
56
|
-
? options.stylistic
|
|
57
|
-
: {};
|
|
58
|
-
if (stylisticOptions && !("jsx" in stylisticOptions)) {
|
|
59
|
-
stylisticOptions.jsx = options.jsx ?? true;
|
|
60
|
-
}
|
|
61
|
-
const defaults = defaultOptions();
|
|
62
|
-
return {
|
|
63
|
-
...defaults,
|
|
64
|
-
typeAware: options.typeAware ?? defaults.typeAware,
|
|
65
|
-
...options,
|
|
66
|
-
off,
|
|
67
|
-
reportUnusedDisableDirectives: options.reportUnusedDisableDirectives ?? !options.fast,
|
|
68
|
-
stylistic: stylisticOptions,
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Construct an array of ESLint flat config items.
|
|
73
|
-
*/
|
|
74
|
-
export async function jsse(options = {}, ...userConfigs) {
|
|
75
|
-
const normalizedOptions = normalizeOptions(options);
|
|
76
|
-
const { command: enableCommand, componentExts, debug, gitignore: enableGitignore, isInEditor, jsonc: enableJsonc, markdown: enableMarkdown, off, overrides = {}, pnpm: enablePnpm, prettier: enablePrettier, react: enableReact, reportUnusedDisableDirectives, rootId, // default to "jsse"
|
|
77
|
-
stylistic: stylisticOptions, tailwind: tailwindOptions, test: enableTest, tsPrefix, typeAware, typescript: typescriptOptions, yaml: enableYaml, } = normalizedOptions;
|
|
78
|
-
if (debug || process.argv.includes("--debug")) {
|
|
79
|
-
log.level = "debug";
|
|
80
|
-
}
|
|
81
|
-
log.debug("@jsse/eslint-config debug=true");
|
|
82
|
-
log.debug("@jsse/eslint-config isInEditor", isInEditor);
|
|
83
|
-
log.debug("@jsse/eslint-config enableTypeScript", typescriptOptions);
|
|
84
|
-
log.debug("@jsse/eslint-config normalizedOptions", normalizedOptions);
|
|
85
|
-
const configs = [];
|
|
86
|
-
if (enableGitignore) {
|
|
87
|
-
if (typeof enableGitignore === "boolean") {
|
|
88
|
-
if (fs.existsSync(".gitignore")) {
|
|
89
|
-
configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => {
|
|
90
|
-
const res = r();
|
|
91
|
-
log.debug("Using eslint-config-flat-gitignore", res);
|
|
92
|
-
return [res];
|
|
93
|
-
}));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => {
|
|
98
|
-
log.debug("Using eslint-config-flat-gitignore", r);
|
|
99
|
-
const res = r(enableGitignore);
|
|
100
|
-
log.debug("Using eslint-config-flat-gitignore", res);
|
|
101
|
-
return [res];
|
|
102
|
-
}));
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
// Base configs
|
|
106
|
-
configs.push(ignores(), javascript({
|
|
107
|
-
isInEditor,
|
|
108
|
-
overrides: overrides.javascript,
|
|
109
|
-
reportUnusedDisableDirectives,
|
|
110
|
-
}), eslintComments(), n(), jsdoc(), imports({
|
|
111
|
-
stylistic: stylisticOptions,
|
|
112
|
-
}), unicorn(), antfu(), perfectionist(), deMorgan());
|
|
113
|
-
/**
|
|
114
|
-
* =========================================================================
|
|
115
|
-
* COMMAND
|
|
116
|
-
* ========================================================================
|
|
117
|
-
*/
|
|
118
|
-
if (enableCommand) {
|
|
119
|
-
configs.push(command());
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* =========================================================================
|
|
123
|
-
* PNPM
|
|
124
|
-
* ========================================================================
|
|
125
|
-
*/
|
|
126
|
-
if (enablePnpm) {
|
|
127
|
-
configs.push(pnpm());
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* =========================================================================
|
|
131
|
-
* TYPESCRIPT
|
|
132
|
-
* ========================================================================
|
|
133
|
-
*/
|
|
134
|
-
if (typescriptOptions) {
|
|
135
|
-
const tscfg = typescript({
|
|
136
|
-
...(typeof typescriptOptions === "boolean" ? {} : typescriptOptions),
|
|
137
|
-
componentExts,
|
|
138
|
-
overrides: overrides.typescript,
|
|
139
|
-
prefix: {
|
|
140
|
-
from: "@typescript-eslint",
|
|
141
|
-
to: tsPrefix ?? "@typescript-eslint",
|
|
142
|
-
},
|
|
143
|
-
react: enableReact,
|
|
144
|
-
typeAware,
|
|
145
|
-
});
|
|
146
|
-
configs.push(tscfg, tsdoc());
|
|
147
|
-
}
|
|
148
|
-
if (enableMarkdown) {
|
|
149
|
-
configs.push(markdown());
|
|
150
|
-
}
|
|
151
|
-
if (enableYaml) {
|
|
152
|
-
const ymlConfig = yml();
|
|
153
|
-
configs.push(ymlConfig);
|
|
154
|
-
}
|
|
155
|
-
if (enableReact) {
|
|
156
|
-
configs.push(react({
|
|
157
|
-
// use react refresh if not explicitly disabled w/ 'false'
|
|
158
|
-
reactRefresh: normalizedOptions.reactRefresh !== false,
|
|
159
|
-
}));
|
|
160
|
-
}
|
|
161
|
-
if (enablePrettier) {
|
|
162
|
-
configs.push(prettier());
|
|
163
|
-
}
|
|
164
|
-
if (stylisticOptions) {
|
|
165
|
-
configs.push(stylistic(stylisticOptions === true ? {} : stylisticOptions));
|
|
166
|
-
}
|
|
167
|
-
if (enableTest) {
|
|
168
|
-
configs.push(vitest({
|
|
169
|
-
isInEditor,
|
|
170
|
-
overrides: overrides.test,
|
|
171
|
-
}), noOnlyTests({
|
|
172
|
-
isInEditor,
|
|
173
|
-
overrides: overrides.test,
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
if (enableJsonc ?? true) {
|
|
177
|
-
configs.push(jsonc({
|
|
178
|
-
overrides: overrides.jsonc,
|
|
179
|
-
stylistic: stylisticOptions,
|
|
180
|
-
}), sortPackageJson(), sortTsconfig({
|
|
181
|
-
extendTsconfigGlobs: normalizedOptions.extendTsconfigLintGlobs,
|
|
182
|
-
}));
|
|
183
|
-
}
|
|
184
|
-
if (tailwindOptions) {
|
|
185
|
-
console.error("Tailwind configuration is deprecate4d...");
|
|
186
|
-
}
|
|
187
|
-
if (normalizedOptions.prettier) {
|
|
188
|
-
configs.push(prettier());
|
|
189
|
-
}
|
|
190
|
-
// User can optionally pass a flat config item to the first argument
|
|
191
|
-
// We pick the known keys as ESLint would do schema validation
|
|
192
|
-
const fusedConfig = flatConfigProps.reduce((acc, key) => {
|
|
193
|
-
if (key in options) {
|
|
194
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
|
|
195
|
-
acc[key] = options[key];
|
|
196
|
-
}
|
|
197
|
-
return acc;
|
|
198
|
-
}, {});
|
|
199
|
-
if (Object.keys(fusedConfig).length > 0) {
|
|
200
|
-
configs.push([fusedConfig]);
|
|
201
|
-
}
|
|
202
|
-
const combinedConfigs = await combineAsync(...configs, ...userConfigs);
|
|
203
|
-
if (off && off.length > 0) {
|
|
204
|
-
turnOffRules(combinedConfigs, off);
|
|
205
|
-
}
|
|
206
|
-
if (rootId !== "jsse") {
|
|
207
|
-
for (const config of combinedConfigs) {
|
|
208
|
-
// replace 'jsse' with the custom rootId
|
|
209
|
-
if (config.name && config.name.startsWith("jsse/")) {
|
|
210
|
-
config.name = config.name.replace("jsse/", `${rootId}/`);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
// fix-ts-prefix for all configs and rules
|
|
215
|
-
for (const config of combinedConfigs) {
|
|
216
|
-
if (config.plugins) {
|
|
217
|
-
for (const [key, value] of Object.entries(config.plugins)) {
|
|
218
|
-
if (key.startsWith("@typescript-eslint/")) {
|
|
219
|
-
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
220
|
-
delete config.plugins[key];
|
|
221
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
222
|
-
config.plugins[`${tsPrefix}/${key.slice("@typescript-eslint/".length)}`] = value;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
if (config.rules) {
|
|
227
|
-
for (const [key, value] of Object.entries(config.rules)) {
|
|
228
|
-
if (key.startsWith("@typescript-eslint/")) {
|
|
229
|
-
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
230
|
-
delete config.rules[key];
|
|
231
|
-
config.rules[`${tsPrefix}/${key.slice("@typescript-eslint/".length)}`] = value;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
if (normalizedOptions.preReturn) {
|
|
237
|
-
log.debug("Running preReturn");
|
|
238
|
-
const preReturned = normalizedOptions.preReturn(combinedConfigs);
|
|
239
|
-
if (preReturned instanceof Promise) {
|
|
240
|
-
const res = await preReturned;
|
|
241
|
-
log.debug("preReturn finished");
|
|
242
|
-
log.debug("final config", res);
|
|
243
|
-
return res;
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
const res = preReturned;
|
|
247
|
-
log.debug("preReturn finished");
|
|
248
|
-
log.debug("final config", res);
|
|
249
|
-
return res;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
return combinedConfigs;
|
|
253
|
-
}
|
|
254
|
-
export async function defineConfig(options = {}, ...userConfigs) {
|
|
255
|
-
return jsse(options, ...userConfigs);
|
|
256
|
-
}
|
package/dist/esm/dev.d.ts
DELETED
package/dist/esm/dev.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DEV file
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* noop async fn...
|
|
6
|
-
*/
|
|
7
|
-
async function sleep0() {
|
|
8
|
-
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* dev main
|
|
12
|
-
*/
|
|
13
|
-
async function main() {
|
|
14
|
-
await sleep0();
|
|
15
|
-
}
|
|
16
|
-
main()
|
|
17
|
-
.then(() => {
|
|
18
|
-
// eslint-disable-next-line no-console
|
|
19
|
-
console.log("done");
|
|
20
|
-
})
|
|
21
|
-
.catch((e) => {
|
|
22
|
-
console.error(e);
|
|
23
|
-
throw e;
|
|
24
|
-
});
|
|
25
|
-
export {};
|
package/dist/esm/fixable.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const FIXABLE_RULES: ("accessor-pairs" | "array-bracket-newline" | "array-bracket-spacing" | "array-callback-return" | "array-element-newline" | "arrow-body-style" | "arrow-parens" | "arrow-spacing" | "block-scoped-var" | "block-spacing" | "brace-style" | "callback-return" | "camelcase" | "capitalized-comments" | "class-methods-use-this" | "comma-dangle" | "comma-spacing" | "comma-style" | "complexity" | "computed-property-spacing" | "consistent-return" | "consistent-this" | "constructor-super" | "curly" | "default-case" | "default-case-last" | "default-param-last" | "dot-location" | "dot-notation" | "eol-last" | "eqeqeq" | "for-direction" | "func-call-spacing" | "func-name-matching" | "func-names" | "func-style" | "function-call-argument-newline" | "function-paren-newline" | "generator-star-spacing" | "getter-return" | "global-require" | "grouped-accessor-pairs" | "guard-for-in" | "handle-callback-err" | "id-blacklist" | "id-denylist" | "id-length" | "id-match" | "implicit-arrow-linebreak" | "indent" | "indent-legacy" | "init-declarations" | "jsx-quotes" | "key-spacing" | "keyword-spacing" | "line-comment-position" | "linebreak-style" | "lines-around-comment" | "lines-around-directive" | "lines-between-class-members" | "logical-assignment-operators" | "max-classes-per-file" | "max-depth" | "max-len" | "max-lines" | "max-lines-per-function" | "max-nested-callbacks" | "max-params" | "max-statements" | "max-statements-per-line" | "multiline-comment-style" | "multiline-ternary" | "new-cap" | "new-parens" | "newline-after-var" | "newline-before-return" | "newline-per-chained-call" | "no-alert" | "no-array-constructor" | "no-async-promise-executor" | "no-await-in-loop" | "no-bitwise" | "no-buffer-constructor" | "no-caller" | "no-case-declarations" | "no-catch-shadow" | "no-class-assign" | "no-compare-neg-zero" | "no-cond-assign" | "no-confusing-arrow" | "no-console" | "no-const-assign" | "no-constant-binary-expression" | "no-constant-condition" | "no-constructor-return" | "no-continue" | "no-control-regex" | "no-debugger" | "no-delete-var" | "no-div-regex" | "no-dupe-args" | "no-dupe-class-members" | "no-dupe-else-if" | "no-dupe-keys" | "no-duplicate-case" | "no-duplicate-imports" | "no-else-return" | "no-empty" | "no-empty-character-class" | "no-empty-function" | "no-empty-pattern" | "no-empty-static-block" | "no-eq-null" | "no-eval" | "no-ex-assign" | "no-extend-native" | "no-extra-bind" | "no-extra-boolean-cast" | "no-extra-label" | "no-extra-parens" | "no-extra-semi" | "no-fallthrough" | "no-floating-decimal" | "no-func-assign" | "no-global-assign" | "no-implicit-coercion" | "no-implicit-globals" | "no-implied-eval" | "no-import-assign" | "no-inline-comments" | "no-inner-declarations" | "no-invalid-regexp" | "no-invalid-this" | "no-irregular-whitespace" | "no-iterator" | "no-label-var" | "no-labels" | "no-lone-blocks" | "no-lonely-if" | "no-loop-func" | "no-loss-of-precision" | "no-magic-numbers" | "no-misleading-character-class" | "no-mixed-operators" | "no-mixed-requires" | "no-mixed-spaces-and-tabs" | "no-multi-assign" | "no-multi-spaces" | "no-multi-str" | "no-multiple-empty-lines" | "no-native-reassign" | "no-negated-condition" | "no-negated-in-lhs" | "no-nested-ternary" | "no-new" | "no-new-func" | "no-new-native-nonconstructor" | "no-new-object" | "no-new-require" | "no-new-symbol" | "no-new-wrappers" | "no-nonoctal-decimal-escape" | "no-obj-calls" | "no-object-constructor" | "no-octal" | "no-octal-escape" | "no-param-reassign" | "no-path-concat" | "no-plusplus" | "no-process-env" | "no-process-exit" | "no-promise-executor-return" | "no-proto" | "no-prototype-builtins" | "no-redeclare" | "no-regex-spaces" | "no-restricted-exports" | "no-restricted-globals" | "no-restricted-imports" | "no-restricted-modules" | "no-restricted-properties" | "no-restricted-syntax" | "no-return-assign" | "no-return-await" | "no-script-url" | "no-self-assign" | "no-self-compare" | "no-sequences" | "no-setter-return" | "no-shadow" | "no-shadow-restricted-names" | "no-spaced-func" | "no-sparse-arrays" | "no-sync" | "no-tabs" | "no-template-curly-in-string" | "no-ternary" | "no-this-before-super" | "no-throw-literal" | "no-trailing-spaces" | "no-unassigned-vars" | "no-undef" | "no-undef-init" | "no-undefined" | "no-underscore-dangle" | "no-unexpected-multiline" | "no-unmodified-loop-condition" | "no-unneeded-ternary" | "no-unreachable" | "no-unreachable-loop" | "no-unsafe-finally" | "no-unsafe-negation" | "no-unsafe-optional-chaining" | "no-unused-expressions" | "no-unused-labels" | "no-unused-private-class-members" | "no-unused-vars" | "no-use-before-define" | "no-useless-assignment" | "no-useless-backreference" | "no-useless-call" | "no-useless-catch" | "no-useless-computed-key" | "no-useless-concat" | "no-useless-constructor" | "no-useless-escape" | "no-useless-rename" | "no-useless-return" | "no-var" | "no-void" | "no-warning-comments" | "no-whitespace-before-property" | "no-with" | "nonblock-statement-body-position" | "object-curly-newline" | "object-curly-spacing" | "object-property-newline" | "object-shorthand" | "one-var" | "one-var-declaration-per-line" | "operator-assignment" | "operator-linebreak" | "padded-blocks" | "padding-line-between-statements" | "prefer-arrow-callback" | "prefer-const" | "prefer-destructuring" | "prefer-exponentiation-operator" | "prefer-named-capture-group" | "prefer-numeric-literals" | "prefer-object-has-own" | "prefer-object-spread" | "prefer-promise-reject-errors" | "prefer-reflect" | "prefer-regex-literals" | "prefer-rest-params" | "prefer-spread" | "prefer-template" | "quote-props" | "quotes" | "radix" | "require-atomic-updates" | "require-await" | "require-unicode-regexp" | "require-yield" | "rest-spread-spacing" | "semi" | "semi-spacing" | "semi-style" | "sort-imports" | "sort-keys" | "sort-vars" | "space-before-blocks" | "space-before-function-paren" | "space-in-parens" | "space-infix-ops" | "space-unary-ops" | "spaced-comment" | "strict" | "switch-colon-spacing" | "symbol-description" | "template-curly-spacing" | "template-tag-spacing" | "unicode-bom" | "use-isnan" | "valid-typeof" | "vars-on-top" | "wrap-iife" | "wrap-regex" | "yield-star-spacing" | "yoda" | "antfu/consistent-chaining" | "antfu/consistent-list-newline" | "antfu/curly" | "antfu/if-newline" | "antfu/import-dedupe" | "antfu/indent-unindent" | "antfu/no-import-dist" | "antfu/no-import-node-modules-by-path" | "antfu/no-top-level-await" | "antfu/no-ts-export-equal" | "antfu/top-level-function" | "command/command" | "de-morgan/no-negated-conjunction" | "de-morgan/no-negated-disjunction" | "eslint-comments/disable-enable-pair" | "eslint-comments/no-aggregating-enable" | "eslint-comments/no-duplicate-disable" | "eslint-comments/no-restricted-disable" | "eslint-comments/no-unlimited-disable" | "eslint-comments/no-unused-disable" | "eslint-comments/no-unused-enable" | "eslint-comments/no-use" | "eslint-comments/require-description" | "import/consistent-type-specifier-style" | "import/first" | "import/newline-after-import" | "import/no-default-export" | "import/no-duplicates" | "import/no-mutable-exports" | "import/no-named-default" | "unused-imports/no-unused-imports" | "unused-imports/no-unused-vars" | "jsdoc/check-access" | "jsdoc/check-alignment" | "jsdoc/check-examples" | "jsdoc/check-indentation" | "jsdoc/check-line-alignment" | "jsdoc/check-param-names" | "jsdoc/check-property-names" | "jsdoc/check-syntax" | "jsdoc/check-tag-names" | "jsdoc/check-template-names" | "jsdoc/check-types" | "jsdoc/check-values" | "jsdoc/convert-to-jsdoc-comments" | "jsdoc/empty-tags" | "jsdoc/implements-on-classes" | "jsdoc/imports-as-dependencies" | "jsdoc/informative-docs" | "jsdoc/lines-before-block" | "jsdoc/match-description" | "jsdoc/match-name" | "jsdoc/multiline-blocks" | "jsdoc/no-bad-blocks" | "jsdoc/no-blank-block-descriptions" | "jsdoc/no-blank-blocks" | "jsdoc/no-defaults" | "jsdoc/no-missing-syntax" | "jsdoc/no-multi-asterisks" | "jsdoc/no-restricted-syntax" | "jsdoc/no-types" | "jsdoc/no-undefined-types" | "jsdoc/require-asterisk-prefix" | "jsdoc/require-description" | "jsdoc/require-description-complete-sentence" | "jsdoc/require-example" | "jsdoc/require-file-overview" | "jsdoc/require-hyphen-before-param-description" | "jsdoc/require-jsdoc" | "jsdoc/require-param" | "jsdoc/require-param-description" | "jsdoc/require-param-name" | "jsdoc/require-param-type" | "jsdoc/require-property" | "jsdoc/require-property-description" | "jsdoc/require-property-name" | "jsdoc/require-property-type" | "jsdoc/require-returns" | "jsdoc/require-returns-check" | "jsdoc/require-returns-description" | "jsdoc/require-returns-type" | "jsdoc/require-template" | "jsdoc/require-throws" | "jsdoc/require-yields" | "jsdoc/require-yields-check" | "jsdoc/sort-tags" | "jsdoc/tag-lines" | "jsdoc/text-escaping" | "jsdoc/valid-types" | "jsonc/array-bracket-newline" | "jsonc/array-bracket-spacing" | "jsonc/array-element-newline" | "jsonc/auto" | "jsonc/comma-dangle" | "jsonc/comma-style" | "jsonc/indent" | "jsonc/key-name-casing" | "jsonc/key-spacing" | "jsonc/no-bigint-literals" | "jsonc/no-binary-expression" | "jsonc/no-binary-numeric-literals" | "jsonc/no-comments" | "jsonc/no-dupe-keys" | "jsonc/no-escape-sequence-in-identifier" | "jsonc/no-floating-decimal" | "jsonc/no-hexadecimal-numeric-literals" | "jsonc/no-infinity" | "jsonc/no-irregular-whitespace" | "jsonc/no-multi-str" | "jsonc/no-nan" | "jsonc/no-number-props" | "jsonc/no-numeric-separators" | "jsonc/no-octal" | "jsonc/no-octal-escape" | "jsonc/no-octal-numeric-literals" | "jsonc/no-parenthesized" | "jsonc/no-plus-sign" | "jsonc/no-regexp-literals" | "jsonc/no-sparse-arrays" | "jsonc/no-template-literals" | "jsonc/no-undefined-value" | "jsonc/no-unicode-codepoint-escapes" | "jsonc/no-useless-escape" | "jsonc/object-curly-newline" | "jsonc/object-curly-spacing" | "jsonc/object-property-newline" | "jsonc/quote-props" | "jsonc/quotes" | "jsonc/sort-array-values" | "jsonc/sort-keys" | "jsonc/space-unary-ops" | "jsonc/valid-json-number" | "jsonc/vue-custom-block/no-parsing-error" | "markdown/fenced-code-language" | "markdown/heading-increment" | "markdown/no-bare-urls" | "markdown/no-duplicate-definitions" | "markdown/no-duplicate-headings" | "markdown/no-empty-definitions" | "markdown/no-empty-images" | "markdown/no-empty-links" | "markdown/no-html" | "markdown/no-invalid-label-refs" | "markdown/no-missing-atx-heading-space" | "markdown/no-missing-label-refs" | "markdown/no-missing-link-fragments" | "markdown/no-multiple-h1" | "markdown/no-reversed-media-syntax" | "markdown/no-unused-definitions" | "markdown/require-alt-text" | "markdown/table-column-count" | "n/callback-return" | "n/exports-style" | "n/file-extension-in-import" | "n/global-require" | "n/handle-callback-err" | "n/hashbang" | "n/no-callback-literal" | "n/no-deprecated-api" | "n/no-exports-assign" | "n/no-extraneous-import" | "n/no-extraneous-require" | "n/no-hide-core-modules" | "n/no-missing-import" | "n/no-missing-require" | "n/no-mixed-requires" | "n/no-new-require" | "n/no-path-concat" | "n/no-process-env" | "n/no-process-exit" | "n/no-restricted-import" | "n/no-restricted-require" | "n/no-sync" | "n/no-top-level-await" | "n/no-unpublished-bin" | "n/no-unpublished-import" | "n/no-unpublished-require" | "n/no-unsupported-features/es-builtins" | "n/no-unsupported-features/es-syntax" | "n/no-unsupported-features/node-builtins" | "n/prefer-global/buffer" | "n/prefer-global/console" | "n/prefer-global/process" | "n/prefer-global/text-decoder" | "n/prefer-global/text-encoder" | "n/prefer-global/url" | "n/prefer-global/url-search-params" | "n/prefer-node-protocol" | "n/prefer-promises/dns" | "n/prefer-promises/fs" | "n/process-exit-as-throw" | "n/shebang" | "no-only-tests/no-only-tests" | "perfectionist/sort-array-includes" | "perfectionist/sort-classes" | "perfectionist/sort-decorators" | "perfectionist/sort-enums" | "perfectionist/sort-exports" | "perfectionist/sort-heritage-clauses" | "perfectionist/sort-imports" | "perfectionist/sort-interfaces" | "perfectionist/sort-intersection-types" | "perfectionist/sort-jsx-props" | "perfectionist/sort-maps" | "perfectionist/sort-modules" | "perfectionist/sort-named-exports" | "perfectionist/sort-named-imports" | "perfectionist/sort-object-types" | "perfectionist/sort-objects" | "perfectionist/sort-sets" | "perfectionist/sort-switch-case" | "perfectionist/sort-union-types" | "perfectionist/sort-variable-declarations" | "pnpm/json-enforce-catalog" | "pnpm/json-prefer-workspace-settings" | "pnpm/json-valid-catalog" | "pnpm/yaml-no-duplicate-catalog-item" | "pnpm/yaml-no-unused-catalog-item" | "react-hooks/exhaustive-deps" | "react-hooks/rules-of-hooks" | "react-refresh/only-export-components" | "react/boolean-prop-naming" | "react/button-has-type" | "react/checked-requires-onchange-or-readonly" | "react/default-props-match-prop-types" | "react/destructuring-assignment" | "react/display-name" | "react/forbid-component-props" | "react/forbid-dom-props" | "react/forbid-elements" | "react/forbid-foreign-prop-types" | "react/forbid-prop-types" | "react/forward-ref-uses-ref" | "react/function-component-definition" | "react/hook-use-state" | "react/iframe-missing-sandbox" | "react/jsx-boolean-value" | "react/jsx-child-element-spacing" | "react/jsx-closing-bracket-location" | "react/jsx-closing-tag-location" | "react/jsx-curly-brace-presence" | "react/jsx-curly-newline" | "react/jsx-curly-spacing" | "react/jsx-equals-spacing" | "react/jsx-filename-extension" | "react/jsx-first-prop-new-line" | "react/jsx-fragments" | "react/jsx-handler-names" | "react/jsx-indent" | "react/jsx-indent-props" | "react/jsx-key" | "react/jsx-max-depth" | "react/jsx-max-props-per-line" | "react/jsx-newline" | "react/jsx-no-bind" | "react/jsx-no-comment-textnodes" | "react/jsx-no-constructed-context-values" | "react/jsx-no-duplicate-props" | "react/jsx-no-leaked-render" | "react/jsx-no-literals" | "react/jsx-no-script-url" | "react/jsx-no-target-blank" | "react/jsx-no-undef" | "react/jsx-no-useless-fragment" | "react/jsx-one-expression-per-line" | "react/jsx-pascal-case" | "react/jsx-props-no-multi-spaces" | "react/jsx-props-no-spread-multi" | "react/jsx-props-no-spreading" | "react/jsx-sort-default-props" | "react/jsx-sort-props" | "react/jsx-space-before-closing" | "react/jsx-tag-spacing" | "react/jsx-uses-react" | "react/jsx-uses-vars" | "react/jsx-wrap-multilines" | "react/no-access-state-in-setstate" | "react/no-adjacent-inline-elements" | "react/no-array-index-key" | "react/no-arrow-function-lifecycle" | "react/no-children-prop" | "react/no-danger" | "react/no-danger-with-children" | "react/no-deprecated" | "react/no-did-mount-set-state" | "react/no-did-update-set-state" | "react/no-direct-mutation-state" | "react/no-find-dom-node" | "react/no-invalid-html-attribute" | "react/no-is-mounted" | "react/no-multi-comp" | "react/no-namespace" | "react/no-object-type-as-default-prop" | "react/no-redundant-should-component-update" | "react/no-render-return-value" | "react/no-set-state" | "react/no-string-refs" | "react/no-this-in-sfc" | "react/no-typos" | "react/no-unescaped-entities" | "react/no-unknown-property" | "react/no-unsafe" | "react/no-unstable-nested-components" | "react/no-unused-class-component-methods" | "react/no-unused-prop-types" | "react/no-unused-state" | "react/no-will-update-set-state" | "react/prefer-es6-class" | "react/prefer-exact-props" | "react/prefer-read-only-props" | "react/prefer-stateless-function" | "react/prop-types" | "react/react-in-jsx-scope" | "react/require-default-props" | "react/require-optimization" | "react/require-render-return" | "react/self-closing-comp" | "react/sort-comp" | "react/sort-default-props" | "react/sort-prop-types" | "react/state-in-constructor" | "react/static-property-placement" | "react/style-prop-object" | "react/void-dom-elements-no-children" | "@stylistic/array-bracket-newline" | "@stylistic/array-bracket-spacing" | "@stylistic/array-element-newline" | "@stylistic/arrow-parens" | "@stylistic/arrow-spacing" | "@stylistic/block-spacing" | "@stylistic/brace-style" | "@stylistic/comma-dangle" | "@stylistic/comma-spacing" | "@stylistic/comma-style" | "@stylistic/computed-property-spacing" | "@stylistic/curly-newline" | "@stylistic/dot-location" | "@stylistic/eol-last" | "@stylistic/function-call-argument-newline" | "@stylistic/function-call-spacing" | "@stylistic/function-paren-newline" | "@stylistic/generator-star-spacing" | "@stylistic/implicit-arrow-linebreak" | "@stylistic/indent" | "@stylistic/indent-binary-ops" | "@stylistic/jsx-child-element-spacing" | "@stylistic/jsx-closing-bracket-location" | "@stylistic/jsx-closing-tag-location" | "@stylistic/jsx-curly-brace-presence" | "@stylistic/jsx-curly-newline" | "@stylistic/jsx-curly-spacing" | "@stylistic/jsx-equals-spacing" | "@stylistic/jsx-first-prop-new-line" | "@stylistic/jsx-function-call-newline" | "@stylistic/jsx-indent" | "@stylistic/jsx-indent-props" | "@stylistic/jsx-max-props-per-line" | "@stylistic/jsx-newline" | "@stylistic/jsx-one-expression-per-line" | "@stylistic/jsx-pascal-case" | "@stylistic/jsx-props-no-multi-spaces" | "@stylistic/jsx-quotes" | "@stylistic/jsx-self-closing-comp" | "@stylistic/jsx-sort-props" | "@stylistic/jsx-tag-spacing" | "@stylistic/jsx-wrap-multilines" | "@stylistic/key-spacing" | "@stylistic/keyword-spacing" | "@stylistic/line-comment-position" | "@stylistic/linebreak-style" | "@stylistic/lines-around-comment" | "@stylistic/lines-between-class-members" | "@stylistic/max-len" | "@stylistic/max-statements-per-line" | "@stylistic/member-delimiter-style" | "@stylistic/multiline-comment-style" | "@stylistic/multiline-ternary" | "@stylistic/new-parens" | "@stylistic/newline-per-chained-call" | "@stylistic/no-confusing-arrow" | "@stylistic/no-extra-parens" | "@stylistic/no-extra-semi" | "@stylistic/no-floating-decimal" | "@stylistic/no-mixed-operators" | "@stylistic/no-mixed-spaces-and-tabs" | "@stylistic/no-multi-spaces" | "@stylistic/no-multiple-empty-lines" | "@stylistic/no-tabs" | "@stylistic/no-trailing-spaces" | "@stylistic/no-whitespace-before-property" | "@stylistic/nonblock-statement-body-position" | "@stylistic/object-curly-newline" | "@stylistic/object-curly-spacing" | "@stylistic/object-property-newline" | "@stylistic/one-var-declaration-per-line" | "@stylistic/operator-linebreak" | "@stylistic/padded-blocks" | "@stylistic/padding-line-between-statements" | "@stylistic/quote-props" | "@stylistic/quotes" | "@stylistic/rest-spread-spacing" | "@stylistic/semi" | "@stylistic/semi-spacing" | "@stylistic/semi-style" | "@stylistic/space-before-blocks" | "@stylistic/space-before-function-paren" | "@stylistic/space-in-parens" | "@stylistic/space-infix-ops" | "@stylistic/space-unary-ops" | "@stylistic/spaced-comment" | "@stylistic/switch-colon-spacing" | "@stylistic/template-curly-spacing" | "@stylistic/template-tag-spacing" | "@stylistic/type-annotation-spacing" | "@stylistic/type-generic-spacing" | "@stylistic/type-named-tuple-spacing" | "@stylistic/wrap-iife" | "@stylistic/wrap-regex" | "@stylistic/yield-star-spacing" | "toml/array-bracket-newline" | "toml/array-bracket-spacing" | "toml/array-element-newline" | "toml/comma-style" | "toml/indent" | "toml/inline-table-curly-spacing" | "toml/key-spacing" | "toml/keys-order" | "toml/no-mixed-type-in-array" | "toml/no-non-decimal-integer" | "toml/no-space-dots" | "toml/no-unreadable-number-separator" | "toml/padding-line-between-pairs" | "toml/padding-line-between-tables" | "toml/precision-of-fractional-seconds" | "toml/precision-of-integer" | "toml/quoted-keys" | "toml/space-eq-sign" | "toml/spaced-comment" | "toml/table-bracket-spacing" | "toml/tables-order" | "toml/vue-custom-block/no-parsing-error" | "tsdoc/syntax" | "@typescript-eslint/adjacent-overload-signatures" | "@typescript-eslint/array-type" | "@typescript-eslint/await-thenable" | "@typescript-eslint/ban-ts-comment" | "@typescript-eslint/ban-tslint-comment" | "@typescript-eslint/class-literal-property-style" | "@typescript-eslint/class-methods-use-this" | "@typescript-eslint/consistent-generic-constructors" | "@typescript-eslint/consistent-indexed-object-style" | "@typescript-eslint/consistent-return" | "@typescript-eslint/consistent-type-assertions" | "@typescript-eslint/consistent-type-definitions" | "@typescript-eslint/consistent-type-exports" | "@typescript-eslint/consistent-type-imports" | "@typescript-eslint/default-param-last" | "@typescript-eslint/dot-notation" | "@typescript-eslint/explicit-function-return-type" | "@typescript-eslint/explicit-member-accessibility" | "@typescript-eslint/explicit-module-boundary-types" | "@typescript-eslint/init-declarations" | "@typescript-eslint/max-params" | "@typescript-eslint/member-ordering" | "@typescript-eslint/method-signature-style" | "@typescript-eslint/naming-convention" | "@typescript-eslint/no-array-constructor" | "@typescript-eslint/no-array-delete" | "@typescript-eslint/no-base-to-string" | "@typescript-eslint/no-confusing-non-null-assertion" | "@typescript-eslint/no-confusing-void-expression" | "@typescript-eslint/no-deprecated" | "@typescript-eslint/no-dupe-class-members" | "@typescript-eslint/no-duplicate-enum-values" | "@typescript-eslint/no-duplicate-type-constituents" | "@typescript-eslint/no-dynamic-delete" | "@typescript-eslint/no-empty-function" | "@typescript-eslint/no-empty-interface" | "@typescript-eslint/no-empty-object-type" | "@typescript-eslint/no-explicit-any" | "@typescript-eslint/no-extra-non-null-assertion" | "@typescript-eslint/no-extraneous-class" | "@typescript-eslint/no-floating-promises" | "@typescript-eslint/no-for-in-array" | "@typescript-eslint/no-implied-eval" | "@typescript-eslint/no-import-type-side-effects" | "@typescript-eslint/no-inferrable-types" | "@typescript-eslint/no-invalid-this" | "@typescript-eslint/no-invalid-void-type" | "@typescript-eslint/no-loop-func" | "@typescript-eslint/no-loss-of-precision" | "@typescript-eslint/no-magic-numbers" | "@typescript-eslint/no-meaningless-void-operator" | "@typescript-eslint/no-misused-new" | "@typescript-eslint/no-misused-promises" | "@typescript-eslint/no-misused-spread" | "@typescript-eslint/no-mixed-enums" | "@typescript-eslint/no-namespace" | "@typescript-eslint/no-non-null-asserted-nullish-coalescing" | "@typescript-eslint/no-non-null-asserted-optional-chain" | "@typescript-eslint/no-non-null-assertion" | "@typescript-eslint/no-redeclare" | "@typescript-eslint/no-redundant-type-constituents" | "@typescript-eslint/no-require-imports" | "@typescript-eslint/no-restricted-imports" | "@typescript-eslint/no-restricted-types" | "@typescript-eslint/no-shadow" | "@typescript-eslint/no-this-alias" | "@typescript-eslint/no-type-alias" | "@typescript-eslint/no-unnecessary-boolean-literal-compare" | "@typescript-eslint/no-unnecessary-condition" | "@typescript-eslint/no-unnecessary-parameter-property-assignment" | "@typescript-eslint/no-unnecessary-qualifier" | "@typescript-eslint/no-unnecessary-template-expression" | "@typescript-eslint/no-unnecessary-type-arguments" | "@typescript-eslint/no-unnecessary-type-assertion" | "@typescript-eslint/no-unnecessary-type-constraint" | "@typescript-eslint/no-unnecessary-type-conversion" | "@typescript-eslint/no-unnecessary-type-parameters" | "@typescript-eslint/no-unsafe-argument" | "@typescript-eslint/no-unsafe-assignment" | "@typescript-eslint/no-unsafe-call" | "@typescript-eslint/no-unsafe-declaration-merging" | "@typescript-eslint/no-unsafe-enum-comparison" | "@typescript-eslint/no-unsafe-function-type" | "@typescript-eslint/no-unsafe-member-access" | "@typescript-eslint/no-unsafe-return" | "@typescript-eslint/no-unsafe-type-assertion" | "@typescript-eslint/no-unsafe-unary-minus" | "@typescript-eslint/no-unused-expressions" | "@typescript-eslint/no-unused-vars" | "@typescript-eslint/no-use-before-define" | "@typescript-eslint/no-useless-constructor" | "@typescript-eslint/no-useless-empty-export" | "@typescript-eslint/no-var-requires" | "@typescript-eslint/no-wrapper-object-types" | "@typescript-eslint/non-nullable-type-assertion-style" | "@typescript-eslint/only-throw-error" | "@typescript-eslint/parameter-properties" | "@typescript-eslint/prefer-as-const" | "@typescript-eslint/prefer-destructuring" | "@typescript-eslint/prefer-enum-initializers" | "@typescript-eslint/prefer-find" | "@typescript-eslint/prefer-for-of" | "@typescript-eslint/prefer-function-type" | "@typescript-eslint/prefer-includes" | "@typescript-eslint/prefer-literal-enum-member" | "@typescript-eslint/prefer-namespace-keyword" | "@typescript-eslint/prefer-nullish-coalescing" | "@typescript-eslint/prefer-optional-chain" | "@typescript-eslint/prefer-promise-reject-errors" | "@typescript-eslint/prefer-readonly" | "@typescript-eslint/prefer-readonly-parameter-types" | "@typescript-eslint/prefer-reduce-type-parameter" | "@typescript-eslint/prefer-regexp-exec" | "@typescript-eslint/prefer-return-this-type" | "@typescript-eslint/prefer-string-starts-ends-with" | "@typescript-eslint/prefer-ts-expect-error" | "@typescript-eslint/promise-function-async" | "@typescript-eslint/related-getter-setter-pairs" | "@typescript-eslint/require-array-sort-compare" | "@typescript-eslint/require-await" | "@typescript-eslint/restrict-plus-operands" | "@typescript-eslint/restrict-template-expressions" | "@typescript-eslint/return-await" | "@typescript-eslint/sort-type-constituents" | "@typescript-eslint/strict-boolean-expressions" | "@typescript-eslint/switch-exhaustiveness-check" | "@typescript-eslint/triple-slash-reference" | "@typescript-eslint/typedef" | "@typescript-eslint/unbound-method" | "@typescript-eslint/unified-signatures" | "@typescript-eslint/use-unknown-in-catch-callback-variable" | "unicorn/better-regex" | "unicorn/catch-error-name" | "unicorn/consistent-assert" | "unicorn/consistent-date-clone" | "unicorn/consistent-destructuring" | "unicorn/consistent-empty-array-spread" | "unicorn/consistent-existence-index-check" | "unicorn/consistent-function-scoping" | "unicorn/custom-error-definition" | "unicorn/empty-brace-spaces" | "unicorn/error-message" | "unicorn/escape-case" | "unicorn/expiring-todo-comments" | "unicorn/explicit-length-check" | "unicorn/filename-case" | "unicorn/import-style" | "unicorn/new-for-builtins" | "unicorn/no-abusive-eslint-disable" | "unicorn/no-accessor-recursion" | "unicorn/no-anonymous-default-export" | "unicorn/no-array-callback-reference" | "unicorn/no-array-for-each" | "unicorn/no-array-method-this-argument" | "unicorn/no-array-push-push" | "unicorn/no-array-reduce" | "unicorn/no-array-reverse" | "unicorn/no-await-expression-member" | "unicorn/no-await-in-promise-methods" | "unicorn/no-console-spaces" | "unicorn/no-document-cookie" | "unicorn/no-empty-file" | "unicorn/no-for-loop" | "unicorn/no-hex-escape" | "unicorn/no-instanceof-array" | "unicorn/no-instanceof-builtins" | "unicorn/no-invalid-fetch-options" | "unicorn/no-invalid-remove-event-listener" | "unicorn/no-keyword-prefix" | "unicorn/no-length-as-slice-end" | "unicorn/no-lonely-if" | "unicorn/no-magic-array-flat-depth" | "unicorn/no-named-default" | "unicorn/no-negated-condition" | "unicorn/no-negation-in-equality-check" | "unicorn/no-nested-ternary" | "unicorn/no-new-array" | "unicorn/no-new-buffer" | "unicorn/no-null" | "unicorn/no-object-as-default-parameter" | "unicorn/no-process-exit" | "unicorn/no-single-promise-in-promise-methods" | "unicorn/no-static-only-class" | "unicorn/no-thenable" | "unicorn/no-this-assignment" | "unicorn/no-typeof-undefined" | "unicorn/no-unnecessary-array-flat-depth" | "unicorn/no-unnecessary-array-splice-count" | "unicorn/no-unnecessary-await" | "unicorn/no-unnecessary-polyfills" | "unicorn/no-unnecessary-slice-end" | "unicorn/no-unreadable-array-destructuring" | "unicorn/no-unreadable-iife" | "unicorn/no-unused-properties" | "unicorn/no-useless-error-capture-stack-trace" | "unicorn/no-useless-fallback-in-spread" | "unicorn/no-useless-length-check" | "unicorn/no-useless-promise-resolve-reject" | "unicorn/no-useless-spread" | "unicorn/no-useless-switch-case" | "unicorn/no-useless-undefined" | "unicorn/no-zero-fractions" | "unicorn/number-literal-case" | "unicorn/numeric-separators-style" | "unicorn/prefer-add-event-listener" | "unicorn/prefer-array-find" | "unicorn/prefer-array-flat" | "unicorn/prefer-array-flat-map" | "unicorn/prefer-array-index-of" | "unicorn/prefer-array-some" | "unicorn/prefer-at" | "unicorn/prefer-blob-reading-methods" | "unicorn/prefer-class-fields" | "unicorn/prefer-code-point" | "unicorn/prefer-date-now" | "unicorn/prefer-default-parameters" | "unicorn/prefer-dom-node-append" | "unicorn/prefer-dom-node-dataset" | "unicorn/prefer-dom-node-remove" | "unicorn/prefer-dom-node-text-content" | "unicorn/prefer-event-target" | "unicorn/prefer-export-from" | "unicorn/prefer-global-this" | "unicorn/prefer-import-meta-properties" | "unicorn/prefer-includes" | "unicorn/prefer-json-parse-buffer" | "unicorn/prefer-keyboard-event-key" | "unicorn/prefer-logical-operator-over-ternary" | "unicorn/prefer-math-min-max" | "unicorn/prefer-math-trunc" | "unicorn/prefer-modern-dom-apis" | "unicorn/prefer-modern-math-apis" | "unicorn/prefer-module" | "unicorn/prefer-native-coercion-functions" | "unicorn/prefer-negative-index" | "unicorn/prefer-node-protocol" | "unicorn/prefer-number-properties" | "unicorn/prefer-object-from-entries" | "unicorn/prefer-optional-catch-binding" | "unicorn/prefer-prototype-methods" | "unicorn/prefer-query-selector" | "unicorn/prefer-reflect-apply" | "unicorn/prefer-regexp-test" | "unicorn/prefer-set-has" | "unicorn/prefer-set-size" | "unicorn/prefer-single-call" | "unicorn/prefer-spread" | "unicorn/prefer-string-raw" | "unicorn/prefer-string-replace-all" | "unicorn/prefer-string-slice" | "unicorn/prefer-string-starts-ends-with" | "unicorn/prefer-string-trim-start-end" | "unicorn/prefer-structured-clone" | "unicorn/prefer-switch" | "unicorn/prefer-ternary" | "unicorn/prefer-top-level-await" | "unicorn/prefer-type-error" | "unicorn/prevent-abbreviations" | "unicorn/relative-url-style" | "unicorn/require-array-join-separator" | "unicorn/require-module-specifiers" | "unicorn/require-number-to-fixed-digits-argument" | "unicorn/require-post-message-target-origin" | "unicorn/string-content" | "unicorn/switch-case-braces" | "unicorn/template-indent" | "unicorn/text-encoding-identifier-case" | "unicorn/throw-new-error" | "vitest/consistent-test-filename" | "vitest/consistent-test-it" | "vitest/consistent-vitest-vi" | "vitest/expect-expect" | "vitest/max-expects" | "vitest/max-nested-describe" | "vitest/no-alias-methods" | "vitest/no-commented-out-tests" | "vitest/no-conditional-expect" | "vitest/no-conditional-in-test" | "vitest/no-conditional-tests" | "vitest/no-disabled-tests" | "vitest/no-done-callback" | "vitest/no-duplicate-hooks" | "vitest/no-focused-tests" | "vitest/no-hooks" | "vitest/no-identical-title" | "vitest/no-import-node-test" | "vitest/no-importing-vitest-globals" | "vitest/no-interpolation-in-snapshots" | "vitest/no-large-snapshots" | "vitest/no-mocks-import" | "vitest/no-restricted-matchers" | "vitest/no-restricted-vi-methods" | "vitest/no-standalone-expect" | "vitest/no-test-prefixes" | "vitest/no-test-return-statement" | "vitest/padding-around-after-all-blocks" | "vitest/padding-around-after-each-blocks" | "vitest/padding-around-all" | "vitest/padding-around-before-all-blocks" | "vitest/padding-around-before-each-blocks" | "vitest/padding-around-describe-blocks" | "vitest/padding-around-expect-groups" | "vitest/padding-around-test-blocks" | "vitest/prefer-called-once" | "vitest/prefer-called-times" | "vitest/prefer-called-with" | "vitest/prefer-comparison-matcher" | "vitest/prefer-describe-function-title" | "vitest/prefer-each" | "vitest/prefer-equality-matcher" | "vitest/prefer-expect-assertions" | "vitest/prefer-expect-resolves" | "vitest/prefer-hooks-in-order" | "vitest/prefer-hooks-on-top" | "vitest/prefer-importing-vitest-globals" | "vitest/prefer-lowercase-title" | "vitest/prefer-mock-promise-shorthand" | "vitest/prefer-snapshot-hint" | "vitest/prefer-spy-on" | "vitest/prefer-strict-boolean-matchers" | "vitest/prefer-strict-equal" | "vitest/prefer-to-be" | "vitest/prefer-to-be-falsy" | "vitest/prefer-to-be-object" | "vitest/prefer-to-be-truthy" | "vitest/prefer-to-contain" | "vitest/prefer-to-have-length" | "vitest/prefer-todo" | "vitest/prefer-vi-mocked" | "vitest/require-hook" | "vitest/require-local-test-context-for-concurrent-snapshots" | "vitest/require-mock-type-parameters" | "vitest/require-to-throw-message" | "vitest/require-top-level-describe" | "vitest/valid-describe-callback" | "vitest/valid-expect" | "vitest/valid-expect-in-promise" | "vitest/valid-title" | "vitest/warn-todo" | "yaml/block-mapping" | "yaml/block-mapping-colon-indicator-newline" | "yaml/block-mapping-question-indicator-newline" | "yaml/block-sequence" | "yaml/block-sequence-hyphen-indicator-newline" | "yaml/file-extension" | "yaml/flow-mapping-curly-newline" | "yaml/flow-mapping-curly-spacing" | "yaml/flow-sequence-bracket-newline" | "yaml/flow-sequence-bracket-spacing" | "yaml/indent" | "yaml/key-name-casing" | "yaml/key-spacing" | "yaml/no-empty-document" | "yaml/no-empty-key" | "yaml/no-empty-mapping-value" | "yaml/no-empty-sequence-entry" | "yaml/no-irregular-whitespace" | "yaml/no-multiple-empty-lines" | "yaml/no-tab-indent" | "yaml/no-trailing-zeros" | "yaml/plain-scalar" | "yaml/quotes" | "yaml/require-string-key" | "yaml/sort-keys" | "yaml/sort-sequence-values" | "yaml/spaced-comment" | "yaml/vue-custom-block/no-parsing-error")[];
|
|
2
|
-
export { FIXABLE_RULES_MAP } from "./generated/fixable-rules-map.js";
|
package/dist/esm/fixable.js
DELETED