@pandacss/eslint-plugin 0.0.20 → 0.1.1

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.0.20";
7960
+ var version = "0.1.1";
7961
7961
 
7962
7962
  // src/configs/all.ts
7963
7963
  init_cjs_shims();
@@ -8112,14 +8112,13 @@ var isPandaProp = (node, context) => {
8112
8112
  const jsxAncestor = getAncestor(isJSXOpeningElement, node);
8113
8113
  if (!jsxAncestor)
8114
8114
  return;
8115
- if (isJSXMemberExpression(jsxAncestor.name) && isJSXIdentifier(jsxAncestor.name.object) && isPandaIsh(jsxAncestor.name.object.name, context))
8116
- return true;
8117
- else if (!isJSXIdentifier(jsxAncestor.name))
8118
- return;
8119
- if (!isPandaIsh(jsxAncestor.name.name, context) && !isLocalStyledFactory(jsxAncestor, context))
8115
+ if (!isJSXMemberExpression(jsxAncestor.name) && !isJSXIdentifier(jsxAncestor.name))
8120
8116
  return;
8117
+ const name2 = isJSXMemberExpression(jsxAncestor.name) ? jsxAncestor.name.object.name : jsxAncestor.name.name;
8121
8118
  const prop = node.name.name;
8122
- if (typeof prop !== "string" || !isValidProperty(prop, context, jsxAncestor.name.name))
8119
+ if (!isPandaIsh(name2, context) && !isLocalStyledFactory(jsxAncestor, context))
8120
+ return;
8121
+ if (typeof prop !== "string" || !isValidProperty(prop, context, name2))
8123
8122
  return;
8124
8123
  return true;
8125
8124
  };
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.20";
13
+ version = "0.1.1";
14
14
  }
15
15
  });
16
16
 
@@ -8088,14 +8088,13 @@ var init_helpers = __esm({
8088
8088
  const jsxAncestor = getAncestor(isJSXOpeningElement, node);
8089
8089
  if (!jsxAncestor)
8090
8090
  return;
8091
- if (isJSXMemberExpression(jsxAncestor.name) && isJSXIdentifier(jsxAncestor.name.object) && isPandaIsh(jsxAncestor.name.object.name, context))
8092
- return true;
8093
- else if (!isJSXIdentifier(jsxAncestor.name))
8094
- return;
8095
- if (!isPandaIsh(jsxAncestor.name.name, context) && !isLocalStyledFactory(jsxAncestor, context))
8091
+ if (!isJSXMemberExpression(jsxAncestor.name) && !isJSXIdentifier(jsxAncestor.name))
8096
8092
  return;
8093
+ const name2 = isJSXMemberExpression(jsxAncestor.name) ? jsxAncestor.name.object.name : jsxAncestor.name.name;
8097
8094
  const prop = node.name.name;
8098
- if (typeof prop !== "string" || !isValidProperty(prop, context, jsxAncestor.name.name))
8095
+ if (!isPandaIsh(name2, context) && !isLocalStyledFactory(jsxAncestor, context))
8096
+ return;
8097
+ if (typeof prop !== "string" || !isValidProperty(prop, context, name2))
8099
8098
  return;
8100
8099
  return true;
8101
8100
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/eslint-plugin",
3
- "version": "0.0.20",
3
+ "version": "0.1.1",
4
4
  "description": "Eslint plugin for Panda CSS",
5
5
  "author": "Abraham Aremu <anubra266@gmail.com>",
6
6
  "main": "dist/index.js",