pasika 0.4.1 → 0.4.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 -0
- package/dist/eslint/pasika/index.d.ts +4 -0
- package/dist/eslint/pasika/index.js +717 -236
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -122,6 +122,7 @@ Because the preset blocks wire ESLint's language plugins, using them directly (w
|
|
|
122
122
|
| `pasika/import-boundaries` | The shorter of the relative path and the `@/*` alias, and the layer boundaries |
|
|
123
123
|
| `pasika/no-mixed-concerns` | One exported React component per `.tsx` file |
|
|
124
124
|
| `pasika/no-arbitrary-tailwind` | No arbitrary `-[value]` classes, including inside `cn()` conditionals |
|
|
125
|
+
| `pasika/unknown-utility` | Component class names are a custom `@utility`, a theme-generated utility, or a built-in the reset keeps |
|
|
125
126
|
| `pasika/enforce-cn-merge` | `cn()` instead of `+` or template literals; at most five classes per group |
|
|
126
127
|
| `pasika/enforce-cva-variant-props` | `VariantProps<typeof …>` instead of hand-written unions |
|
|
127
128
|
| `pasika/cva-appearance-props` | Visual option props (`size`, `variant`, …) declared through CVA appearance props |
|
|
@@ -175,6 +176,7 @@ Applied to `src/**/globals.css` (and other stylesheets) through `@eslint/css` wi
|
|
|
175
176
|
| `pasika/surface-utility` | Repeated canvas+ink combos become a named surface utility |
|
|
176
177
|
| `pasika/theme-variable-namespace` | Utility class groups share a namespace prefix |
|
|
177
178
|
| `pasika/global-css-location` | Global CSS lives in the correct entry point |
|
|
179
|
+
| `pasika/unused-utility` | A custom `@utility` no source file references is reported as dead |
|
|
178
180
|
|
|
179
181
|
### Package.json rules
|
|
180
182
|
|
|
@@ -112,6 +112,7 @@ declare const tailwindRules: {
|
|
|
112
112
|
"theme-variable-namespace": _eslint_css.CSSRuleDefinition;
|
|
113
113
|
"global-css-location": _eslint_css.CSSRuleDefinition;
|
|
114
114
|
"global-stylesheet": _eslint_css.CSSRuleDefinition;
|
|
115
|
+
"unused-utility": _eslint_css.CSSRuleDefinition;
|
|
115
116
|
};
|
|
116
117
|
|
|
117
118
|
/** Framework-agnostic package.json rules any repository should follow. */
|
|
@@ -142,6 +143,7 @@ declare const pasikaRules: {
|
|
|
142
143
|
"ui-state": eslint.Rule.RuleModule;
|
|
143
144
|
"no-mixed-concerns": eslint.Rule.RuleModule;
|
|
144
145
|
"no-arbitrary-tailwind": eslint.Rule.RuleModule;
|
|
146
|
+
"unknown-utility": eslint.Rule.RuleModule;
|
|
145
147
|
"enforce-cn-merge": {
|
|
146
148
|
meta: {
|
|
147
149
|
schema: never[];
|
|
@@ -213,6 +215,7 @@ declare const pasikaPlugin: {
|
|
|
213
215
|
"theme-variable-namespace": _eslint_css.CSSRuleDefinition;
|
|
214
216
|
"global-css-location": _eslint_css.CSSRuleDefinition;
|
|
215
217
|
"global-stylesheet": _eslint_css.CSSRuleDefinition;
|
|
218
|
+
"unused-utility": _eslint_css.CSSRuleDefinition;
|
|
216
219
|
"doc-kind-suffix": _eslint_markdown.MarkdownRuleDefinition;
|
|
217
220
|
"title-matches-file-name": _eslint_markdown.MarkdownRuleDefinition;
|
|
218
221
|
overview: _eslint_markdown.MarkdownRuleDefinition;
|
|
@@ -244,6 +247,7 @@ declare const pasikaPlugin: {
|
|
|
244
247
|
"ui-state": eslint.Rule.RuleModule;
|
|
245
248
|
"no-mixed-concerns": eslint.Rule.RuleModule;
|
|
246
249
|
"no-arbitrary-tailwind": eslint.Rule.RuleModule;
|
|
250
|
+
"unknown-utility": eslint.Rule.RuleModule;
|
|
247
251
|
"enforce-cn-merge": {
|
|
248
252
|
meta: {
|
|
249
253
|
schema: never[];
|