@pandacss/eslint-plugin 0.0.13 → 0.0.14

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.13";
7960
+ var version = "0.0.14";
7961
7961
 
7962
7962
  // src/configs/all.ts
7963
7963
  init_cjs_shims();
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.13";
13
+ version = "0.0.14";
14
14
  }
15
15
  });
16
16
 
@@ -3482,7 +3482,6 @@ var createContext = (userConfig) => {
3482
3482
  var import_ts_path = require("@pandacss/config/ts-path");
3483
3483
  var import_config3 = require("@pandacss/config");
3484
3484
  var import_path = __toESM(require("path"));
3485
- var import_fs = __toESM(require("fs"));
3486
3485
  var promise;
3487
3486
  var configPath;
3488
3487
  async function _getContext(configPath2) {
@@ -3538,18 +3537,17 @@ async function isColorAttribute(ctx, _attr) {
3538
3537
  return attrConfig?.values === "colors";
3539
3538
  }
3540
3539
  var arePathsEqual = (path1, path2) => {
3541
- const stats1 = import_fs.default.statSync(path1);
3542
- const stats2 = import_fs.default.statSync(path2);
3543
- return stats1.dev === stats2.dev && stats1.ino === stats2.ino;
3540
+ const normalizedPath1 = import_path.default.resolve(path1);
3541
+ const normalizedPath2 = import_path.default.resolve(path2);
3542
+ return normalizedPath1 === normalizedPath2;
3544
3543
  };
3545
3544
  async function isConfigFile(fileName) {
3546
3545
  return arePathsEqual(configPath, fileName);
3547
3546
  }
3548
3547
  async function isValidFile(ctx, fileName) {
3549
- return ctx.getFiles().includes(fileName);
3548
+ return ctx.getFiles().some((file) => arePathsEqual(file, fileName));
3550
3549
  }
3551
3550
  async function resolveShorthands(ctx, name) {
3552
- console.log("name", name, ctx.utility.getPropShorthandsMap().get(name));
3553
3551
  return ctx.utility.getPropShorthandsMap().get(name);
3554
3552
  }
3555
3553
  async function resolveLongHand(ctx, name) {
@@ -3466,7 +3466,6 @@ init_esm_shims();
3466
3466
  import { resolveTsPathPattern } from "@pandacss/config/ts-path";
3467
3467
  import { findConfig, bundleConfig } from "@pandacss/config";
3468
3468
  import path from "path";
3469
- import fs from "fs";
3470
3469
  var promise;
3471
3470
  var configPath;
3472
3471
  async function _getContext(configPath2) {
@@ -3522,18 +3521,17 @@ async function isColorAttribute(ctx, _attr) {
3522
3521
  return attrConfig?.values === "colors";
3523
3522
  }
3524
3523
  var arePathsEqual = (path1, path2) => {
3525
- const stats1 = fs.statSync(path1);
3526
- const stats2 = fs.statSync(path2);
3527
- return stats1.dev === stats2.dev && stats1.ino === stats2.ino;
3524
+ const normalizedPath1 = path.resolve(path1);
3525
+ const normalizedPath2 = path.resolve(path2);
3526
+ return normalizedPath1 === normalizedPath2;
3528
3527
  };
3529
3528
  async function isConfigFile(fileName) {
3530
3529
  return arePathsEqual(configPath, fileName);
3531
3530
  }
3532
3531
  async function isValidFile(ctx, fileName) {
3533
- return ctx.getFiles().includes(fileName);
3532
+ return ctx.getFiles().some((file) => arePathsEqual(file, fileName));
3534
3533
  }
3535
3534
  async function resolveShorthands(ctx, name) {
3536
- console.log("name", name, ctx.utility.getPropShorthandsMap().get(name));
3537
3535
  return ctx.utility.getPropShorthandsMap().get(name);
3538
3536
  }
3539
3537
  async function resolveLongHand(ctx, name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/eslint-plugin",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "Eslint plugin for Panda CSS",
5
5
  "author": "Abraham Aremu <anubra266@gmail.com>",
6
6
  "main": "dist/index.js",