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
|
|
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
|