@pandacss/eslint-plugin 2.1.2 → 2.2.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.
|
@@ -1130,7 +1130,7 @@ import { SpecIndex } from "@pandacss/compiler/tooling";
|
|
|
1130
1130
|
// package.json
|
|
1131
1131
|
var package_default = {
|
|
1132
1132
|
name: "@pandacss/eslint-plugin",
|
|
1133
|
-
version: "2.
|
|
1133
|
+
version: "2.2.0",
|
|
1134
1134
|
description: "ESLint rules for Panda CSS",
|
|
1135
1135
|
keywords: [
|
|
1136
1136
|
"eslint",
|
|
@@ -1225,7 +1225,7 @@ function hardcodedValueClassifier(compiler) {
|
|
|
1225
1225
|
let result = false;
|
|
1226
1226
|
if (!RAW_VALUE_KEYWORDS.has(value.trim().toLowerCase())) {
|
|
1227
1227
|
const resolved = compiler.resolveUtilityValue({ prop, value });
|
|
1228
|
-
result = resolved !== null && !String(resolved.cssValue).trimStart().startsWith("var(");
|
|
1228
|
+
result = resolved !== null && resolved.tokens.length === 0 && !String(resolved.cssValue).trimStart().startsWith("var(");
|
|
1229
1229
|
}
|
|
1230
1230
|
cache.set(key, result);
|
|
1231
1231
|
return result;
|
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.2.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.
|
|
46
|
-
"@pandacss/compiler-shared": "2.
|
|
47
|
-
"@pandacss/config": "2.
|
|
45
|
+
"@pandacss/compiler": "2.2.0",
|
|
46
|
+
"@pandacss/compiler-shared": "2.2.0",
|
|
47
|
+
"@pandacss/config": "2.2.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@typescript-eslint/parser": "8.69.0",
|