pasika 0.5.2 → 0.5.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.
@@ -4916,6 +4916,12 @@ function selectorNames(node) {
4916
4916
  }
4917
4917
 
4918
4918
  // eslint/rules/tailwind/theme-reset.ts
4919
+ function isThemeReset(node) {
4920
+ if (!node) return false;
4921
+ if (node.type === "Declaration") return node.property.startsWith("--*");
4922
+ if (node.type === "Raw") return node.value.includes("--*: initial");
4923
+ return false;
4924
+ }
4919
4925
  var themeResetRule = {
4920
4926
  meta: {
4921
4927
  schema: [],
@@ -4927,13 +4933,16 @@ var themeResetRule = {
4927
4933
  create(context) {
4928
4934
  return {
4929
4935
  "StyleSheet:exit"(node) {
4930
- const resetFound = atrulesNamed(node, "theme").some(
4931
- (theme) => blockChildren2(theme).some((child) => {
4932
- if (child.type === "Declaration") return child.property.startsWith("--*");
4933
- if (child.type === "Raw") return child.value.includes("--*: initial");
4934
- return false;
4935
- })
4936
- );
4936
+ const resetFound = atrulesNamed(node, "theme").some((theme) => {
4937
+ const direct = blockChildren2(theme).some(isThemeReset);
4938
+ if (direct) return true;
4939
+ let nested = false;
4940
+ walkNodes(theme, (current) => {
4941
+ if (nested) return;
4942
+ if (isThemeReset(current)) nested = true;
4943
+ });
4944
+ return nested;
4945
+ });
4937
4946
  if (!resetFound) {
4938
4947
  context.report({
4939
4948
  node,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",