@pandacss/eslint-plugin 0.1.14 → 0.1.15
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 -7
- package/dist/index.mjs +4 -7
- 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.1.
|
|
7960
|
+
var version = "0.1.15";
|
|
7961
7961
|
|
|
7962
7962
|
// src/configs/all.ts
|
|
7963
7963
|
init_cjs_shims();
|
|
@@ -8459,13 +8459,10 @@ var rule4 = createRule({
|
|
|
8459
8459
|
return;
|
|
8460
8460
|
if (isObjectExpression(node.value.expression))
|
|
8461
8461
|
return;
|
|
8462
|
-
if (isArrayExpression(node.value.expression)) {
|
|
8463
|
-
return checkElements(node.value.expression, context);
|
|
8464
|
-
}
|
|
8465
8462
|
if (!isPandaProp(node, context))
|
|
8466
8463
|
return;
|
|
8467
8464
|
if (isArrayExpression(node.value.expression)) {
|
|
8468
|
-
return
|
|
8465
|
+
return checkArrayElements(node.value.expression, context);
|
|
8469
8466
|
}
|
|
8470
8467
|
context.report({
|
|
8471
8468
|
node: node.value,
|
|
@@ -8493,7 +8490,7 @@ var rule4 = createRule({
|
|
|
8493
8490
|
if (!isPandaAttribute(node, context))
|
|
8494
8491
|
return;
|
|
8495
8492
|
if (isArrayExpression(node.value)) {
|
|
8496
|
-
return
|
|
8493
|
+
return checkArrayElements(node.value, context);
|
|
8497
8494
|
}
|
|
8498
8495
|
context.report({
|
|
8499
8496
|
node: node.value,
|
|
@@ -8503,7 +8500,7 @@ var rule4 = createRule({
|
|
|
8503
8500
|
};
|
|
8504
8501
|
}
|
|
8505
8502
|
});
|
|
8506
|
-
function
|
|
8503
|
+
function checkArrayElements(array, context) {
|
|
8507
8504
|
array.elements.forEach((node) => {
|
|
8508
8505
|
if (!node)
|
|
8509
8506
|
return;
|
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.1.
|
|
13
|
+
version = "0.1.15";
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -8434,7 +8434,7 @@ var init_no_debug = __esm({
|
|
|
8434
8434
|
});
|
|
8435
8435
|
|
|
8436
8436
|
// src/rules/no-dynamic-styling.ts
|
|
8437
|
-
function
|
|
8437
|
+
function checkArrayElements(array, context) {
|
|
8438
8438
|
array.elements.forEach((node) => {
|
|
8439
8439
|
if (!node)
|
|
8440
8440
|
return;
|
|
@@ -8485,13 +8485,10 @@ var init_no_dynamic_styling = __esm({
|
|
|
8485
8485
|
return;
|
|
8486
8486
|
if (isObjectExpression(node.value.expression))
|
|
8487
8487
|
return;
|
|
8488
|
-
if (isArrayExpression(node.value.expression)) {
|
|
8489
|
-
return checkElements(node.value.expression, context);
|
|
8490
|
-
}
|
|
8491
8488
|
if (!isPandaProp(node, context))
|
|
8492
8489
|
return;
|
|
8493
8490
|
if (isArrayExpression(node.value.expression)) {
|
|
8494
|
-
return
|
|
8491
|
+
return checkArrayElements(node.value.expression, context);
|
|
8495
8492
|
}
|
|
8496
8493
|
context.report({
|
|
8497
8494
|
node: node.value,
|
|
@@ -8519,7 +8516,7 @@ var init_no_dynamic_styling = __esm({
|
|
|
8519
8516
|
if (!isPandaAttribute(node, context))
|
|
8520
8517
|
return;
|
|
8521
8518
|
if (isArrayExpression(node.value)) {
|
|
8522
|
-
return
|
|
8519
|
+
return checkArrayElements(node.value, context);
|
|
8523
8520
|
}
|
|
8524
8521
|
context.report({
|
|
8525
8522
|
node: node.value,
|