@devapoo-dev/eslint-config 1.1.21 → 1.1.22
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/index.d.ts +1 -1
- package/index.mjs +16 -11
- package/package.json +4 -5
package/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ type Options = AntfuParams[0];
|
|
|
6
6
|
type UserConfigs = AntfuParams[1][];
|
|
7
7
|
|
|
8
8
|
export function createConfig(
|
|
9
|
-
options?: (Options & { remix?: boolean }) | undefined,
|
|
9
|
+
options?: (Options & { remix?: boolean; tailwind?: boolean }) | undefined,
|
|
10
10
|
...userConfigs: UserConfigs
|
|
11
11
|
): AntfuReturn;
|
package/index.mjs
CHANGED
|
@@ -187,17 +187,22 @@ export function createConfig(options, ...userConfigs) {
|
|
|
187
187
|
/**
|
|
188
188
|
* Tailwind CSS
|
|
189
189
|
*/
|
|
190
|
-
...
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
190
|
+
...(options?.tailwind
|
|
191
|
+
? [
|
|
192
|
+
...tailwindcss.configs['flat/recommended'],
|
|
193
|
+
{
|
|
194
|
+
settings: {
|
|
195
|
+
tailwindcss: {
|
|
196
|
+
config: false, // Rule for TailwindCSS v4
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
rules: {
|
|
200
|
+
'tailwindcss/no-custom-classname': 'off',
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
]
|
|
204
|
+
: []),
|
|
205
|
+
|
|
201
206
|
/**
|
|
202
207
|
* Vitest (keep as reference file:blob)
|
|
203
208
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devapoo-dev/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.22",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"peerDependencies": {
|
|
@@ -15,14 +15,13 @@
|
|
|
15
15
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
16
16
|
"eslint-plugin-prettier": "^5.5.5",
|
|
17
17
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
18
|
-
"eslint-plugin-tailwindcss": "^3.18.3"
|
|
19
|
-
"tailwindcss": "^4.2.2"
|
|
18
|
+
"eslint-plugin-tailwindcss": "^3.18.3"
|
|
20
19
|
},
|
|
21
20
|
"devDependencies": {
|
|
22
21
|
"eslint": "^9",
|
|
23
22
|
"typescript": "^5",
|
|
24
|
-
"@devapoo-dev/prettier-config": "0.0.
|
|
25
|
-
"@devapoo-dev/tsconfig": "0.0.
|
|
23
|
+
"@devapoo-dev/prettier-config": "0.0.14",
|
|
24
|
+
"@devapoo-dev/tsconfig": "0.0.17"
|
|
26
25
|
},
|
|
27
26
|
"scripts": {
|
|
28
27
|
"lint": "eslint .",
|