@yasainet/eslint 0.0.67 → 0.0.68

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasainet/eslint",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "description": "ESLint",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,6 +4,9 @@ import betterTailwindcss from "eslint-plugin-better-tailwindcss";
4
4
  * Tailwind CSS v4 lint rules:
5
5
  *
6
6
  * - margin is forbidden; spacing is controlled by padding/gap on the parent
7
+ * - `space-x-*` / `space-y-*` are also banned because they apply margin to
8
+ * children under the hood. Use `flex/grid + gap` instead. Negative variants
9
+ * (`-space-x-2`) remain allowed for intentional overlap
7
10
  * - class order, deprecated classes, conflicts, duplicates, and whitespace
8
11
  * are enforced via `eslint-plugin-better-tailwindcss`
9
12
  * - `entryPoint` points at the consuming project's CSS-first Tailwind config
@@ -35,6 +38,11 @@ export const tailwindcssConfigs = [
35
38
  message:
36
39
  "Avoid margin; control spacing with padding/gap (exceptions: mx-auto, -mt-*)",
37
40
  },
41
+ {
42
+ pattern: "^space-[xy]-[^-\\s]+$",
43
+ message:
44
+ "Avoid space-x/space-y (uses margin internally); use flex/grid + gap",
45
+ },
38
46
  ],
39
47
  },
40
48
  ],