@vp-tw/eslint-config 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -0
  3. package/build.config.ts +31 -0
  4. package/dist/configs/mdx.d.ts +236 -0
  5. package/dist/configs/mdx.js +30 -0
  6. package/dist/configs/prettier.d.ts +3 -0
  7. package/dist/configs/prettier.js +14 -0
  8. package/dist/eslint-typegen.d.ts +26 -0
  9. package/dist/esm/configs/mdx.d.ts +236 -0
  10. package/dist/esm/configs/mdx.mjs +27 -0
  11. package/dist/esm/configs/prettier.d.ts +3 -0
  12. package/dist/esm/configs/prettier.mjs +8 -0
  13. package/dist/esm/eslint-typegen.d.ts +26 -0
  14. package/dist/esm/index.d.ts +1 -0
  15. package/dist/esm/index.mjs +1 -0
  16. package/dist/esm/lib/eslint-plugin-react-compiler.d.ts +13 -0
  17. package/dist/esm/lib/eslint-plugin-react-compiler.mjs +0 -0
  18. package/dist/esm/types.d.ts +3 -0
  19. package/dist/esm/types.mjs +0 -0
  20. package/dist/esm/vdustr.d.ts +9 -0
  21. package/dist/esm/vdustr.mjs +101 -0
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.js +16 -0
  24. package/dist/lib/eslint-plugin-react-compiler.d.ts +13 -0
  25. package/dist/lib/eslint-plugin-react-compiler.js +1 -0
  26. package/dist/types.d.ts +3 -0
  27. package/dist/types.js +1 -0
  28. package/dist/vdustr.d.ts +9 -0
  29. package/dist/vdustr.js +102 -0
  30. package/global.d.ts +1 -0
  31. package/lib/eslint-plugin-react-compiler.ts +13 -0
  32. package/package.json +61 -0
  33. package/scripts/typegen.ts +34 -0
  34. package/src/configs/mdx.ts +44 -0
  35. package/src/configs/prettier.ts +12 -0
  36. package/src/eslint-typegen.d.ts +26 -0
  37. package/src/index.ts +1 -0
  38. package/src/tsconfig.json +4 -0
  39. package/src/types.ts +5 -0
  40. package/src/vdustr.ts +123 -0
  41. package/tsconfig.json +4 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2025 ViPro <vdustr@gmail.com> (http://vdustr.dev)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # `@vp-tw/eslint-config`
2
+
3
+ ViPro's ESLint configuration.
4
+
5
+ - Built on top of [antfu/eslint-config](https://github.com/antfu/eslint-config).
6
+ - Uses [Prettier](https://github.com/prettier/prettier) for code formatting.
7
+ - Integrates with [eslint-mdx](https://github.com/mdx-js/eslint-mdx).
8
+ - Fine-tuned to provide an opinionated, optimal DX.
9
+
10
+ ## License
11
+
12
+ MIT © ViPro <vdustr@gmail.com> (<http://vdustr.dev>)
@@ -0,0 +1,31 @@
1
+ import type { BuildConfig } from "unbuild";
2
+ import { defineBuildConfig } from "unbuild";
3
+
4
+ const basicEntry = {
5
+ builder: "mkdist",
6
+ input: "./src/",
7
+ pattern: [
8
+ "**/*.ts",
9
+ "!**/*.test.ts",
10
+ "!**/*.test-d.ts",
11
+ "!**/spec/**",
12
+ "!**/test/**",
13
+ "!**/node_modules/**",
14
+ ],
15
+ } satisfies NonNullable<BuildConfig["entries"]>[number];
16
+
17
+ export default defineBuildConfig({
18
+ entries: [
19
+ {
20
+ ...basicEntry,
21
+ outDir: "./dist",
22
+ format: "cjs",
23
+ },
24
+ {
25
+ ...basicEntry,
26
+ outDir: "./dist/esm",
27
+ format: "esm",
28
+ },
29
+ ],
30
+ declaration: true,
31
+ });
@@ -0,0 +1,236 @@
1
+ import type { TypedFlatConfigItem } from "@antfu/eslint-config";
2
+ import type { DistributiveOmit } from "@mui/types";
3
+ import type { Config } from "../types";
4
+ import * as mdxPlugin from "eslint-plugin-mdx";
5
+ declare namespace mdx {
6
+ interface Options extends DistributiveOmit<TypedFlatConfigItem, "processor"> {
7
+ processorOptions?: mdxPlugin.ProcessorOptions;
8
+ flatCodeBlocks?: boolean | Config;
9
+ }
10
+ }
11
+ declare const mdx: ({ flatCodeBlocks, processorOptions, ...options }?: mdx.Options) => ({
12
+ length: number;
13
+ toString(): string;
14
+ toLocaleString(): string;
15
+ toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
16
+ pop(): TypedFlatConfigItem | undefined;
17
+ push(...items: TypedFlatConfigItem[]): number;
18
+ concat(...items: ConcatArray<TypedFlatConfigItem>[]): TypedFlatConfigItem[];
19
+ concat(...items: (TypedFlatConfigItem | ConcatArray<TypedFlatConfigItem>)[]): TypedFlatConfigItem[];
20
+ join(separator?: string): string;
21
+ reverse(): TypedFlatConfigItem[];
22
+ shift(): TypedFlatConfigItem | undefined;
23
+ slice(start?: number, end?: number): TypedFlatConfigItem[];
24
+ sort(compareFn?: ((a: TypedFlatConfigItem, b: TypedFlatConfigItem) => number) | undefined): TypedFlatConfigItem[];
25
+ splice(start: number, deleteCount?: number): TypedFlatConfigItem[];
26
+ splice(start: number, deleteCount: number, ...items: TypedFlatConfigItem[]): TypedFlatConfigItem[];
27
+ unshift(...items: TypedFlatConfigItem[]): number;
28
+ indexOf(searchElement: TypedFlatConfigItem, fromIndex?: number): number;
29
+ lastIndexOf(searchElement: TypedFlatConfigItem, fromIndex?: number): number;
30
+ every<S extends TypedFlatConfigItem>(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => value is S, thisArg?: any): this is S[];
31
+ every(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => unknown, thisArg?: any): boolean;
32
+ some(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => unknown, thisArg?: any): boolean;
33
+ forEach(callbackfn: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => void, thisArg?: any): void;
34
+ map<U>(callbackfn: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => U, thisArg?: any): U[];
35
+ filter<S extends TypedFlatConfigItem>(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => value is S, thisArg?: any): S[];
36
+ filter(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => unknown, thisArg?: any): TypedFlatConfigItem[];
37
+ reduce(callbackfn: (previousValue: TypedFlatConfigItem, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => TypedFlatConfigItem): TypedFlatConfigItem;
38
+ reduce(callbackfn: (previousValue: TypedFlatConfigItem, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => TypedFlatConfigItem, initialValue: TypedFlatConfigItem): TypedFlatConfigItem;
39
+ reduce<U>(callbackfn: (previousValue: U, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => U, initialValue: U): U;
40
+ reduceRight(callbackfn: (previousValue: TypedFlatConfigItem, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => TypedFlatConfigItem): TypedFlatConfigItem;
41
+ reduceRight(callbackfn: (previousValue: TypedFlatConfigItem, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => TypedFlatConfigItem, initialValue: TypedFlatConfigItem): TypedFlatConfigItem;
42
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => U, initialValue: U): U;
43
+ find<S extends TypedFlatConfigItem>(predicate: (value: TypedFlatConfigItem, index: number, obj: TypedFlatConfigItem[]) => value is S, thisArg?: any): S | undefined;
44
+ find(predicate: (value: TypedFlatConfigItem, index: number, obj: TypedFlatConfigItem[]) => unknown, thisArg?: any): TypedFlatConfigItem | undefined;
45
+ findIndex(predicate: (value: TypedFlatConfigItem, index: number, obj: TypedFlatConfigItem[]) => unknown, thisArg?: any): number;
46
+ fill(value: TypedFlatConfigItem, start?: number, end?: number): TypedFlatConfigItem[];
47
+ copyWithin(target: number, start: number, end?: number): TypedFlatConfigItem[];
48
+ entries(): ArrayIterator<[number, TypedFlatConfigItem]>;
49
+ keys(): ArrayIterator<number>;
50
+ values(): ArrayIterator<TypedFlatConfigItem>;
51
+ includes(searchElement: TypedFlatConfigItem, fromIndex?: number): boolean;
52
+ flatMap<U, This = undefined>(callback: (this: This, value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => U | readonly U[], thisArg?: This | undefined): U[];
53
+ flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
54
+ [Symbol.iterator](): ArrayIterator<TypedFlatConfigItem>;
55
+ [Symbol.unscopables]: {
56
+ [x: number]: boolean | undefined;
57
+ length?: boolean | undefined;
58
+ toString?: boolean | undefined;
59
+ toLocaleString?: boolean | undefined;
60
+ pop?: boolean | undefined;
61
+ push?: boolean | undefined;
62
+ concat?: boolean | undefined;
63
+ join?: boolean | undefined;
64
+ reverse?: boolean | undefined;
65
+ shift?: boolean | undefined;
66
+ slice?: boolean | undefined;
67
+ sort?: boolean | undefined;
68
+ splice?: boolean | undefined;
69
+ unshift?: boolean | undefined;
70
+ indexOf?: boolean | undefined;
71
+ lastIndexOf?: boolean | undefined;
72
+ every?: boolean | undefined;
73
+ some?: boolean | undefined;
74
+ forEach?: boolean | undefined;
75
+ map?: boolean | undefined;
76
+ filter?: boolean | undefined;
77
+ reduce?: boolean | undefined;
78
+ reduceRight?: boolean | undefined;
79
+ find?: boolean | undefined;
80
+ findIndex?: boolean | undefined;
81
+ fill?: boolean | undefined;
82
+ copyWithin?: boolean | undefined;
83
+ entries?: boolean | undefined;
84
+ keys?: boolean | undefined;
85
+ values?: boolean | undefined;
86
+ includes?: boolean | undefined;
87
+ flatMap?: boolean | undefined;
88
+ flat?: boolean | undefined;
89
+ [Symbol.iterator]?: boolean | undefined;
90
+ readonly [Symbol.unscopables]?: boolean | undefined;
91
+ at?: boolean | undefined;
92
+ };
93
+ at(index: number): TypedFlatConfigItem | undefined;
94
+ name: string;
95
+ files?: Array<string | string[]>;
96
+ ignores?: string[];
97
+ language?: string;
98
+ languageOptions?: import("eslint").Linter.LanguageOptions;
99
+ linterOptions?: import("eslint").Linter.LinterOptions;
100
+ processor?: string | import("eslint").Linter.Processor;
101
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
102
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
103
+ settings?: Record<string, unknown>;
104
+ } | {
105
+ [Symbol.toStringTag]: string;
106
+ name: string;
107
+ files?: Array<string | string[]>;
108
+ ignores?: string[];
109
+ language?: string;
110
+ languageOptions?: import("eslint").Linter.LanguageOptions;
111
+ linterOptions?: import("eslint").Linter.LinterOptions;
112
+ processor?: string | import("eslint").Linter.Processor;
113
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
114
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
115
+ settings?: Record<string, unknown>;
116
+ } | {
117
+ length: number;
118
+ toString(): string;
119
+ toLocaleString(): string;
120
+ toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
121
+ pop(): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | undefined;
122
+ push(...items: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]): number;
123
+ concat(...items: ConcatArray<import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>[]): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
124
+ concat(...items: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | ConcatArray<import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>)[]): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
125
+ join(separator?: string): string;
126
+ reverse(): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
127
+ shift(): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | undefined;
128
+ slice(start?: number, end?: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
129
+ sort(compareFn?: ((a: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, b: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>) => number) | undefined): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
130
+ splice(start: number, deleteCount?: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
131
+ splice(start: number, deleteCount: number, ...items: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
132
+ unshift(...items: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]): number;
133
+ indexOf(searchElement: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, fromIndex?: number): number;
134
+ lastIndexOf(searchElement: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, fromIndex?: number): number;
135
+ every<S extends import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => value is S, thisArg?: any): this is S[];
136
+ every(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): boolean;
137
+ some(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): boolean;
138
+ forEach(callbackfn: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => void, thisArg?: any): void;
139
+ map<U>(callbackfn: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => U, thisArg?: any): U[];
140
+ filter<S extends import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => value is S, thisArg?: any): S[];
141
+ filter(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
142
+ reduce(callbackfn: (previousValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
143
+ reduce(callbackfn: (previousValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, initialValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
144
+ reduce<U>(callbackfn: (previousValue: U, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => U, initialValue: U): U;
145
+ reduceRight(callbackfn: (previousValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
146
+ reduceRight(callbackfn: (previousValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, initialValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
147
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => U, initialValue: U): U;
148
+ find<S extends import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, obj: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => value is S, thisArg?: any): S | undefined;
149
+ find(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, obj: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | undefined;
150
+ findIndex(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, obj: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): number;
151
+ fill(value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, start?: number, end?: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
152
+ copyWithin(target: number, start: number, end?: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
153
+ entries(): ArrayIterator<[number, import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>]>;
154
+ keys(): ArrayIterator<number>;
155
+ values(): ArrayIterator<import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>;
156
+ includes(searchElement: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, fromIndex?: number): boolean;
157
+ flatMap<U, This = undefined>(callback: (this: This, value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => U | readonly U[], thisArg?: This | undefined): U[];
158
+ flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
159
+ [Symbol.iterator](): ArrayIterator<import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>;
160
+ [Symbol.unscopables]: {
161
+ [x: number]: boolean | undefined;
162
+ length?: boolean | undefined;
163
+ toString?: boolean | undefined;
164
+ toLocaleString?: boolean | undefined;
165
+ pop?: boolean | undefined;
166
+ push?: boolean | undefined;
167
+ concat?: boolean | undefined;
168
+ join?: boolean | undefined;
169
+ reverse?: boolean | undefined;
170
+ shift?: boolean | undefined;
171
+ slice?: boolean | undefined;
172
+ sort?: boolean | undefined;
173
+ splice?: boolean | undefined;
174
+ unshift?: boolean | undefined;
175
+ indexOf?: boolean | undefined;
176
+ lastIndexOf?: boolean | undefined;
177
+ every?: boolean | undefined;
178
+ some?: boolean | undefined;
179
+ forEach?: boolean | undefined;
180
+ map?: boolean | undefined;
181
+ filter?: boolean | undefined;
182
+ reduce?: boolean | undefined;
183
+ reduceRight?: boolean | undefined;
184
+ find?: boolean | undefined;
185
+ findIndex?: boolean | undefined;
186
+ fill?: boolean | undefined;
187
+ copyWithin?: boolean | undefined;
188
+ entries?: boolean | undefined;
189
+ keys?: boolean | undefined;
190
+ values?: boolean | undefined;
191
+ includes?: boolean | undefined;
192
+ flatMap?: boolean | undefined;
193
+ flat?: boolean | undefined;
194
+ [Symbol.iterator]?: boolean | undefined;
195
+ readonly [Symbol.unscopables]?: boolean | undefined;
196
+ at?: boolean | undefined;
197
+ };
198
+ at(index: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | undefined;
199
+ name: string;
200
+ files?: Array<string | string[]>;
201
+ ignores?: string[];
202
+ language?: string;
203
+ languageOptions?: import("eslint").Linter.LanguageOptions;
204
+ linterOptions?: import("eslint").Linter.LinterOptions;
205
+ processor?: string | import("eslint").Linter.Processor;
206
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
207
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
208
+ settings?: Record<string, unknown>;
209
+ } | {
210
+ then<TResult1 = TypedFlatConfigItem | TypedFlatConfigItem[] | import("eslint-flat-config-utils/index").FlatConfigComposer<any, any> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[], TResult2 = never>(onfulfilled?: ((value: TypedFlatConfigItem | TypedFlatConfigItem[] | import("eslint-flat-config-utils/index").FlatConfigComposer<any, any> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
211
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<TypedFlatConfigItem | TypedFlatConfigItem[] | import("eslint-flat-config-utils/index").FlatConfigComposer<any, any> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[] | TResult>;
212
+ finally(onfinally?: (() => void) | null | undefined): Promise<TypedFlatConfigItem | TypedFlatConfigItem[] | import("eslint-flat-config-utils/index").FlatConfigComposer<any, any> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]>;
213
+ [Symbol.toStringTag]: string;
214
+ name: string;
215
+ files?: Array<string | string[]>;
216
+ ignores?: string[];
217
+ language?: string;
218
+ languageOptions?: import("eslint").Linter.LanguageOptions;
219
+ linterOptions?: import("eslint").Linter.LinterOptions;
220
+ processor?: string | import("eslint").Linter.Processor;
221
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
222
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
223
+ settings?: Record<string, unknown>;
224
+ } | {
225
+ name: string;
226
+ files?: Array<string | string[]>;
227
+ ignores?: string[];
228
+ language?: string;
229
+ languageOptions?: import("eslint").Linter.LanguageOptions;
230
+ linterOptions?: import("eslint").Linter.LinterOptions;
231
+ processor?: string | import("eslint").Linter.Processor;
232
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
233
+ settings?: Record<string, unknown>;
234
+ plugins?: Record<string, any> | undefined;
235
+ })[];
236
+ export { mdx };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mdx = void 0;
7
+ var mdxPlugin = _interopRequireWildcard(require("eslint-plugin-mdx"));
8
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
+ const mdx = ({
11
+ flatCodeBlocks = true,
12
+ processorOptions,
13
+ ...options
14
+ } = {}) => [{
15
+ name: "vdustr/mdx",
16
+ ...mdxPlugin.flat,
17
+ ...options,
18
+ processor: mdxPlugin.createRemarkProcessor({
19
+ lintCodeBlocks: Boolean(flatCodeBlocks),
20
+ ...processorOptions,
21
+ languageMapper: {
22
+ ...processorOptions?.languageMapper
23
+ }
24
+ })
25
+ }, ...(!flatCodeBlocks ? [] : [{
26
+ name: "vdustr/mdx/flat-code-blocks",
27
+ ...mdxPlugin.flatCodeBlocks,
28
+ ...(typeof flatCodeBlocks !== "object" ? null : flatCodeBlocks)
29
+ }])];
30
+ exports.mdx = mdx;
@@ -0,0 +1,3 @@
1
+ import type { Config } from "../types";
2
+ declare const prettier: Config;
3
+ export { prettier };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.prettier = void 0;
7
+ var _eslintConfig = require("@antfu/eslint-config");
8
+ var _eslintConfigPrettier = _interopRequireDefault(require("eslint-config-prettier"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ const prettier = exports.prettier = {
11
+ name: "vdustr/prettier",
12
+ ..._eslintConfigPrettier.default,
13
+ rules: (0, _eslintConfig.renameRules)(_eslintConfigPrettier.default.rules, _eslintConfig.defaultPluginRenaming)
14
+ };
@@ -0,0 +1,26 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ import type { Linter } from 'eslint'
4
+
5
+ declare module 'eslint' {
6
+ namespace Linter {
7
+ interface RulesRecord extends RuleOptions {}
8
+ }
9
+ }
10
+
11
+ export interface RuleOptions {
12
+ /**
13
+ * Linter integration with remark plugins
14
+ */
15
+ 'mdx/remark'?: Linter.RuleEntry<[]>
16
+ /**
17
+ * Surfaces diagnostics from React Forget
18
+ */
19
+ 'react-compiler/react-compiler'?: Linter.RuleEntry<ReactCompilerReactCompiler>
20
+ }
21
+
22
+ /* ======= Declarations ======= */
23
+ // ----- react-compiler/react-compiler -----
24
+ type ReactCompilerReactCompiler = []|[{
25
+ [k: string]: unknown | undefined
26
+ }]
@@ -0,0 +1,236 @@
1
+ import type { TypedFlatConfigItem } from "@antfu/eslint-config";
2
+ import type { DistributiveOmit } from "@mui/types";
3
+ import type { Config } from "../types";
4
+ import * as mdxPlugin from "eslint-plugin-mdx";
5
+ declare namespace mdx {
6
+ interface Options extends DistributiveOmit<TypedFlatConfigItem, "processor"> {
7
+ processorOptions?: mdxPlugin.ProcessorOptions;
8
+ flatCodeBlocks?: boolean | Config;
9
+ }
10
+ }
11
+ declare const mdx: ({ flatCodeBlocks, processorOptions, ...options }?: mdx.Options) => ({
12
+ length: number;
13
+ toString(): string;
14
+ toLocaleString(): string;
15
+ toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
16
+ pop(): TypedFlatConfigItem | undefined;
17
+ push(...items: TypedFlatConfigItem[]): number;
18
+ concat(...items: ConcatArray<TypedFlatConfigItem>[]): TypedFlatConfigItem[];
19
+ concat(...items: (TypedFlatConfigItem | ConcatArray<TypedFlatConfigItem>)[]): TypedFlatConfigItem[];
20
+ join(separator?: string): string;
21
+ reverse(): TypedFlatConfigItem[];
22
+ shift(): TypedFlatConfigItem | undefined;
23
+ slice(start?: number, end?: number): TypedFlatConfigItem[];
24
+ sort(compareFn?: ((a: TypedFlatConfigItem, b: TypedFlatConfigItem) => number) | undefined): TypedFlatConfigItem[];
25
+ splice(start: number, deleteCount?: number): TypedFlatConfigItem[];
26
+ splice(start: number, deleteCount: number, ...items: TypedFlatConfigItem[]): TypedFlatConfigItem[];
27
+ unshift(...items: TypedFlatConfigItem[]): number;
28
+ indexOf(searchElement: TypedFlatConfigItem, fromIndex?: number): number;
29
+ lastIndexOf(searchElement: TypedFlatConfigItem, fromIndex?: number): number;
30
+ every<S extends TypedFlatConfigItem>(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => value is S, thisArg?: any): this is S[];
31
+ every(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => unknown, thisArg?: any): boolean;
32
+ some(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => unknown, thisArg?: any): boolean;
33
+ forEach(callbackfn: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => void, thisArg?: any): void;
34
+ map<U>(callbackfn: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => U, thisArg?: any): U[];
35
+ filter<S extends TypedFlatConfigItem>(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => value is S, thisArg?: any): S[];
36
+ filter(predicate: (value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => unknown, thisArg?: any): TypedFlatConfigItem[];
37
+ reduce(callbackfn: (previousValue: TypedFlatConfigItem, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => TypedFlatConfigItem): TypedFlatConfigItem;
38
+ reduce(callbackfn: (previousValue: TypedFlatConfigItem, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => TypedFlatConfigItem, initialValue: TypedFlatConfigItem): TypedFlatConfigItem;
39
+ reduce<U>(callbackfn: (previousValue: U, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => U, initialValue: U): U;
40
+ reduceRight(callbackfn: (previousValue: TypedFlatConfigItem, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => TypedFlatConfigItem): TypedFlatConfigItem;
41
+ reduceRight(callbackfn: (previousValue: TypedFlatConfigItem, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => TypedFlatConfigItem, initialValue: TypedFlatConfigItem): TypedFlatConfigItem;
42
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: TypedFlatConfigItem, currentIndex: number, array: TypedFlatConfigItem[]) => U, initialValue: U): U;
43
+ find<S extends TypedFlatConfigItem>(predicate: (value: TypedFlatConfigItem, index: number, obj: TypedFlatConfigItem[]) => value is S, thisArg?: any): S | undefined;
44
+ find(predicate: (value: TypedFlatConfigItem, index: number, obj: TypedFlatConfigItem[]) => unknown, thisArg?: any): TypedFlatConfigItem | undefined;
45
+ findIndex(predicate: (value: TypedFlatConfigItem, index: number, obj: TypedFlatConfigItem[]) => unknown, thisArg?: any): number;
46
+ fill(value: TypedFlatConfigItem, start?: number, end?: number): TypedFlatConfigItem[];
47
+ copyWithin(target: number, start: number, end?: number): TypedFlatConfigItem[];
48
+ entries(): ArrayIterator<[number, TypedFlatConfigItem]>;
49
+ keys(): ArrayIterator<number>;
50
+ values(): ArrayIterator<TypedFlatConfigItem>;
51
+ includes(searchElement: TypedFlatConfigItem, fromIndex?: number): boolean;
52
+ flatMap<U, This = undefined>(callback: (this: This, value: TypedFlatConfigItem, index: number, array: TypedFlatConfigItem[]) => U | readonly U[], thisArg?: This | undefined): U[];
53
+ flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
54
+ [Symbol.iterator](): ArrayIterator<TypedFlatConfigItem>;
55
+ [Symbol.unscopables]: {
56
+ [x: number]: boolean | undefined;
57
+ length?: boolean | undefined;
58
+ toString?: boolean | undefined;
59
+ toLocaleString?: boolean | undefined;
60
+ pop?: boolean | undefined;
61
+ push?: boolean | undefined;
62
+ concat?: boolean | undefined;
63
+ join?: boolean | undefined;
64
+ reverse?: boolean | undefined;
65
+ shift?: boolean | undefined;
66
+ slice?: boolean | undefined;
67
+ sort?: boolean | undefined;
68
+ splice?: boolean | undefined;
69
+ unshift?: boolean | undefined;
70
+ indexOf?: boolean | undefined;
71
+ lastIndexOf?: boolean | undefined;
72
+ every?: boolean | undefined;
73
+ some?: boolean | undefined;
74
+ forEach?: boolean | undefined;
75
+ map?: boolean | undefined;
76
+ filter?: boolean | undefined;
77
+ reduce?: boolean | undefined;
78
+ reduceRight?: boolean | undefined;
79
+ find?: boolean | undefined;
80
+ findIndex?: boolean | undefined;
81
+ fill?: boolean | undefined;
82
+ copyWithin?: boolean | undefined;
83
+ entries?: boolean | undefined;
84
+ keys?: boolean | undefined;
85
+ values?: boolean | undefined;
86
+ includes?: boolean | undefined;
87
+ flatMap?: boolean | undefined;
88
+ flat?: boolean | undefined;
89
+ [Symbol.iterator]?: boolean | undefined;
90
+ readonly [Symbol.unscopables]?: boolean | undefined;
91
+ at?: boolean | undefined;
92
+ };
93
+ at(index: number): TypedFlatConfigItem | undefined;
94
+ name: string;
95
+ files?: Array<string | string[]>;
96
+ ignores?: string[];
97
+ language?: string;
98
+ languageOptions?: import("eslint").Linter.LanguageOptions;
99
+ linterOptions?: import("eslint").Linter.LinterOptions;
100
+ processor?: string | import("eslint").Linter.Processor;
101
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
102
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
103
+ settings?: Record<string, unknown>;
104
+ } | {
105
+ [Symbol.toStringTag]: string;
106
+ name: string;
107
+ files?: Array<string | string[]>;
108
+ ignores?: string[];
109
+ language?: string;
110
+ languageOptions?: import("eslint").Linter.LanguageOptions;
111
+ linterOptions?: import("eslint").Linter.LinterOptions;
112
+ processor?: string | import("eslint").Linter.Processor;
113
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
114
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
115
+ settings?: Record<string, unknown>;
116
+ } | {
117
+ length: number;
118
+ toString(): string;
119
+ toLocaleString(): string;
120
+ toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
121
+ pop(): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | undefined;
122
+ push(...items: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]): number;
123
+ concat(...items: ConcatArray<import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>[]): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
124
+ concat(...items: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | ConcatArray<import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>)[]): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
125
+ join(separator?: string): string;
126
+ reverse(): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
127
+ shift(): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | undefined;
128
+ slice(start?: number, end?: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
129
+ sort(compareFn?: ((a: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, b: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>) => number) | undefined): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
130
+ splice(start: number, deleteCount?: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
131
+ splice(start: number, deleteCount: number, ...items: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
132
+ unshift(...items: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]): number;
133
+ indexOf(searchElement: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, fromIndex?: number): number;
134
+ lastIndexOf(searchElement: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, fromIndex?: number): number;
135
+ every<S extends import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => value is S, thisArg?: any): this is S[];
136
+ every(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): boolean;
137
+ some(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): boolean;
138
+ forEach(callbackfn: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => void, thisArg?: any): void;
139
+ map<U>(callbackfn: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => U, thisArg?: any): U[];
140
+ filter<S extends import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => value is S, thisArg?: any): S[];
141
+ filter(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
142
+ reduce(callbackfn: (previousValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
143
+ reduce(callbackfn: (previousValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, initialValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
144
+ reduce<U>(callbackfn: (previousValue: U, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => U, initialValue: U): U;
145
+ reduceRight(callbackfn: (previousValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
146
+ reduceRight(callbackfn: (previousValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, initialValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
147
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, currentIndex: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => U, initialValue: U): U;
148
+ find<S extends import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, obj: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => value is S, thisArg?: any): S | undefined;
149
+ find(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, obj: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | undefined;
150
+ findIndex(predicate: (value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, obj: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => unknown, thisArg?: any): number;
151
+ fill(value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, start?: number, end?: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
152
+ copyWithin(target: number, start: number, end?: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
153
+ entries(): ArrayIterator<[number, import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>]>;
154
+ keys(): ArrayIterator<number>;
155
+ values(): ArrayIterator<import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>;
156
+ includes(searchElement: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, fromIndex?: number): boolean;
157
+ flatMap<U, This = undefined>(callback: (this: This, value: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>, index: number, array: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => U | readonly U[], thisArg?: This | undefined): U[];
158
+ flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
159
+ [Symbol.iterator](): ArrayIterator<import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>>;
160
+ [Symbol.unscopables]: {
161
+ [x: number]: boolean | undefined;
162
+ length?: boolean | undefined;
163
+ toString?: boolean | undefined;
164
+ toLocaleString?: boolean | undefined;
165
+ pop?: boolean | undefined;
166
+ push?: boolean | undefined;
167
+ concat?: boolean | undefined;
168
+ join?: boolean | undefined;
169
+ reverse?: boolean | undefined;
170
+ shift?: boolean | undefined;
171
+ slice?: boolean | undefined;
172
+ sort?: boolean | undefined;
173
+ splice?: boolean | undefined;
174
+ unshift?: boolean | undefined;
175
+ indexOf?: boolean | undefined;
176
+ lastIndexOf?: boolean | undefined;
177
+ every?: boolean | undefined;
178
+ some?: boolean | undefined;
179
+ forEach?: boolean | undefined;
180
+ map?: boolean | undefined;
181
+ filter?: boolean | undefined;
182
+ reduce?: boolean | undefined;
183
+ reduceRight?: boolean | undefined;
184
+ find?: boolean | undefined;
185
+ findIndex?: boolean | undefined;
186
+ fill?: boolean | undefined;
187
+ copyWithin?: boolean | undefined;
188
+ entries?: boolean | undefined;
189
+ keys?: boolean | undefined;
190
+ values?: boolean | undefined;
191
+ includes?: boolean | undefined;
192
+ flatMap?: boolean | undefined;
193
+ flat?: boolean | undefined;
194
+ [Symbol.iterator]?: boolean | undefined;
195
+ readonly [Symbol.unscopables]?: boolean | undefined;
196
+ at?: boolean | undefined;
197
+ };
198
+ at(index: number): import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | undefined;
199
+ name: string;
200
+ files?: Array<string | string[]>;
201
+ ignores?: string[];
202
+ language?: string;
203
+ languageOptions?: import("eslint").Linter.LanguageOptions;
204
+ linterOptions?: import("eslint").Linter.LinterOptions;
205
+ processor?: string | import("eslint").Linter.Processor;
206
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
207
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
208
+ settings?: Record<string, unknown>;
209
+ } | {
210
+ then<TResult1 = TypedFlatConfigItem | TypedFlatConfigItem[] | import("eslint-flat-config-utils/index").FlatConfigComposer<any, any> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[], TResult2 = never>(onfulfilled?: ((value: TypedFlatConfigItem | TypedFlatConfigItem[] | import("eslint-flat-config-utils/index").FlatConfigComposer<any, any> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
211
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<TypedFlatConfigItem | TypedFlatConfigItem[] | import("eslint-flat-config-utils/index").FlatConfigComposer<any, any> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[] | TResult>;
212
+ finally(onfinally?: (() => void) | null | undefined): Promise<TypedFlatConfigItem | TypedFlatConfigItem[] | import("eslint-flat-config-utils/index").FlatConfigComposer<any, any> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]>;
213
+ [Symbol.toStringTag]: string;
214
+ name: string;
215
+ files?: Array<string | string[]>;
216
+ ignores?: string[];
217
+ language?: string;
218
+ languageOptions?: import("eslint").Linter.LanguageOptions;
219
+ linterOptions?: import("eslint").Linter.LinterOptions;
220
+ processor?: string | import("eslint").Linter.Processor;
221
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
222
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
223
+ settings?: Record<string, unknown>;
224
+ } | {
225
+ name: string;
226
+ files?: Array<string | string[]>;
227
+ ignores?: string[];
228
+ language?: string;
229
+ languageOptions?: import("eslint").Linter.LanguageOptions;
230
+ linterOptions?: import("eslint").Linter.LinterOptions;
231
+ processor?: string | import("eslint").Linter.Processor;
232
+ rules?: Partial<import("eslint").Linter.RulesRecord> | undefined;
233
+ settings?: Record<string, unknown>;
234
+ plugins?: Record<string, any> | undefined;
235
+ })[];
236
+ export { mdx };