@pandacss/eslint-plugin 0.1.13 → 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 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.13";
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 checkElements(node.value.expression, context);
8465
+ return checkArrayElements(node.value.expression, context);
8469
8466
  }
8470
8467
  context.report({
8471
8468
  node: node.value,
@@ -8490,13 +8487,10 @@ var rule4 = createRule({
8490
8487
  return;
8491
8488
  if (isObjectExpression(node.value))
8492
8489
  return;
8493
- if (isArrayExpression(node.value)) {
8494
- return checkElements(node.value, context);
8495
- }
8496
8490
  if (!isPandaAttribute(node, context))
8497
8491
  return;
8498
8492
  if (isArrayExpression(node.value)) {
8499
- return checkElements(node.value, context);
8493
+ return checkArrayElements(node.value, context);
8500
8494
  }
8501
8495
  context.report({
8502
8496
  node: node.value,
@@ -8506,7 +8500,7 @@ var rule4 = createRule({
8506
8500
  };
8507
8501
  }
8508
8502
  });
8509
- function checkElements(array, context) {
8503
+ function checkArrayElements(array, context) {
8510
8504
  array.elements.forEach((node) => {
8511
8505
  if (!node)
8512
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";
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 checkElements(array, context) {
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 checkElements(node.value.expression, context);
8491
+ return checkArrayElements(node.value.expression, context);
8495
8492
  }
8496
8493
  context.report({
8497
8494
  node: node.value,
@@ -8516,13 +8513,10 @@ var init_no_dynamic_styling = __esm({
8516
8513
  return;
8517
8514
  if (isObjectExpression(node.value))
8518
8515
  return;
8519
- if (isArrayExpression(node.value)) {
8520
- return checkElements(node.value, context);
8521
- }
8522
8516
  if (!isPandaAttribute(node, context))
8523
8517
  return;
8524
8518
  if (isArrayExpression(node.value)) {
8525
- return checkElements(node.value, context);
8519
+ return checkArrayElements(node.value, context);
8526
8520
  }
8527
8521
  context.report({
8528
8522
  node: node.value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/eslint-plugin",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Eslint plugin for Panda CSS",
5
5
  "author": "Abraham Aremu <anubra266@gmail.com>",
6
6
  "main": "dist/index.js",