@icebreakers/eslint-config 1.6.1 → 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 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,
@@ -396,6 +399,8 @@ var BASE_DEFAULTS = {
396
399
  }
397
400
  };
398
401
  var BASE_RULES = {
402
+ "pnpm/json-enforce-catalog": "off",
403
+ // allow plain specifiers when pnpm catalogs aren't used by default
399
404
  "unused-imports/no-unused-vars": "off",
400
405
  "unicorn/prefer-number-properties": "warn"
401
406
  };
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,
@@ -372,6 +375,8 @@ var BASE_DEFAULTS = {
372
375
  }
373
376
  };
374
377
  var BASE_RULES = {
378
+ "pnpm/json-enforce-catalog": "off",
379
+ // allow plain specifiers when pnpm catalogs aren't used by default
375
380
  "unused-imports/no-unused-vars": "off",
376
381
  "unicorn/prefer-number-properties": "warn"
377
382
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/eslint-config",
3
3
  "type": "module",
4
- "version": "1.6.1",
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,12 +41,12 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@antfu/eslint-config": "6.3.0",
45
- "@eslint-react/eslint-plugin": "^2.3.11",
46
- "@next/eslint-plugin-next": "^16.0.6",
44
+ "@antfu/eslint-config": "6.4.2",
45
+ "@eslint-react/eslint-plugin": "^2.3.12",
46
+ "@next/eslint-plugin-next": "^16.0.7",
47
47
  "@tanstack/eslint-plugin-query": "^5.91.2",
48
48
  "eslint-plugin-better-tailwindcss": "^3.7.11",
49
- "eslint-plugin-format": "1.0.2",
49
+ "eslint-plugin-format": "1.1.0",
50
50
  "eslint-plugin-jsx-a11y": "^6.10.2",
51
51
  "eslint-plugin-react-hooks": "^7.0.1",
52
52
  "eslint-plugin-react-refresh": "^0.4.24",