@nelsonlaidev/eslint-config 4.2.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -100
- package/dist/index.d.mts +22 -205
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +290 -342
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @nelsonlaidev/eslint-config
|
|
2
2
|
|
|
3
|
-
[](https://npmx.dev/package/@nelsonlaidev/eslint-config)
|
|
4
|
+
[](https://npmx.dev/package/@nelsonlaidev/eslint-config)
|
|
5
5
|
[](https://github.com/nelsonlaidev/config/blob/main/LICENSE)
|
|
6
6
|
|
|
7
7
|
Personal ESLint configurations for Nelson Lai projects.
|
|
@@ -12,120 +12,106 @@ Personal ESLint configurations for Nelson Lai projects.
|
|
|
12
12
|
npm i -D @nelsonlaidev/eslint-config
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
## Usage
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Create an `eslint.config.ts` file. The base configuration includes the shared JavaScript, TypeScript, accessibility, import, and code-quality rules:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { defineConfig } from '@nelsonlaidev/eslint-config'
|
|
21
|
+
|
|
22
|
+
export default defineConfig()
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Pass project-specific flat configuration objects directly to `defineConfig()`:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
18
28
|
import { defineConfig } from '@nelsonlaidev/eslint-config'
|
|
19
29
|
|
|
20
30
|
export default defineConfig({
|
|
21
|
-
|
|
31
|
+
files: ['scripts/**/*.ts'],
|
|
32
|
+
rules: {
|
|
33
|
+
'no-console': 'off',
|
|
34
|
+
},
|
|
22
35
|
})
|
|
23
36
|
```
|
|
24
37
|
|
|
25
|
-
###
|
|
38
|
+
### Optional presets
|
|
39
|
+
|
|
40
|
+
Framework and tool integrations are explicit. Import the presets you need and pass them in the order they should be applied:
|
|
26
41
|
|
|
27
42
|
```ts
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
collapse?: boolean
|
|
50
|
-
logical?: boolean
|
|
51
|
-
}
|
|
52
|
-
classOrder?: {
|
|
53
|
-
order?: 'asc' | 'desc' | 'official' | 'strict'
|
|
54
|
-
componentOrder?: 'asc' | 'desc' | 'preserve'
|
|
55
|
-
componentPosition?: 'start' | 'end'
|
|
56
|
-
unknownOrder?: 'asc' | 'desc' | 'preserve'
|
|
57
|
-
unknownPosition?: 'start' | 'end'
|
|
58
|
-
}
|
|
59
|
-
restrict?: Array<string | { pattern: string; message?: string; fix?: string }>
|
|
60
|
-
ignore?: string[]
|
|
61
|
-
whitespace?: {
|
|
62
|
-
allowMultiline?: boolean
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
// Optional
|
|
66
|
-
// Configure JSX accessibility linting rules
|
|
67
|
-
jsxA11y?: {
|
|
68
|
-
// jsx-a11y plugin options
|
|
69
|
-
a11y?: {
|
|
70
|
-
// Custom component to native element mappings
|
|
71
|
-
// Example: { Button: 'button', Link: 'a' }
|
|
72
|
-
components?: Record<string, string>
|
|
73
|
-
// Custom attribute mappings
|
|
74
|
-
attributes?: {
|
|
75
|
-
for?: string[]
|
|
76
|
-
}
|
|
77
|
-
// Polymorphic component prop name (e.g., 'as' or 'component')
|
|
78
|
-
polymorphicPropName?: string
|
|
79
|
-
// List of allowed polymorphic component types
|
|
80
|
-
polymorphicAllowList?: string[]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
// Optional
|
|
84
|
-
// Configure Vitest (also enable ESLint rules for vitest)
|
|
85
|
-
vitest?: {
|
|
86
|
-
// Specify files/globs for Vitest
|
|
87
|
-
files: Array<string | string[]>
|
|
88
|
-
}
|
|
89
|
-
// Optional
|
|
90
|
-
// Configure Playwright (also enable ESLint rules for playwright)
|
|
91
|
-
playwright?: {
|
|
92
|
-
// Specify files/globs for Playwright
|
|
93
|
-
files: Array<string | string[]>
|
|
94
|
-
assertFunctionNames?: string[]
|
|
95
|
-
assertFunctionPatterns?: string[]
|
|
96
|
-
}
|
|
97
|
-
// Optional
|
|
98
|
-
// Disable ESLint rules that conflict with Prettier
|
|
99
|
-
// Defaults to true if Prettier is installed
|
|
100
|
-
prettier?: boolean
|
|
101
|
-
// Optional
|
|
102
|
-
// Specify files to ignore
|
|
103
|
-
ignores?: string[]
|
|
104
|
-
// Optional
|
|
105
|
-
// Configure TypeScript import resolver for monorepos
|
|
106
|
-
// Defaults to scanning root tsconfig.json and apps/**/{ts,js}config.json and packages/**/{ts,js}config.json
|
|
107
|
-
typescriptResolver?: import('eslint-import-resolver-typescript').TypeScriptResolverOptions
|
|
108
|
-
}
|
|
43
|
+
import { defineConfig, nextjs, playwright, prettier, react, tailwindcss, vitest } from '@nelsonlaidev/eslint-config'
|
|
44
|
+
|
|
45
|
+
export default defineConfig(
|
|
46
|
+
vitest({
|
|
47
|
+
files: ['**/*.test.{js,jsx,ts,tsx}'],
|
|
48
|
+
}),
|
|
49
|
+
playwright({
|
|
50
|
+
files: ['**/e2e/**/*.test.{js,jsx,ts,tsx}'],
|
|
51
|
+
}),
|
|
52
|
+
react(),
|
|
53
|
+
nextjs(),
|
|
54
|
+
tailwindcss({
|
|
55
|
+
settings: {
|
|
56
|
+
'better-tailwindcss': {
|
|
57
|
+
entryPoint: './src/globals.css',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
61
|
+
// Keep Prettier last so it can disable conflicting rules.
|
|
62
|
+
prettier(),
|
|
63
|
+
)
|
|
109
64
|
```
|
|
110
65
|
|
|
111
|
-
|
|
66
|
+
Available optional presets are `react()`, `nextjs()`, `tailwindcss()`, `vitest()`, `playwright()`, and `prettier()`.
|
|
112
67
|
|
|
113
|
-
|
|
68
|
+
Each preset accepts an ESLint flat configuration override. Arrays are replaced, nested objects are merged, and plugin maps are combined:
|
|
114
69
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
70
|
+
```ts
|
|
71
|
+
export default defineConfig(
|
|
72
|
+
react({
|
|
73
|
+
rules: {
|
|
74
|
+
'@eslint-react/immutability': 'warn',
|
|
75
|
+
},
|
|
76
|
+
}),
|
|
77
|
+
)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
When enabling Vitest or Playwright, provide `files` unless you intentionally want their rules to apply to every linted file.
|
|
81
|
+
|
|
82
|
+
### Base options
|
|
118
83
|
|
|
119
|
-
|
|
84
|
+
Use `defineConfig.withOptions()` only when changing options consumed while the base configuration is created:
|
|
120
85
|
|
|
121
86
|
```ts
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
87
|
+
import { defineConfig, react } from '@nelsonlaidev/eslint-config'
|
|
88
|
+
|
|
89
|
+
export default defineConfig.withOptions(
|
|
90
|
+
{
|
|
91
|
+
ignores: ['coverage/**', 'generated/**'],
|
|
92
|
+
typescriptResolver: {
|
|
93
|
+
alwaysTryTypes: true,
|
|
94
|
+
bun: true,
|
|
95
|
+
project: ['packages/foo/tsconfig.json'],
|
|
96
|
+
},
|
|
127
97
|
},
|
|
128
|
-
|
|
98
|
+
react(),
|
|
99
|
+
)
|
|
129
100
|
```
|
|
130
101
|
|
|
131
|
-
|
|
102
|
+
The available base options are:
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
type ConfigOptions = {
|
|
106
|
+
ignores?: string[]
|
|
107
|
+
typescriptResolver?: import('eslint-import-resolver-typescript').TypeScriptResolverOptions
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
By default, the TypeScript import resolver scans these locations:
|
|
112
|
+
|
|
113
|
+
- `{ts,js}config.json`
|
|
114
|
+
- `apps/**/{ts,js}config.json`
|
|
115
|
+
- `packages/**/{ts,js}config.json`
|
|
116
|
+
|
|
117
|
+
Refer to the [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) documentation for all resolver options.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,214 +1,11 @@
|
|
|
1
1
|
import { TypeScriptResolverOptions } from "eslint-import-resolver-typescript";
|
|
2
2
|
import { Linter } from "eslint";
|
|
3
|
-
import { Selectors } from "eslint-plugin-better-tailwindcss/types";
|
|
4
3
|
|
|
5
|
-
//#region src/types/jsx-a11y.d.ts
|
|
6
|
-
type JsxA11yConfigOptions = {
|
|
7
|
-
a11y?: JsxA11yOptions;
|
|
8
|
-
};
|
|
9
|
-
type JsxA11yOptions = {
|
|
10
|
-
/**
|
|
11
|
-
* See [official docs](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/main?tab=readme-ov-file#component-mapping) for more details.
|
|
12
|
-
*/
|
|
13
|
-
components?: Record<string, string>;
|
|
14
|
-
/**
|
|
15
|
-
* See [official docs](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/main?tab=readme-ov-file#attribute-mapping) for more details.
|
|
16
|
-
*/
|
|
17
|
-
attributes?: {
|
|
18
|
-
for?: string[];
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* See [official docs](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/main?tab=readme-ov-file#polymorphic-components) for more details.
|
|
22
|
-
*/
|
|
23
|
-
polymorphicPropName?: string;
|
|
24
|
-
/**
|
|
25
|
-
* See [official docs](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/main?tab=readme-ov-file#polymorphic-components) for more details.
|
|
26
|
-
*/
|
|
27
|
-
polymorphicAllowList?: string[];
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/types/playwright.d.ts
|
|
31
|
-
/**
|
|
32
|
-
* Playwright configuration options.
|
|
33
|
-
*/
|
|
34
|
-
type PlaywrightOptions = {
|
|
35
|
-
/**
|
|
36
|
-
* File paths or glob patterns for your Playwright test files.
|
|
37
|
-
*/
|
|
38
|
-
files: Array<string | string[]>;
|
|
39
|
-
/**
|
|
40
|
-
* See [official docs](https://github.com/mskelton/eslint-plugin-playwright/blob/main/docs/rules/expect-expect.md#assertfunctionnames) for more details.
|
|
41
|
-
* @default []
|
|
42
|
-
*/
|
|
43
|
-
assertFunctionNames?: string[];
|
|
44
|
-
/**
|
|
45
|
-
* See [official docs](https://github.com/mskelton/eslint-plugin-playwright/blob/main/docs/rules/expect-expect.md#assertfunctionpatterns) for more details.
|
|
46
|
-
* @default []
|
|
47
|
-
*/
|
|
48
|
-
assertFunctionPatterns?: string[];
|
|
49
|
-
};
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region src/types/tailwindcss.d.ts
|
|
52
|
-
type TailwindCSSOptions = {
|
|
53
|
-
/**
|
|
54
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#entrypoint) for more details.
|
|
55
|
-
*/
|
|
56
|
-
entryPoint?: string;
|
|
57
|
-
/**
|
|
58
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#tailwindconfig) for more details.
|
|
59
|
-
*/
|
|
60
|
-
tailwindConfig?: string;
|
|
61
|
-
/**
|
|
62
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#tsconfig) for more details.
|
|
63
|
-
*/
|
|
64
|
-
tsconfig?: string;
|
|
65
|
-
/**
|
|
66
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#cwd) for more details.
|
|
67
|
-
*/
|
|
68
|
-
cwd?: string;
|
|
69
|
-
/**
|
|
70
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#detectcomponentclasses) for more details.
|
|
71
|
-
* @default false
|
|
72
|
-
*/
|
|
73
|
-
detectComponentClasses?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#rootfontsize) for more details.
|
|
76
|
-
* @default 16
|
|
77
|
-
*/
|
|
78
|
-
rootFontSize?: number;
|
|
79
|
-
/**
|
|
80
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#messagestyle) for more details.
|
|
81
|
-
* @default 'visual'
|
|
82
|
-
* @default 'compact' (when running in CI)
|
|
83
|
-
*/
|
|
84
|
-
messageStyle?: 'visual' | 'compact' | 'raw';
|
|
85
|
-
/**
|
|
86
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#selectors) for more details.
|
|
87
|
-
*/
|
|
88
|
-
selectors?: Selectors;
|
|
89
|
-
/**
|
|
90
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-canonical-classes.md) for more details.
|
|
91
|
-
*/
|
|
92
|
-
canonical?: {
|
|
93
|
-
/**
|
|
94
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-canonical-classes.md#collapse) for more details.
|
|
95
|
-
* @default true
|
|
96
|
-
*/
|
|
97
|
-
collapse?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-canonical-classes.md#logical) for more details.
|
|
100
|
-
* @default true
|
|
101
|
-
*/
|
|
102
|
-
logical?: boolean;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md) for more details.
|
|
106
|
-
*/
|
|
107
|
-
classOrder?: {
|
|
108
|
-
/**
|
|
109
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md#order) for more details.
|
|
110
|
-
* @default 'official'
|
|
111
|
-
*/
|
|
112
|
-
order?: 'asc' | 'desc' | 'official' | 'strict';
|
|
113
|
-
/**
|
|
114
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md#componentClassOrder) for more details.
|
|
115
|
-
* @default 'preserve'
|
|
116
|
-
*/
|
|
117
|
-
componentOrder?: 'asc' | 'desc' | 'preserve';
|
|
118
|
-
/**
|
|
119
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md#componentClassPosition) for more details.
|
|
120
|
-
* @default 'start'
|
|
121
|
-
*/
|
|
122
|
-
componentPosition?: 'start' | 'end';
|
|
123
|
-
/**
|
|
124
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md#unknownClassOrder) for more details.
|
|
125
|
-
* @default 'preserve'
|
|
126
|
-
*/
|
|
127
|
-
unknownOrder?: 'asc' | 'desc' | 'preserve';
|
|
128
|
-
/**
|
|
129
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md#unknownClassPosition) for more details.
|
|
130
|
-
* @default 'start'
|
|
131
|
-
*/
|
|
132
|
-
unknownPosition?: 'start' | 'end';
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-restricted-classes.md#restrict) for more details.
|
|
136
|
-
* @default []
|
|
137
|
-
*/
|
|
138
|
-
restrict?: string[] | Array<{
|
|
139
|
-
pattern: string;
|
|
140
|
-
message?: string;
|
|
141
|
-
fix?: string;
|
|
142
|
-
}>;
|
|
143
|
-
/**
|
|
144
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unknown-classes.md#ignore) for more details.
|
|
145
|
-
* @default []
|
|
146
|
-
*/
|
|
147
|
-
ignore?: string[];
|
|
148
|
-
/**
|
|
149
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unnecessary-whitespace.md) for more details.
|
|
150
|
-
*/
|
|
151
|
-
whitespace?: {
|
|
152
|
-
/**
|
|
153
|
-
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unnecessary-whitespace.md#allowMultiline) for more details.
|
|
154
|
-
* @default true
|
|
155
|
-
*/
|
|
156
|
-
allowMultiline?: boolean;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
//#endregion
|
|
160
|
-
//#region src/types/vitest.d.ts
|
|
161
|
-
/**
|
|
162
|
-
* Vitest configuration options.
|
|
163
|
-
*/
|
|
164
|
-
type VitestOptions = {
|
|
165
|
-
/**
|
|
166
|
-
* File paths or glob patterns for your Vitest test files.
|
|
167
|
-
*/
|
|
168
|
-
files: Array<string | string[]>;
|
|
169
|
-
};
|
|
170
|
-
//#endregion
|
|
171
4
|
//#region src/types/config.d.ts
|
|
172
5
|
/**
|
|
173
6
|
* ESLint configuration options.
|
|
174
7
|
*/
|
|
175
8
|
type ConfigOptions = {
|
|
176
|
-
/**
|
|
177
|
-
* Enable additional ESLint rules optimized for React projects.
|
|
178
|
-
*/
|
|
179
|
-
react?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* Enable additional ESLint rules optimized for Next.js projects.
|
|
182
|
-
*/
|
|
183
|
-
nextjs?: boolean;
|
|
184
|
-
/**
|
|
185
|
-
* Tailwind CSS configuration options.
|
|
186
|
-
*
|
|
187
|
-
* Providing this object (with any of its options) automatically enables ESLint rules related to Tailwind CSS.
|
|
188
|
-
*/
|
|
189
|
-
tailwindcss?: TailwindCSSOptions;
|
|
190
|
-
/**
|
|
191
|
-
* JSX accessibility configuration options.
|
|
192
|
-
*/
|
|
193
|
-
jsxA11y?: JsxA11yConfigOptions;
|
|
194
|
-
/**
|
|
195
|
-
* Vitest configuration options.
|
|
196
|
-
*
|
|
197
|
-
* Providing this object (with any of its options) automatically enables ESLint rules related to Vitest.
|
|
198
|
-
*/
|
|
199
|
-
vitest?: VitestOptions;
|
|
200
|
-
/**
|
|
201
|
-
* Playwright configuration options.
|
|
202
|
-
*
|
|
203
|
-
* Providing this object (with any of its options) automatically enables ESLint rules related to Playwright.
|
|
204
|
-
*/
|
|
205
|
-
playwright?: PlaywrightOptions;
|
|
206
|
-
/**
|
|
207
|
-
* Turn off all rules that are unnecessary or might conflict when using Prettier.
|
|
208
|
-
*
|
|
209
|
-
* Defaults to true if Prettier is installed.
|
|
210
|
-
*/
|
|
211
|
-
prettier?: boolean;
|
|
212
9
|
/**
|
|
213
10
|
* A list of file paths or glob patterns that ESLint should ignore.
|
|
214
11
|
*/
|
|
@@ -224,7 +21,27 @@ type ConfigOptions = {
|
|
|
224
21
|
type FlatConfig = Linter.Config;
|
|
225
22
|
//#endregion
|
|
226
23
|
//#region src/base.d.ts
|
|
227
|
-
declare const defineConfig: (
|
|
24
|
+
declare const defineConfig: ((...userConfigs: FlatConfig[]) => FlatConfig[]) & {
|
|
25
|
+
withOptions: (options: ConfigOptions, ...userConfigs: FlatConfig[]) => FlatConfig[];
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/configs/nextjs.d.ts
|
|
29
|
+
declare const nextjs: (options?: FlatConfig) => FlatConfig;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/configs/playwright.d.ts
|
|
32
|
+
declare const playwright: (options?: FlatConfig) => FlatConfig;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/configs/prettier.d.ts
|
|
35
|
+
declare const prettier: (options?: FlatConfig) => FlatConfig;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/configs/react.d.ts
|
|
38
|
+
declare const react: (options?: FlatConfig) => FlatConfig;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/configs/tailwindcss.d.ts
|
|
41
|
+
declare const tailwindcss: (options?: FlatConfig) => FlatConfig;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/configs/vitest.d.ts
|
|
44
|
+
declare const vitest: (options?: FlatConfig) => FlatConfig;
|
|
228
45
|
//#endregion
|
|
229
46
|
//#region src/globs.d.ts
|
|
230
47
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
@@ -234,5 +51,5 @@ declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
|
234
51
|
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
235
52
|
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
236
53
|
//#endregion
|
|
237
|
-
export { ConfigOptions, FlatConfig, GLOB_JS, GLOB_JSX, GLOB_SRC, GLOB_SRC_EXT, GLOB_TS, GLOB_TSX,
|
|
54
|
+
export { ConfigOptions, FlatConfig, GLOB_JS, GLOB_JSX, GLOB_SRC, GLOB_SRC_EXT, GLOB_TS, GLOB_TSX, defineConfig, nextjs, playwright, prettier, react, tailwindcss, vitest };
|
|
238
55
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/config.ts","../src/base.ts","../src/configs/nextjs.ts","../src/configs/playwright.ts","../src/configs/prettier.ts","../src/configs/react.ts","../src/configs/tailwindcss.ts","../src/configs/vitest.ts","../src/globs.ts"],"mappings":";;;;;;AAMA;KAAY,aAAA;;;;EAIV,OAAA;EAOqB;;;AAGvB;;;EAHE,kBAAA,GAAqB,yBAAA;AAAA;AAAA,KAGX,UAAA,GAAa,MAAA,CAAO,MAAA;;;cCkCnB,YAAA,OAAY,WAAA,EACN,UAAA,OAAe,UAAA;yBAJJ,aAAA,KAAa,WAAA,EAAkB,UAAA,OAAe,UAAA;AAAA;;;cC9C/D,MAAA,GAAU,OAAA,GAAS,UAAA,KAAkB,UAAA;;;cCErC,UAAA,GAAc,OAAA,GAAS,UAAA,KAAkB,UAAA;;;cCDzC,QAAA,GAAY,OAAA,GAAS,UAAA,KAAkB,UAAA;;;cCDvC,KAAA,GAAS,OAAA,GAAS,UAAA,KAAkB,UAAA;;;cCApC,WAAA,GAAe,OAAA,GAAS,UAAA,KAAkB,UAAA;;;cCA1C,MAAA,GAAU,OAAA,GAAS,UAAA,KAAkB,UAAA;;;cCLrC,YAAA;AAAA,cACA,QAAA;AAAA,cAEA,OAAA;AAAA,cACA,QAAA;AAAA,cAEA,OAAA;AAAA,cACA,QAAA"}
|