@shakuroinc/eslint-config-react 7.1.1 → 7.1.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/README.md +2 -2
- package/eslint.config.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ pnpm add -D \
|
|
|
32
32
|
eslint-plugin-prettier \
|
|
33
33
|
eslint-plugin-react-hooks \
|
|
34
34
|
eslint-plugin-simple-import-sort \
|
|
35
|
-
eslint-plugin-tailwindcss@
|
|
35
|
+
eslint-plugin-tailwindcss@4.0.0-beta.0 \
|
|
36
36
|
globals \
|
|
37
37
|
prettier \
|
|
38
38
|
prettier-plugin-tailwindcss \
|
|
@@ -188,7 +188,7 @@ The base config sets:
|
|
|
188
188
|
| `main: '.eslintrc.js'` | `main: 'eslint.config.js'`, named export `./prettier` |
|
|
189
189
|
| ESLint ≥ 8.29 | ESLint ≥ 9 |
|
|
190
190
|
| `eslint-plugin-react@7.31.11`, `react-hooks@4` | `eslint-plugin-react@^7.37` (inherited from your config), `react-hooks@7` |
|
|
191
|
-
| `tailwindcss@3.x` plugin, class-order on | `tailwindcss@4.x
|
|
191
|
+
| `tailwindcss@3.x` plugin, class-order on | `tailwindcss@4.x` plugin, class-order off (Prettier handles it) |
|
|
192
192
|
| `@typescript-eslint/padding-line-between-statements` | Stock `padding-line-between-statements` (TS-only selectors dropped — install `@stylistic/eslint-plugin` if you need them) |
|
|
193
193
|
| `prettier-plugin-tailwindcss@0.2` | `prettier-plugin-tailwindcss@0.8` with `tailwindStylesheet` for v4 |
|
|
194
194
|
|
package/eslint.config.js
CHANGED
|
@@ -240,6 +240,7 @@ const sharedRules = {
|
|
|
240
240
|
// tailwindcss
|
|
241
241
|
// Class order is handled by prettier-plugin-tailwindcss.
|
|
242
242
|
'tailwindcss/classnames-order': 'off',
|
|
243
|
+
'tailwindcss/no-contradicting-classname': 'warn',
|
|
243
244
|
// Consumers override the whitelist via factory options.
|
|
244
245
|
'tailwindcss/no-custom-classname': ['warn', { whitelist: DEFAULT_TAILWIND_WHITELIST }],
|
|
245
246
|
|
package/package.json
CHANGED