@pandacss/eslint-plugin 2.0.0 → 2.1.0

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.
@@ -995,7 +995,14 @@ var MAX_LISTED = 3;
995
995
  function collectStrings(value, out) {
996
996
  if (typeof value === "string") out.push(value);
997
997
  else if (Array.isArray(value)) for (const item of value) collectStrings(item, out);
998
- else if (value && typeof value === "object") for (const item of Object.values(value)) collectStrings(item, out);
998
+ else if (value && typeof value === "object") {
999
+ const folded = value;
1000
+ if (folded.kind === "conditional" && Array.isArray(folded.branches)) {
1001
+ collectStrings(folded.branches, out);
1002
+ } else {
1003
+ for (const item of Object.values(value)) collectStrings(item, out);
1004
+ }
1005
+ }
999
1006
  }
1000
1007
  var label = (s) => s.conditional ? `${s.token} (themed)` : s.token;
1001
1008
  function reportTokenViolations(context, inspection, config) {
@@ -1123,7 +1130,7 @@ import { SpecIndex } from "@pandacss/compiler/tooling";
1123
1130
  // package.json
1124
1131
  var package_default = {
1125
1132
  name: "@pandacss/eslint-plugin",
1126
- version: "2.0.0",
1133
+ version: "2.1.0",
1127
1134
  description: "ESLint rules for Panda CSS",
1128
1135
  keywords: [
1129
1136
  "eslint",
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ import {
48
48
  resolvePandaSettings,
49
49
  sourceCacheKey,
50
50
  toEslintLoc
51
- } from "./chunk-4YDZVIGF.js";
51
+ } from "./chunk-5RMIYS5L.js";
52
52
 
53
53
  // src/core/range-index.ts
54
54
  var RangeIndex = class {
package/dist/oxlint.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createPandaPlugin
3
- } from "./chunk-4YDZVIGF.js";
3
+ } from "./chunk-5RMIYS5L.js";
4
4
 
5
5
  // src/oxlint.ts
6
6
  var configPath = process.env.PANDA_CONFIG_PATH;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/eslint-plugin",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "ESLint rules for Panda CSS",
5
5
  "keywords": [
6
6
  "eslint",
@@ -42,9 +42,9 @@
42
42
  "dist"
43
43
  ],
44
44
  "dependencies": {
45
- "@pandacss/compiler": "2.0.0",
46
- "@pandacss/compiler-shared": "2.0.0",
47
- "@pandacss/config": "2.0.0"
45
+ "@pandacss/compiler": "2.1.0",
46
+ "@pandacss/compiler-shared": "2.1.0",
47
+ "@pandacss/config": "2.1.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@typescript-eslint/parser": "8.69.0",