@scayle/eslint-config-storefront 5.2.2 → 5.3.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/CHANGELOG.md +8 -0
- package/config/v3/tailwind.mjs +0 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @aboutyou/eslint-config-sfc
|
|
2
2
|
|
|
3
|
+
## 5.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- The `/v3` entry point (`storefrontV3()`) now enables `better-tailwindcss/enforce-consistent-class-order` at the plugin's recommended `warn` level. It was turned off because it disagreed with `prettier-plugin-tailwindcss`. The two plugins sorted against different themes: ESLint read the stylesheet passed as `tailwind.entryPoint`, while Prettier used the default Tailwind theme. Once Prettier reads the same stylesheet through its `tailwindStylesheet` option, both produce the same order.
|
|
8
|
+
|
|
9
|
+
Set `tailwindStylesheet` in your Prettier config to the same file you pass as `tailwind.entryPoint`, then run Prettier once. Without it, Prettier and ESLint keep moving custom theme classes back and forth, and the rule reports a warning on every class list that contains one.
|
|
10
|
+
|
|
3
11
|
## 5.2.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/config/v3/tailwind.mjs
CHANGED
|
@@ -19,9 +19,6 @@ export function tailwindConfig(config) {
|
|
|
19
19
|
extends: [eslintPluginBetterTailwindcss.configs.recommended],
|
|
20
20
|
rules: {
|
|
21
21
|
'better-tailwindcss/enforce-consistent-line-wrapping': 'off',
|
|
22
|
-
// The eslint plugin uses a different class order than the prettier plugin.
|
|
23
|
-
// Disabled to avoid conflicts between the two.
|
|
24
|
-
'better-tailwindcss/enforce-consistent-class-order': 'off',
|
|
25
22
|
// Flags Tailwind v3 class names. The /v3 entry point targets Tailwind v4 only.
|
|
26
23
|
'better-tailwindcss/no-deprecated-classes': 'off',
|
|
27
24
|
},
|