@pandacss/eslint-plugin 2.0.1 → 2.1.1
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")
|
|
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.
|
|
1133
|
+
version: "2.1.1",
|
|
1127
1134
|
description: "ESLint rules for Panda CSS",
|
|
1128
1135
|
keywords: [
|
|
1129
1136
|
"eslint",
|
package/dist/index.js
CHANGED
package/dist/oxlint.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/eslint-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
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.
|
|
46
|
-
"@pandacss/compiler-shared": "2.
|
|
47
|
-
"@pandacss/config": "2.
|
|
45
|
+
"@pandacss/compiler": "2.1.1",
|
|
46
|
+
"@pandacss/compiler-shared": "2.1.1",
|
|
47
|
+
"@pandacss/config": "2.1.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@typescript-eslint/parser": "8.69.0",
|