eslint-config-webpack 4.0.1 → 4.0.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.
@@ -1075,7 +1075,10 @@ const importRules = {
1075
1075
  "import/no-self-import": "error",
1076
1076
 
1077
1077
  // From recommended
1078
- "import/no-unresolved": ["error", { commonjs: true }],
1078
+ "import/no-unresolved": [
1079
+ "error",
1080
+ { ignore: ["^eslint/config$"], commonjs: true },
1081
+ ],
1079
1082
 
1080
1083
  // No need
1081
1084
  // "import/no-useless-path-segments": "off",
package/configs/jest.js CHANGED
@@ -49,7 +49,9 @@ const recommendedConfig = {
49
49
 
50
50
  "jest/no-disabled-tests": "error",
51
51
 
52
- "jest/no-done-callback": "error",
52
+ // No need
53
+ // Adding extra `await new Promise(...)` is very inconvenient when you have a lot of callback api
54
+ "jest/no-done-callback": "off",
53
55
 
54
56
  "jest/no-duplicate-hooks": "error",
55
57
 
package/configs.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- // eslint-disable-next-line import/no-unresolved
4
3
  import { globalIgnores } from "eslint/config";
5
4
  import semver from "semver";
6
5
  import configs from "./configs/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-webpack",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "author": "Joshua Wiens (https://twitter.com/@d3viant0ne)",
5
5
  "license": "MIT",
6
6
  "description": "Provides Webpack's eslint rules as an extensible shared config",
@@ -43,6 +43,7 @@
43
43
  "@stylistic/eslint-plugin": ">= 4.4.1",
44
44
  "globals": ">= 16.2.0",
45
45
  "eslint": ">= 9.28.0",
46
+ "eslint-config-prettier": "^10.1.5",
46
47
  "eslint-plugin-import": ">= 2.31.0",
47
48
  "eslint-plugin-jest": ">= 28.12.0",
48
49
  "eslint-plugin-jsdoc": ">= 50.7.1",