eslint-plugin-barrel-rules 1.4.6 → 1.4.7

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.cjs CHANGED
@@ -286,7 +286,7 @@ var enforceBarrelPattern = {
286
286
  return;
287
287
  }
288
288
  const rawImportPath = node.source.value;
289
- const absoluteCurrentFilePath = context.getFilename();
289
+ const absoluteCurrentFilePath = context.filename;
290
290
  let absoluteImportPath = null;
291
291
  try {
292
292
  const aliasResult = Alias.resolvePath(
@@ -416,7 +416,7 @@ var isolateBarrelFile = {
416
416
  if (rawImportPath.includes("/node_modules/")) {
417
417
  return;
418
418
  }
419
- const absoluteCurrentFilePath = context.getFilename();
419
+ const absoluteCurrentFilePath = context.filename;
420
420
  let absoluteImportPath = null;
421
421
  try {
422
422
  const aliasResult = Alias.resolvePath(
@@ -653,7 +653,7 @@ var noCycle = {
653
653
  },
654
654
  defaultOptions: [],
655
655
  create(context) {
656
- const currentFile = context.getFilename();
656
+ const currentFile = context.filename;
657
657
  const currentDir = import_path4.default.dirname(currentFile);
658
658
  if (!importGraph.has(currentFile)) {
659
659
  importGraph.set(currentFile, /* @__PURE__ */ new Set());
package/dist/index.js CHANGED
@@ -250,7 +250,7 @@ var enforceBarrelPattern = {
250
250
  return;
251
251
  }
252
252
  const rawImportPath = node.source.value;
253
- const absoluteCurrentFilePath = context.getFilename();
253
+ const absoluteCurrentFilePath = context.filename;
254
254
  let absoluteImportPath = null;
255
255
  try {
256
256
  const aliasResult = Alias.resolvePath(
@@ -380,7 +380,7 @@ var isolateBarrelFile = {
380
380
  if (rawImportPath.includes("/node_modules/")) {
381
381
  return;
382
382
  }
383
- const absoluteCurrentFilePath = context.getFilename();
383
+ const absoluteCurrentFilePath = context.filename;
384
384
  let absoluteImportPath = null;
385
385
  try {
386
386
  const aliasResult = Alias.resolvePath(
@@ -617,7 +617,7 @@ var noCycle = {
617
617
  },
618
618
  defaultOptions: [],
619
619
  create(context) {
620
- const currentFile = context.getFilename();
620
+ const currentFile = context.filename;
621
621
  const currentDir = path4.dirname(currentFile);
622
622
  if (!importGraph.has(currentFile)) {
623
623
  importGraph.set(currentFile, /* @__PURE__ */ new Set());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-barrel-rules",
3
3
  "description": "Enforce barrel module pattern",
4
- "version": "1.4.6",
4
+ "version": "1.4.7",
5
5
  "readme": "README.md",
6
6
  "repository": {
7
7
  "type": "git",