eslint-config-webpack 4.0.1 → 4.0.3

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
@@ -12,6 +12,7 @@ const recommendedConfig = {
12
12
  "**/{tests,test,__tests__}/**/*.?(c|m)[jt]s?(x)",
13
13
  "**/?(*.)+(spec|test).[jt]s?(x)",
14
14
  "**/test-*.[jt]s?(x)",
15
+ "setupTest.{js,cjs,mjs,ts,cts,mjs}",
15
16
  ],
16
17
  ignores: [
17
18
  "**/{tests,test,__tests__}/**/{helper,helpers,__helper__,__helpers__,fixture,fixtures,__fixture__,__fixtures__}/**/*",
@@ -49,7 +50,9 @@ const recommendedConfig = {
49
50
 
50
51
  "jest/no-disabled-tests": "error",
51
52
 
52
- "jest/no-done-callback": "error",
53
+ // No need
54
+ // Adding extra `await new Promise(...)` is very inconvenient when you have a lot of callback api
55
+ "jest/no-done-callback": "off",
53
56
 
54
57
  "jest/no-duplicate-hooks": "error",
55
58
 
@@ -187,6 +190,12 @@ const recommendedConfig = {
187
190
 
188
191
  // Disable it for tests, because often you can use `a`, `b`, `c` and etc variables
189
192
  "id-length": "off",
193
+
194
+ // In tests, we can have any names
195
+ camelcase: "off",
196
+
197
+ // Doesn't require jsdoc for tests, they are either redundant or we have a separate task for checking types of tests
198
+ "jsdoc/require-jsdoc": "off",
190
199
  },
191
200
  };
192
201
 
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/ignore-paths.js CHANGED
@@ -4,5 +4,6 @@ export default [
4
4
  "dist/**/*",
5
5
  "coverage/**/*",
6
6
  "test/fixtures/**/*",
7
+ "test/outputs/**/*",
7
8
  "build/Release/**/*",
8
9
  ];
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.3",
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",