@html-validate/eslint-config 5.6.0 → 5.7.1

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
@@ -17,6 +17,7 @@ module.exports = {
17
17
 
18
18
  extends: [
19
19
  require.resolve("eslint-config-sidvind/es2017"),
20
+ "plugin:eslint-comments/recommended",
20
21
  "plugin:prettier/recommended",
21
22
  "plugin:import/errors",
22
23
  "plugin:node/recommended-module",
@@ -28,6 +29,13 @@ module.exports = {
28
29
  plugins: ["array-func", "prettier", "import", "node", "security", "sonarjs"],
29
30
 
30
31
  rules: {
32
+ "eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }],
33
+ "eslint-comments/require-description": [
34
+ "error",
35
+ { ignore: ["eslint-enable", "eslint-env", "exported", "global", "globals"] },
36
+ ],
37
+ "eslint-comments/no-unused-disable": "error",
38
+
31
39
  "import/default": "off",
32
40
  "import/extensions": ["error", "never", { json: "always" }],
33
41
  "import/newline-after-import": "error",
@@ -47,10 +55,11 @@ module.exports = {
47
55
  * work with typescript */
48
56
  "node/no-missing-import": "off",
49
57
 
58
+ "security/detect-child-process": "off", // produces more noise than useful errors
50
59
  "security/detect-non-literal-fs-filename": "off", // html-validate reads files, don't want to acknowledge all occurrences
51
60
  "security/detect-non-literal-regexp": "error",
52
61
  "security/detect-non-literal-require": "error",
53
- "security/detect-object-injection": "error",
62
+ "security/detect-object-injection": "off", // produces more noise than useful errors
54
63
  "security/detect-unsafe-regex": "error",
55
64
 
56
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.6.0",
3
+ "version": "5.7.1",
4
4
  "description": "Eslint sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "eslint"
@@ -41,6 +41,7 @@
41
41
  "eslint-import-resolver-node": "0.3.7",
42
42
  "eslint-import-resolver-typescript": "3.5.3",
43
43
  "eslint-plugin-array-func": "3.1.8",
44
+ "eslint-plugin-eslint-comments": "3.2.0",
44
45
  "eslint-plugin-import": "2.27.5",
45
46
  "eslint-plugin-node": "11.1.0",
46
47
  "eslint-plugin-prettier": "4.2.1",
@@ -62,5 +63,5 @@
62
63
  "publishConfig": {
63
64
  "access": "public"
64
65
  },
65
- "gitHead": "887d53ec6473b2d4a4607cc6eea1e9a06c8cd9b0"
66
+ "gitHead": "66326d4a5ecfd939be5bb70e0f386c1fc2d8fcc4"
66
67
  }