@pandacss/eslint-plugin 0.0.0-dev-20240210233409 → 0.0.0-dev-20240210234546
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.
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7957,7 +7957,7 @@ init_cjs_shims();
|
|
|
7957
7957
|
|
|
7958
7958
|
// package.json
|
|
7959
7959
|
var name = "@pandacss/eslint-plugin";
|
|
7960
|
-
var version = "0.0.0-dev-
|
|
7960
|
+
var version = "0.0.0-dev-20240210234546";
|
|
7961
7961
|
|
|
7962
7962
|
// src/configs/all.ts
|
|
7963
7963
|
init_cjs_shims();
|
|
@@ -8713,7 +8713,9 @@ var rule8 = createRule({
|
|
|
8713
8713
|
Property(node) {
|
|
8714
8714
|
if (!isObjectExpression(node.value) || isIdentifier(node.key))
|
|
8715
8715
|
return;
|
|
8716
|
-
if (
|
|
8716
|
+
if (!isInPandaFunction(node, context) && !isInJSXProp(node, context))
|
|
8717
|
+
return;
|
|
8718
|
+
if (isStyledProperty(node, context))
|
|
8717
8719
|
return;
|
|
8718
8720
|
const invalidLiteral = isLiteral(node.key) && typeof node.key.value === "string" && !node.key.value.includes("&");
|
|
8719
8721
|
const invalidTemplateLiteral = isTemplateLiteral(node.key) && !node.key.quasis[0].value.raw.includes("&");
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var name, version;
|
|
|
10
10
|
var init_package = __esm({
|
|
11
11
|
"package.json"() {
|
|
12
12
|
name = "@pandacss/eslint-plugin";
|
|
13
|
-
version = "0.0.0-dev-
|
|
13
|
+
version = "0.0.0-dev-20240210234546";
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -8761,7 +8761,9 @@ var init_no_invalid_nesting = __esm({
|
|
|
8761
8761
|
Property(node) {
|
|
8762
8762
|
if (!isObjectExpression(node.value) || isIdentifier(node.key))
|
|
8763
8763
|
return;
|
|
8764
|
-
if (
|
|
8764
|
+
if (!isInPandaFunction(node, context) && !isInJSXProp(node, context))
|
|
8765
|
+
return;
|
|
8766
|
+
if (isStyledProperty(node, context))
|
|
8765
8767
|
return;
|
|
8766
8768
|
const invalidLiteral = isLiteral(node.key) && typeof node.key.value === "string" && !node.key.value.includes("&");
|
|
8767
8769
|
const invalidTemplateLiteral = isTemplateLiteral(node.key) && !node.key.quasis[0].value.raw.includes("&");
|
package/package.json
CHANGED