@html-validate/eslint-config 5.5.27 → 5.7.0

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.
package/eslint.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const path = require("path");
4
- const { spawn } = require("child_process"); // eslint-disable-line security/detect-child-process
4
+ const { spawn } = require("child_process");
5
5
 
6
6
  const pkgPath = path.dirname(require.resolve("eslint/package.json"));
7
7
  const binary = path.join(pkgPath, "bin/eslint");
@@ -9,6 +9,5 @@ const binary = path.join(pkgPath, "bin/eslint");
9
9
  spawn("node", [binary, ...process.argv.slice(2)], {
10
10
  stdio: "inherit",
11
11
  }).on("exit", (code) => {
12
- /* eslint-disable-next-line no-process-exit */
13
- process.exit(code);
12
+ process.exitCode = code;
14
13
  });
package/index.js CHANGED
@@ -8,8 +8,16 @@ module.exports = {
8
8
  ecmaVersion: 2020,
9
9
  },
10
10
 
11
+ settings: {
12
+ "import/resolver": {
13
+ [require.resolve("eslint-import-resolver-node")]: true,
14
+ [require.resolve("eslint-import-resolver-typescript")]: true,
15
+ },
16
+ },
17
+
11
18
  extends: [
12
19
  require.resolve("eslint-config-sidvind/es2017"),
20
+ "plugin:eslint-comments/recommended",
13
21
  "plugin:prettier/recommended",
14
22
  "plugin:import/errors",
15
23
  "plugin:node/recommended-module",
@@ -21,6 +29,13 @@ module.exports = {
21
29
  plugins: ["array-func", "prettier", "import", "node", "security", "sonarjs"],
22
30
 
23
31
  rules: {
32
+ "eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }],
33
+ "eslint-comments/require-description": [
34
+ "error",
35
+ { ignore: ["eslint-env", "exported", "global", "globals"] },
36
+ ],
37
+ "eslint-comments/no-unused-disable": "error",
38
+
24
39
  "import/default": "off",
25
40
  "import/extensions": ["error", "never", { json: "always" }],
26
41
  "import/newline-after-import": "error",
@@ -40,10 +55,11 @@ module.exports = {
40
55
  * work with typescript */
41
56
  "node/no-missing-import": "off",
42
57
 
58
+ "security/detect-child-process": "off", // produces more noise than useful errors
43
59
  "security/detect-non-literal-fs-filename": "off", // html-validate reads files, don't want to acknowledge all occurrences
44
60
  "security/detect-non-literal-regexp": "error",
45
61
  "security/detect-non-literal-require": "error",
46
- "security/detect-object-injection": "error",
62
+ "security/detect-object-injection": "off", // produces more noise than useful errors
47
63
  "security/detect-unsafe-regex": "error",
48
64
 
49
65
  "sonarjs/no-small-switch": "off", // prefer to use small switches when the intention is to all more cases later
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/eslint-config",
3
- "version": "5.5.27",
3
+ "version": "5.7.0",
4
4
  "description": "Eslint sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "eslint"
@@ -35,15 +35,18 @@
35
35
  "dependencies": {
36
36
  "@rushstack/eslint-patch": "1.2.0",
37
37
  "eslint": "8.36.0",
38
- "eslint-config-prettier": "8.7.0",
38
+ "eslint-config-prettier": "8.8.0",
39
39
  "eslint-config-sidvind": "1.3.2",
40
40
  "eslint-formatter-gitlab": "4.0.0",
41
+ "eslint-import-resolver-node": "0.3.7",
42
+ "eslint-import-resolver-typescript": "3.5.3",
41
43
  "eslint-plugin-array-func": "3.1.8",
44
+ "eslint-plugin-eslint-comments": "3.2.0",
42
45
  "eslint-plugin-import": "2.27.5",
43
46
  "eslint-plugin-node": "11.1.0",
44
47
  "eslint-plugin-prettier": "4.2.1",
45
48
  "eslint-plugin-security": "1.7.1",
46
- "eslint-plugin-sonarjs": "0.18.0"
49
+ "eslint-plugin-sonarjs": "0.19.0"
47
50
  },
48
51
  "devDependencies": {
49
52
  "argparse": "2.0.1",
@@ -60,5 +63,5 @@
60
63
  "publishConfig": {
61
64
  "access": "public"
62
65
  },
63
- "gitHead": "c2851462eb0f27720d36fa94428f4e8642b3abb2"
66
+ "gitHead": "f6cf15ebc4717575466d4d797e74b58998eedf91"
64
67
  }