@pandacss/eslint-plugin 0.2.1 → 0.2.3

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.
@@ -3851,8 +3851,7 @@ var import_path = __toESM(require("path"));
3851
3851
  var configPath;
3852
3852
  var contextCache = {};
3853
3853
  async function _getContext(configPath2) {
3854
- if (!configPath2)
3855
- throw new Error("Invalid config path");
3854
+ if (!configPath2) throw new Error("Invalid config path");
3856
3855
  const cwd = import_path.default.dirname(configPath2);
3857
3856
  const ctx = await (0, import_node2.loadConfigAndCreateContext)({ configPath: configPath2, cwd });
3858
3857
  return ctx;
@@ -3904,13 +3903,10 @@ async function resolveLongHand(ctx, name) {
3904
3903
  return reverseShorthandsMap.get(name);
3905
3904
  }
3906
3905
  async function isValidProperty(ctx, name, patternName) {
3907
- if (ctx.isValidProperty(name))
3908
- return true;
3909
- if (!patternName)
3910
- return;
3906
+ if (ctx.isValidProperty(name)) return true;
3907
+ if (!patternName) return;
3911
3908
  const pattern = ctx.patterns.details.find((p) => p.baseName === patternName || p.jsx.includes(patternName))?.config.properties;
3912
- if (!pattern)
3913
- return;
3909
+ if (!pattern) return;
3914
3910
  return Object.keys(pattern).includes(name);
3915
3911
  }
3916
3912
  async function matchFile(ctx, name, imports) {
@@ -3920,8 +3916,7 @@ async function matchFile(ctx, name, imports) {
3920
3916
  async function matchImports(ctx, result) {
3921
3917
  return ctx.imports.match(result, (mod) => {
3922
3918
  const { tsOptions } = ctx.parserOptions;
3923
- if (!tsOptions?.pathMappings)
3924
- return;
3919
+ if (!tsOptions?.pathMappings) return;
3925
3920
  return (0, import_ts_path.resolveTsPathPattern)(tsOptions.pathMappings, mod);
3926
3921
  });
3927
3922
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "../chunk-YLUMOAQM.mjs";
3
+ } from "../chunk-ZIYNIPDW.mjs";
4
4
 
5
5
  // src/utils/worker.ts
6
6
  init_esm_shims();
@@ -3835,8 +3835,7 @@ import path from "path";
3835
3835
  var configPath;
3836
3836
  var contextCache = {};
3837
3837
  async function _getContext(configPath2) {
3838
- if (!configPath2)
3839
- throw new Error("Invalid config path");
3838
+ if (!configPath2) throw new Error("Invalid config path");
3840
3839
  const cwd = path.dirname(configPath2);
3841
3840
  const ctx = await loadConfigAndCreateContext({ configPath: configPath2, cwd });
3842
3841
  return ctx;
@@ -3888,13 +3887,10 @@ async function resolveLongHand(ctx, name) {
3888
3887
  return reverseShorthandsMap.get(name);
3889
3888
  }
3890
3889
  async function isValidProperty(ctx, name, patternName) {
3891
- if (ctx.isValidProperty(name))
3892
- return true;
3893
- if (!patternName)
3894
- return;
3890
+ if (ctx.isValidProperty(name)) return true;
3891
+ if (!patternName) return;
3895
3892
  const pattern = ctx.patterns.details.find((p) => p.baseName === patternName || p.jsx.includes(patternName))?.config.properties;
3896
- if (!pattern)
3897
- return;
3893
+ if (!pattern) return;
3898
3894
  return Object.keys(pattern).includes(name);
3899
3895
  }
3900
3896
  async function matchFile(ctx, name, imports) {
@@ -3904,8 +3900,7 @@ async function matchFile(ctx, name, imports) {
3904
3900
  async function matchImports(ctx, result) {
3905
3901
  return ctx.imports.match(result, (mod) => {
3906
3902
  const { tsOptions } = ctx.parserOptions;
3907
- if (!tsOptions?.pathMappings)
3908
- return;
3903
+ if (!tsOptions?.pathMappings) return;
3909
3904
  return resolveTsPathPattern(tsOptions.pathMappings, mod);
3910
3905
  });
3911
3906
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/eslint-plugin",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Eslint plugin for Panda CSS",
5
5
  "author": "Abraham Aremu <anubra266@gmail.com>",
6
6
  "main": "dist/index.js",
@@ -37,6 +37,9 @@
37
37
  "peerDependencies": {
38
38
  "eslint": "*"
39
39
  },
40
+ "devDependencies": {
41
+ "typescript": "^5.7.2"
42
+ },
40
43
  "scripts": {
41
44
  "build": "tsup",
42
45
  "dev": "tsup --watch",