@zayne-labs/eslint-config 0.13.13 → 0.13.15
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/README.md +217 -27
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +58 -52
- package/dist/cli/index.js.map +1 -1
- package/dist/constants/defaults.d.ts +5 -6
- package/dist/{index-B8a2EaF4.d.ts → index-CH8E2ZDS.d.ts} +4508 -1256
- package/dist/index.d.ts +61 -53
- package/dist/index.js +355 -116
- package/dist/index.js.map +1 -1
- package/dist/{jsxRules-BAjKnxGs.js → jsxRules-DR1G9lbZ.js} +8 -14
- package/dist/jsxRules-DR1G9lbZ.js.map +1 -0
- package/dist/utils.d.ts +14 -16
- package/dist/utils.js +2 -2
- package/dist/utils.js.map +1 -1
- package/package.json +83 -78
- package/dist/jsxRules-BAjKnxGs.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import { A as RuleOptions, C as OptionsTypeScriptErasableOnly, D as OptionsVue, E as OptionsTypescript, O as TypedFlatConfigItem, S as OptionsTanstack, T as OptionsTypeScriptWithTypes, _ as OptionsReact, a as OptionsConfig, b as OptionsTailwindCSS, c as OptionsHasJsx, d as OptionsJSX, f as OptionsMarkdown, g as OptionsPnpm, h as OptionsOverridesMultiple, i as OptionsComponentExtsTypeAware, k as ConfigNames, l as OptionsHasTypeScript, m as OptionsOverrides, n as
|
|
1
|
+
import { A as RuleOptions, C as OptionsTypeScriptErasableOnly, D as OptionsVue, E as OptionsTypescript, O as TypedFlatConfigItem, S as OptionsTanstack, T as OptionsTypeScriptWithTypes, _ as OptionsReact, a as OptionsConfig, b as OptionsTailwindCSS, c as OptionsHasJsx, d as OptionsJSX, f as OptionsMarkdown, g as OptionsPnpm, h as OptionsOverridesMultiple, i as OptionsComponentExtsTypeAware, k as ConfigNames, l as OptionsHasTypeScript, m as OptionsOverrides, n as OptionsBaseline, o as OptionsE18e, p as OptionsNode, r as OptionsComponentExts, s as OptionsFiles, t as OptionsAppType, u as OptionsIsInEditor, v as OptionsRegExp, w as OptionsTypeScriptParserOptions, x as OptionsTailwindCSSBetter, y as OptionsStylistic } from "./index-CH8E2ZDS.js";
|
|
2
2
|
import { Awaitable } from "@zayne-labs/toolkit-type-helpers";
|
|
3
3
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
4
4
|
import { Linter } from "eslint";
|
|
5
|
-
|
|
5
|
+
//#region src/types/utils.d.ts
|
|
6
|
+
export type ExtractOptions<TUnion> = Extract<TUnion, object>;
|
|
7
|
+
//#endregion
|
|
6
8
|
//#region src/configs/astro.d.ts
|
|
7
|
-
declare const astro: (options?: ExtractOptions<OptionsConfig["astro"]>) => Promise<TypedFlatConfigItem[]>;
|
|
9
|
+
export declare const astro: (options?: ExtractOptions<OptionsConfig["astro"]>) => Promise<TypedFlatConfigItem[]>;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/configs/baseline.d.ts
|
|
12
|
+
declare const baseline: (options?: ExtractOptions<OptionsConfig["baseline"]>) => Promise<TypedFlatConfigItem[]>;
|
|
8
13
|
//#endregion
|
|
9
14
|
//#region src/configs/command.d.ts
|
|
10
|
-
declare const command: () => Promise<TypedFlatConfigItem[]>;
|
|
15
|
+
export declare const command: () => Promise<TypedFlatConfigItem[]>;
|
|
11
16
|
//#endregion
|
|
12
17
|
//#region src/configs/comments.d.ts
|
|
13
|
-
declare const comments: (options?: ExtractOptions<OptionsConfig["comments"]>) => Promise<TypedFlatConfigItem[]>;
|
|
18
|
+
export declare const comments: (options?: ExtractOptions<OptionsConfig["comments"]>) => Promise<TypedFlatConfigItem[]>;
|
|
14
19
|
//#endregion
|
|
15
20
|
//#region src/configs/depend.d.ts
|
|
16
|
-
declare const depend: (options?: ExtractOptions<OptionsConfig["depend"]>) => Promise<TypedFlatConfigItem[]>;
|
|
21
|
+
export declare const depend: (options?: ExtractOptions<OptionsConfig["depend"]>) => Promise<TypedFlatConfigItem[]>;
|
|
17
22
|
//#endregion
|
|
18
23
|
//#region src/configs/expo.d.ts
|
|
19
24
|
declare const expo: (options?: ExtractOptions<OptionsConfig["expo"]>) => Promise<TypedFlatConfigItem[]>;
|
|
20
25
|
//#endregion
|
|
21
26
|
//#region src/configs/ignores.d.ts
|
|
22
|
-
declare const ignores: (userIgnores?: OptionsConfig["ignores"], shouldIgnoreTypeScript?: boolean) => TypedFlatConfigItem[];
|
|
23
|
-
declare const gitIgnores: (options?: ExtractOptions<OptionsConfig["gitignore"]>) => Promise<TypedFlatConfigItem[]>;
|
|
27
|
+
export declare const ignores: (userIgnores?: OptionsConfig["ignores"], shouldIgnoreTypeScript?: boolean) => TypedFlatConfigItem[];
|
|
28
|
+
export declare const gitIgnores: (options?: ExtractOptions<OptionsConfig["gitignore"]>) => Promise<TypedFlatConfigItem[]>;
|
|
24
29
|
//#endregion
|
|
25
30
|
//#region src/configs/imports.d.ts
|
|
26
31
|
declare const imports: (options?: ExtractOptions<OptionsConfig["imports"]>) => Promise<TypedFlatConfigItem[]>;
|
|
@@ -38,20 +43,23 @@ declare const jsonc: (options?: ExtractOptions<OptionsConfig["jsonc"]>) => Promi
|
|
|
38
43
|
declare const jsx: (options?: ExtractOptions<OptionsConfig["jsx"]>) => Promise<TypedFlatConfigItem[]>;
|
|
39
44
|
//#endregion
|
|
40
45
|
//#region src/configs/markdown.d.ts
|
|
41
|
-
declare const markdown: (options?: ExtractOptions<OptionsConfig["markdown"]>) => Promise<TypedFlatConfigItem[]>;
|
|
46
|
+
export declare const markdown: (options?: ExtractOptions<OptionsConfig["markdown"]>) => Promise<TypedFlatConfigItem[]>;
|
|
42
47
|
//#endregion
|
|
43
48
|
//#region src/configs/node.d.ts
|
|
44
|
-
declare const node: (options?: ExtractOptions<OptionsConfig["node"]>) => Promise<TypedFlatConfigItem[]>;
|
|
49
|
+
export declare const node: (options?: ExtractOptions<OptionsConfig["node"]>) => Promise<TypedFlatConfigItem[]>;
|
|
45
50
|
//#endregion
|
|
46
51
|
//#region src/configs/perfectionist.d.ts
|
|
47
52
|
declare const perfectionist: (options?: ExtractOptions<OptionsConfig["perfectionist"]>) => Promise<TypedFlatConfigItem[]>;
|
|
48
53
|
//#endregion
|
|
49
54
|
//#region src/configs/pnpm.d.ts
|
|
50
|
-
declare function pnpm(options?: ExtractOptions<OptionsConfig["pnpm"]>): Promise<TypedFlatConfigItem[]>;
|
|
55
|
+
export declare function pnpm(options?: ExtractOptions<OptionsConfig["pnpm"]>): Promise<TypedFlatConfigItem[]>;
|
|
51
56
|
//#endregion
|
|
52
57
|
//#region src/configs/react.d.ts
|
|
53
58
|
declare const react: (options?: ExtractOptions<OptionsConfig["react"]>) => Promise<TypedFlatConfigItem[]>;
|
|
54
59
|
//#endregion
|
|
60
|
+
//#region src/configs/regexp.d.ts
|
|
61
|
+
declare const regexp: (options?: ExtractOptions<OptionsConfig["regexp"]>) => Promise<TypedFlatConfigItem[]>;
|
|
62
|
+
//#endregion
|
|
55
63
|
//#region src/configs/solid.d.ts
|
|
56
64
|
declare const solid: (options?: ExtractOptions<OptionsConfig["solid"]>) => Promise<TypedFlatConfigItem[]>;
|
|
57
65
|
//#endregion
|
|
@@ -61,37 +69,37 @@ declare const solid: (options?: ExtractOptions<OptionsConfig["solid"]>) => Promi
|
|
|
61
69
|
*
|
|
62
70
|
* Requires `jsonc` config
|
|
63
71
|
*/
|
|
64
|
-
declare const sortPackageJson: () => TypedFlatConfigItem[];
|
|
72
|
+
export declare const sortPackageJson: () => TypedFlatConfigItem[];
|
|
65
73
|
/**
|
|
66
74
|
* Sort tsconfig.json
|
|
67
75
|
*
|
|
68
76
|
* Requires `jsonc` config
|
|
69
77
|
*/
|
|
70
|
-
declare const sortTsconfig: () => TypedFlatConfigItem[];
|
|
78
|
+
export declare const sortTsconfig: () => TypedFlatConfigItem[];
|
|
71
79
|
//#endregion
|
|
72
80
|
//#region src/configs/stylistic.d.ts
|
|
73
81
|
declare const stylistic: (options?: ExtractOptions<OptionsConfig["stylistic"]>) => Promise<TypedFlatConfigItem[]>;
|
|
74
82
|
//#endregion
|
|
75
83
|
//#region src/configs/tailwindcss.d.ts
|
|
76
|
-
declare const tailwindcssBetter: (options?: ExtractOptions<OptionsConfig["tailwindcssBetter"]>) => Promise<TypedFlatConfigItem[]>;
|
|
84
|
+
export declare const tailwindcssBetter: (options?: ExtractOptions<OptionsConfig["tailwindcssBetter"]>) => Promise<TypedFlatConfigItem[]>;
|
|
77
85
|
//#endregion
|
|
78
86
|
//#region src/configs/tanstack.d.ts
|
|
79
87
|
declare const tanstack: (options?: ExtractOptions<OptionsConfig["tanstack"]>) => Promise<TypedFlatConfigItem[]>;
|
|
80
88
|
//#endregion
|
|
81
89
|
//#region src/configs/toml.d.ts
|
|
82
|
-
declare const toml: (options?: ExtractOptions<OptionsConfig["toml"]>) => Promise<TypedFlatConfigItem[]>;
|
|
90
|
+
export declare const toml: (options?: ExtractOptions<OptionsConfig["toml"]>) => Promise<TypedFlatConfigItem[]>;
|
|
83
91
|
//#endregion
|
|
84
92
|
//#region src/configs/typescript.d.ts
|
|
85
|
-
declare const typescript: (options?: ExtractOptions<OptionsConfig["typescript"]> & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes) => Promise<TypedFlatConfigItem[]>;
|
|
93
|
+
export declare const typescript: (options?: ExtractOptions<OptionsConfig["typescript"]> & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes) => Promise<TypedFlatConfigItem[]>;
|
|
86
94
|
//#endregion
|
|
87
95
|
//#region src/configs/unicorn.d.ts
|
|
88
|
-
declare const unicorn: (options?: ExtractOptions<OptionsConfig["unicorn"]>) => Promise<TypedFlatConfigItem[]>;
|
|
96
|
+
export declare const unicorn: (options?: ExtractOptions<OptionsConfig["unicorn"]>) => Promise<TypedFlatConfigItem[]>;
|
|
89
97
|
//#endregion
|
|
90
98
|
//#region src/configs/vue.d.ts
|
|
91
|
-
declare const vue: (options?: ExtractOptions<OptionsConfig["vue"]>) => Promise<TypedFlatConfigItem[]>;
|
|
99
|
+
export declare const vue: (options?: ExtractOptions<OptionsConfig["vue"]>) => Promise<TypedFlatConfigItem[]>;
|
|
92
100
|
//#endregion
|
|
93
101
|
//#region src/configs/yaml.d.ts
|
|
94
|
-
declare const yaml: (options?: ExtractOptions<OptionsConfig["yaml"]>) => Promise<TypedFlatConfigItem[]>;
|
|
102
|
+
export declare const yaml: (options?: ExtractOptions<OptionsConfig["yaml"]>) => Promise<TypedFlatConfigItem[]>;
|
|
95
103
|
//#endregion
|
|
96
104
|
//#region src/factory.d.ts
|
|
97
105
|
/**
|
|
@@ -104,40 +112,40 @@ declare const yaml: (options?: ExtractOptions<OptionsConfig["yaml"]>) => Promise
|
|
|
104
112
|
* @returns {Promise<TypedFlatConfigItem[]>}
|
|
105
113
|
* The merged ESLint configurations.
|
|
106
114
|
*/
|
|
107
|
-
declare const zayne: (options?: OptionsConfig & Omit<TypedFlatConfigItem, "files" | "ignores">, ...userConfigs: Array<Awaitable<FlatConfigComposer | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>>) => FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
115
|
+
export declare const zayne: (options?: OptionsConfig & Omit<TypedFlatConfigItem, "files" | "ignores">, ...userConfigs: Array<Awaitable<FlatConfigComposer | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>>) => FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
108
116
|
//#endregion
|
|
109
117
|
//#region src/globs.d.ts
|
|
110
|
-
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
111
|
-
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
112
|
-
declare const GLOB_JS = "**/*.?([cm])js";
|
|
113
|
-
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
114
|
-
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
115
|
-
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
116
|
-
declare const GLOB_STYLES = "**/*.{c,le,sc}ss";
|
|
117
|
-
declare const GLOB_CSS = "**/*.css";
|
|
118
|
-
declare const GLOB_POSTCSS = "**/*.{p,post}css";
|
|
119
|
-
declare const GLOB_LESS = "**/*.less";
|
|
120
|
-
declare const GLOB_SCSS = "**/*.scss";
|
|
121
|
-
declare const GLOB_JSON = "**/*.json";
|
|
122
|
-
declare const GLOB_JSON5 = "**/*.json5";
|
|
123
|
-
declare const GLOB_JSONC = "**/*.jsonc";
|
|
124
|
-
declare const GLOB_MARKDOWN = "**/*.md?(x)";
|
|
125
|
-
declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md?(x)/*.md?(x)";
|
|
126
|
-
declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
|
|
127
|
-
declare const GLOB_VUE = "**/*.vue";
|
|
128
|
-
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
129
|
-
declare const GLOB_TOML = "**/*.toml";
|
|
130
|
-
declare const GLOB_XML = "**/*.xml";
|
|
131
|
-
declare const GLOB_SVG = "**/*.svg";
|
|
132
|
-
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
133
|
-
declare const GLOB_ASTRO = "**/*.astro";
|
|
134
|
-
declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
|
|
135
|
-
declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
136
|
-
declare const GLOB_MARKDOWN_CODE = "**/*.md?(x)/**/*.?([cm])[jt]s?(x)";
|
|
137
|
-
declare const GLOB_MARKDOWN_JSON = "**/*.md?(x)/**/*.json?({c,5})";
|
|
138
|
-
declare const GLOB_TESTS: string[];
|
|
139
|
-
declare const GLOB_ALL_SRC: string[];
|
|
140
|
-
declare const GLOB_EXCLUDE: string[];
|
|
141
|
-
//#endregion
|
|
142
|
-
export { type ConfigNames,
|
|
118
|
+
export declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
119
|
+
export declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
120
|
+
export declare const GLOB_JS = "**/*.?([cm])js";
|
|
121
|
+
export declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
122
|
+
export declare const GLOB_TS = "**/*.?([cm])ts";
|
|
123
|
+
export declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
124
|
+
export declare const GLOB_STYLES = "**/*.{c,le,sc}ss";
|
|
125
|
+
export declare const GLOB_CSS = "**/*.css";
|
|
126
|
+
export declare const GLOB_POSTCSS = "**/*.{p,post}css";
|
|
127
|
+
export declare const GLOB_LESS = "**/*.less";
|
|
128
|
+
export declare const GLOB_SCSS = "**/*.scss";
|
|
129
|
+
export declare const GLOB_JSON = "**/*.json";
|
|
130
|
+
export declare const GLOB_JSON5 = "**/*.json5";
|
|
131
|
+
export declare const GLOB_JSONC = "**/*.jsonc";
|
|
132
|
+
export declare const GLOB_MARKDOWN = "**/*.md?(x)";
|
|
133
|
+
export declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md?(x)/*.md?(x)";
|
|
134
|
+
export declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
|
|
135
|
+
export declare const GLOB_VUE = "**/*.vue";
|
|
136
|
+
export declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
137
|
+
export declare const GLOB_TOML = "**/*.toml";
|
|
138
|
+
export declare const GLOB_XML = "**/*.xml";
|
|
139
|
+
export declare const GLOB_SVG = "**/*.svg";
|
|
140
|
+
export declare const GLOB_HTML = "**/*.htm?(l)";
|
|
141
|
+
export declare const GLOB_ASTRO = "**/*.astro";
|
|
142
|
+
export declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
|
|
143
|
+
export declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
144
|
+
export declare const GLOB_MARKDOWN_CODE = "**/*.md?(x)/**/*.?([cm])[jt]s?(x)";
|
|
145
|
+
export declare const GLOB_MARKDOWN_JSON = "**/*.md?(x)/**/*.json?({c,5})";
|
|
146
|
+
export declare const GLOB_TESTS: string[];
|
|
147
|
+
export declare const GLOB_ALL_SRC: string[];
|
|
148
|
+
export declare const GLOB_EXCLUDE: string[];
|
|
149
|
+
//#endregion
|
|
150
|
+
export { type ConfigNames, OptionsAppType, OptionsBaseline, OptionsComponentExts, OptionsComponentExtsTypeAware, OptionsConfig, OptionsE18e, OptionsFiles, OptionsHasJsx, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsMarkdown, OptionsNode, OptionsOverrides, OptionsOverridesMultiple, OptionsPnpm, OptionsReact, OptionsRegExp, OptionsStylistic, OptionsTailwindCSS, OptionsTailwindCSSBetter, OptionsTanstack, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsVue, type RuleOptions, TypedFlatConfigItem, baseline, expo, imports, javascript, jsdoc, jsonc, jsx, perfectionist, react, regexp, solid, stylistic, tanstack };
|
|
143
151
|
//# sourceMappingURL=index.d.ts.map
|