@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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/utils/worker.js +4 -6
- package/dist/utils/worker.mjs +4 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/dist/utils/worker.js
CHANGED
|
@@ -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
|
|
3542
|
-
const
|
|
3543
|
-
return
|
|
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().
|
|
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) {
|
package/dist/utils/worker.mjs
CHANGED
|
@@ -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
|
|
3526
|
-
const
|
|
3527
|
-
return
|
|
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().
|
|
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) {
|