@icebreakers/eslint-config 1.6.2 → 1.6.3
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/dist/index.cjs +7 -4
- package/dist/index.js +7 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -205,14 +205,17 @@ function resolveTailwindPresets(option) {
|
|
|
205
205
|
(0, antfu_exports.interopDefault)(
|
|
206
206
|
import("eslint-plugin-better-tailwindcss")
|
|
207
207
|
).then((eslintPluginBetterTailwindcss) => {
|
|
208
|
+
const betterTailwindcssRules = {
|
|
209
|
+
...eslintPluginBetterTailwindcss.configs["recommended-warn"].rules,
|
|
210
|
+
...eslintPluginBetterTailwindcss.configs["recommended-error"].rules,
|
|
211
|
+
"better-tailwindcss/no-unregistered-classes": "off"
|
|
212
|
+
};
|
|
208
213
|
return {
|
|
214
|
+
name: "icebreaker/better-tailwindcss",
|
|
209
215
|
plugins: {
|
|
210
216
|
"better-tailwindcss": eslintPluginBetterTailwindcss
|
|
211
217
|
},
|
|
212
|
-
rules:
|
|
213
|
-
...eslintPluginBetterTailwindcss.configs["recommended-warn"].rules,
|
|
214
|
-
...eslintPluginBetterTailwindcss.configs["recommended-error"].rules
|
|
215
|
-
},
|
|
218
|
+
rules: betterTailwindcssRules,
|
|
216
219
|
settings: {
|
|
217
220
|
"better-tailwindcss": {
|
|
218
221
|
entryPoint: option.entryPoint,
|
package/dist/index.js
CHANGED
|
@@ -181,14 +181,17 @@ function resolveTailwindPresets(option) {
|
|
|
181
181
|
(0, antfu_exports.interopDefault)(
|
|
182
182
|
import("eslint-plugin-better-tailwindcss")
|
|
183
183
|
).then((eslintPluginBetterTailwindcss) => {
|
|
184
|
+
const betterTailwindcssRules = {
|
|
185
|
+
...eslintPluginBetterTailwindcss.configs["recommended-warn"].rules,
|
|
186
|
+
...eslintPluginBetterTailwindcss.configs["recommended-error"].rules,
|
|
187
|
+
"better-tailwindcss/no-unregistered-classes": "off"
|
|
188
|
+
};
|
|
184
189
|
return {
|
|
190
|
+
name: "icebreaker/better-tailwindcss",
|
|
185
191
|
plugins: {
|
|
186
192
|
"better-tailwindcss": eslintPluginBetterTailwindcss
|
|
187
193
|
},
|
|
188
|
-
rules:
|
|
189
|
-
...eslintPluginBetterTailwindcss.configs["recommended-warn"].rules,
|
|
190
|
-
...eslintPluginBetterTailwindcss.configs["recommended-error"].rules
|
|
191
|
-
},
|
|
194
|
+
rules: betterTailwindcssRules,
|
|
192
195
|
settings: {
|
|
193
196
|
"better-tailwindcss": {
|
|
194
197
|
entryPoint: option.entryPoint,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.3",
|
|
5
5
|
"description": "ESLint preset from Icebreaker's dev-configs",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dist"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@antfu/eslint-config": "6.4.
|
|
44
|
+
"@antfu/eslint-config": "6.4.2",
|
|
45
45
|
"@eslint-react/eslint-plugin": "^2.3.12",
|
|
46
46
|
"@next/eslint-plugin-next": "^16.0.7",
|
|
47
47
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|