@typestyles/eslint-plugin 0.0.0-unstable.fb509f91ba06 → 0.0.0-unstable.ff74983e3aa5
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 +3 -3
- package/dist/index.cjs +828 -754
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +135 -133
- package/dist/index.d.ts +135 -133
- package/dist/index.js +800 -745
- package/dist/index.js.map +1 -1
- package/package.json +14 -15
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @typestyles/eslint-plugin
|
|
2
2
|
|
|
3
|
-
ESLint rules for [typestyles](https://github.com/
|
|
3
|
+
ESLint rules for [typestyles](https://github.com/phthalo-dev/typestyles) style objects — catch authoring mistakes at edit time that would otherwise produce invalid or silently wrong CSS.
|
|
4
4
|
|
|
5
5
|
StyleX and similar tools reject conflicting declarations at compile time. TypeStyles is runtime-first, so these rules fill the gap: shorthand/longhand conflicts, invalid unitless values, and duplicate namespaces across files.
|
|
6
6
|
|
|
@@ -66,10 +66,10 @@ Disallows reusing the same logical namespace across the project:
|
|
|
66
66
|
|
|
67
67
|
```ts
|
|
68
68
|
// file-a.ts
|
|
69
|
-
recipe('button', { base: { … } });
|
|
69
|
+
recipe({ name: 'button', styles: { base: { … } } });
|
|
70
70
|
|
|
71
71
|
// file-b.ts — ❌ collision
|
|
72
|
-
recipe('button', { base: { … } });
|
|
72
|
+
recipe({ name: 'button', styles: { base: { … } } });
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
Tracks `recipe`, `style`, `hash`, `tokens.create`, `tokens.createTheme`, `keyframes.create`, and `global.rule` / `global.fontFace` (and legacy `styles.component`, `styles.class`, `global.style` where used). Reports duplicates within a file and across files in the same ESLint run.
|