Skip to content

Commit a73ed8e

Browse files
fix: unresolved import in eslint-config (#34)
1 parent df28ab8 commit a73ed8e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

configs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs from "node:fs";
22
import path from "node:path";
3-
// eslint-disable-next-line import/no-unresolved
43
import { globalIgnores } from "eslint/config";
54
import semver from "semver";
65
import configs from "./configs/index.js";

configs/javascript.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,10 @@ const importRules = {
10751075
"import/no-self-import": "error",
10761076

10771077
// From recommended
1078-
"import/no-unresolved": ["error", { commonjs: true }],
1078+
"import/no-unresolved": [
1079+
"error",
1080+
{ ignore: ["^eslint/config$"], commonjs: true },
1081+
],
10791082

10801083
// No need
10811084
// "import/no-useless-path-segments": "off",

eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line import/no-unresolved
21
import { defineConfig } from "eslint/config";
32
import config from "../eslint-config-webpack/index.js";
43

0 commit comments

Comments
 (0)