pasika 0.10.153 → 0.10.155

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.
@@ -139,6 +139,8 @@ declare const tailwindRules: {
139
139
  "unused-css-definition": _eslint_css.CSSRuleDefinition;
140
140
  "unique-css-definition": _eslint_css.CSSRuleDefinition;
141
141
  "unique-css-token-value": _eslint_css.CSSRuleDefinition;
142
+ "no-attribute-selector": _eslint_css.CSSRuleDefinition;
143
+ "no-simple-class-rule": _eslint_css.CSSRuleDefinition;
142
144
  "no-utility-alias": _eslint_css.CSSRuleDefinition;
143
145
  };
144
146
 
@@ -183,6 +185,8 @@ declare const pasikaPlugin: {
183
185
  "unused-css-definition": _eslint_css.CSSRuleDefinition;
184
186
  "unique-css-definition": _eslint_css.CSSRuleDefinition;
185
187
  "unique-css-token-value": _eslint_css.CSSRuleDefinition;
188
+ "no-attribute-selector": _eslint_css.CSSRuleDefinition;
189
+ "no-simple-class-rule": _eslint_css.CSSRuleDefinition;
186
190
  "no-utility-alias": _eslint_css.CSSRuleDefinition;
187
191
  "doc-kind-suffix": _eslint_markdown.MarkdownRuleDefinition;
188
192
  "title-matches-file-name": _eslint_markdown.MarkdownRuleDefinition;
@@ -11046,6 +11046,55 @@ var globalStylesheetRule = {
11046
11046
  }
11047
11047
  };
11048
11048
 
11049
+ // eslint/rules/tailwind/no-attribute-selector.ts
11050
+ var noAttributeSelectorRule = {
11051
+ meta: {
11052
+ schema: [],
11053
+ type: "problem",
11054
+ docs: {
11055
+ description: "Disallow CSS attribute selectors; use Tailwind utilities on elements instead."
11056
+ }
11057
+ },
11058
+ create(context) {
11059
+ return {
11060
+ AttributeSelector(node) {
11061
+ context.report({
11062
+ node,
11063
+ message: "CSS attribute selectors are forbidden. Apply Tailwind utilities on the element instead."
11064
+ });
11065
+ }
11066
+ };
11067
+ }
11068
+ };
11069
+
11070
+ // eslint/rules/tailwind/no-simple-class-rule.ts
11071
+ var noSimpleClassRule = {
11072
+ meta: {
11073
+ schema: [],
11074
+ type: "problem",
11075
+ docs: {
11076
+ description: "Require Tailwind utilities on elements instead of simple CSS class rules."
11077
+ }
11078
+ },
11079
+ create(context) {
11080
+ return {
11081
+ Rule(node) {
11082
+ const prelude = node.prelude;
11083
+ if (prelude.type !== "SelectorList") return;
11084
+ for (const selector of prelude.children) {
11085
+ if (selector.type !== "Selector" || selector.children.length !== 1) continue;
11086
+ if (selector.children[0]?.type !== "ClassSelector") continue;
11087
+ context.report({
11088
+ node,
11089
+ message: "Simple CSS class rules are forbidden. Apply Tailwind utilities directly on the element instead."
11090
+ });
11091
+ return;
11092
+ }
11093
+ }
11094
+ };
11095
+ }
11096
+ };
11097
+
11049
11098
  // eslint/rules/tailwind/no-utility-alias.ts
11050
11099
  function plainUtilityAlias(utility, textOf) {
11051
11100
  const children = blockChildren2(utility);
@@ -11626,7 +11675,10 @@ function inferCssConsumerPaths(options) {
11626
11675
  if (!current || seen.has(current)) continue;
11627
11676
  seen.add(current);
11628
11677
  const consumer = componentPaths.get(current);
11629
- if (consumer) found.add(consumer);
11678
+ if (consumer) {
11679
+ found.add(consumer);
11680
+ continue;
11681
+ }
11630
11682
  for (const parent of importers.get(current) ?? []) pending.push(parent);
11631
11683
  }
11632
11684
  componentCache.set(key, found);
@@ -13159,6 +13211,8 @@ var tailwindRules = {
13159
13211
  "unused-css-definition": unusedCssDefinitionRule,
13160
13212
  "unique-css-definition": uniqueCssDefinitionRule,
13161
13213
  "unique-css-token-value": uniqueCssTokenValueRule,
13214
+ "no-attribute-selector": noAttributeSelectorRule,
13215
+ "no-simple-class-rule": noSimpleClassRule,
13162
13216
  "no-utility-alias": noUtilityAliasRule
13163
13217
  };
13164
13218
 
@@ -14565,6 +14619,8 @@ var tailwindImportGraph = {
14565
14619
  languageOptions: { tolerant: true },
14566
14620
  rules: {
14567
14621
  "pasika/at-rule-spacing": "error",
14622
+ "pasika/no-attribute-selector": "error",
14623
+ "pasika/no-simple-class-rule": "error",
14568
14624
  "pasika/unused-css-definition": "error",
14569
14625
  "pasika/css-entry-point": "error",
14570
14626
  "pasika/feature-css-placement": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.10.153",
3
+ "version": "0.10.155",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",