@pandacss/eslint-plugin 0.1.10 → 0.1.11

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.10";
7960
+ var version = "0.1.11";
7961
7961
 
7962
7962
  // src/configs/all.ts
7963
7963
  init_cjs_shims();
@@ -8437,7 +8437,9 @@ var rule4 = createRule({
8437
8437
  description: "Ensure user doesn't use dynamic styling at any point. \nPrefer to use static styles, leverage css variables or recipes for known dynamic styles."
8438
8438
  },
8439
8439
  messages: {
8440
- dynamic: "Remove dynamic value. Prefer static styles"
8440
+ dynamic: "Remove dynamic value. Prefer static styles",
8441
+ dynamicProperty: "Remove dynamic property. Prefer static style property",
8442
+ dynamicRecipeVariant: "Remove dynamic variant. Prefer static variant definition"
8441
8443
  },
8442
8444
  type: "suggestion",
8443
8445
  schema: []
@@ -8463,6 +8465,14 @@ var rule4 = createRule({
8463
8465
  messageId: "dynamic"
8464
8466
  });
8465
8467
  },
8468
+ "Property[computed=true]"(node) {
8469
+ if (!isInPandaFunction(node, context))
8470
+ return;
8471
+ context.report({
8472
+ node: node.key,
8473
+ messageId: isRecipeVariant(node, context) ? "dynamicRecipeVariant" : "dynamicProperty"
8474
+ });
8475
+ },
8466
8476
  Property(node) {
8467
8477
  if (!isIdentifier(node.key))
8468
8478
  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.10";
13
+ version = "0.1.11";
14
14
  }
15
15
  });
16
16
 
@@ -8449,7 +8449,9 @@ var init_no_dynamic_styling = __esm({
8449
8449
  description: "Ensure user doesn't use dynamic styling at any point. \nPrefer to use static styles, leverage css variables or recipes for known dynamic styles."
8450
8450
  },
8451
8451
  messages: {
8452
- dynamic: "Remove dynamic value. Prefer static styles"
8452
+ dynamic: "Remove dynamic value. Prefer static styles",
8453
+ dynamicProperty: "Remove dynamic property. Prefer static style property",
8454
+ dynamicRecipeVariant: "Remove dynamic variant. Prefer static variant definition"
8453
8455
  },
8454
8456
  type: "suggestion",
8455
8457
  schema: []
@@ -8475,6 +8477,14 @@ var init_no_dynamic_styling = __esm({
8475
8477
  messageId: "dynamic"
8476
8478
  });
8477
8479
  },
8480
+ "Property[computed=true]"(node) {
8481
+ if (!isInPandaFunction(node, context))
8482
+ return;
8483
+ context.report({
8484
+ node: node.key,
8485
+ messageId: isRecipeVariant(node, context) ? "dynamicRecipeVariant" : "dynamicProperty"
8486
+ });
8487
+ },
8478
8488
  Property(node) {
8479
8489
  if (!isIdentifier(node.key))
8480
8490
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/eslint-plugin",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Eslint plugin for Panda CSS",
5
5
  "author": "Abraham Aremu <anubra266@gmail.com>",
6
6
  "main": "dist/index.js",