eslint-plugin-use-agnostic 1.3.1 → 1.3.2

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.
@@ -1,7 +1,15 @@
1
+ import url from "url";
2
+ import path from "path";
3
+
1
4
  import { createRequire } from "module";
2
5
  const require = createRequire(import.meta.url);
3
6
 
4
- const raw = require("../../../comments.config.json");
7
+ const filename = url.fileURLToPath(import.meta.url);
8
+ const dirname = path.dirname(filename);
9
+
10
+ const rawPath = path.join(dirname, "../../../comments.config.json");
11
+
12
+ const raw = require(rawPath);
5
13
  export const resolvedConfigData = raw;
6
14
 
7
15
  /* Notes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-use-agnostic",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Highlights problematic server-client imports in projects made with the Fullstack React Architecture.",
5
5
  "keywords": [
6
6
  "eslint",