diff --git a/package-lock.json b/package-lock.json index a6a9d467..da7ddd4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1786,9 +1786,9 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "eslint": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.2.0.tgz", - "integrity": "sha512-zlggW1qp7/TBjwLfouRoY7eWXrXwJZFqCdIxxh0/LVB/QuuKuIMkzyUZEcDo6LBadsry5JcEMxIqd3H/66CXVg==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.3.0.tgz", + "integrity": "sha512-N/tCqlMKkyNvAvLu+zI9AqDasnSLt00K+Hu8kdsERliC9jYEc8ck12XtjvOXrBKu8fK6RrBcN9bat6Xk++9jAg==", "dev": true, "requires": { "ajv": "^6.5.0", @@ -1822,7 +1822,7 @@ "path-is-inside": "^1.0.2", "pluralize": "^7.0.0", "progress": "^2.0.0", - "regexpp": "^1.1.0", + "regexpp": "^2.0.0", "require-uncached": "^1.0.3", "semver": "^5.5.0", "string.prototype.matchall": "^2.0.0", @@ -1870,9 +1870,9 @@ } }, "ignore": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.2.tgz", - "integrity": "sha512-uoxnT7PYpyEnsja+yX+7v49B7LXxmzDJ2JALqHH3oEGzpM2U1IGcbfnOr8Dt57z3B/UWs7/iAgPFbmye8m4I0g==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.3.tgz", + "integrity": "sha512-Z/vAH2GGIEATQnBVXMclE2IGV6i0GyVngKThcGZ5kHgHMxLo9Ow2+XHRq1aEKEej5vOF1TPJNbvX6J/anT0M7A==", "dev": true }, "strip-ansi": { @@ -5159,9 +5159,9 @@ } }, "regexpp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-1.1.0.tgz", - "integrity": "sha512-LOPw8FpgdQF9etWMaAfG/WRthIdXJGYp4mJ2Jgn/2lpkbod9jPn0t9UqN7AxBOKNfzRbYyVfgc7Vk4t/MpnXgw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.0.tgz", + "integrity": "sha512-g2FAVtR8Uh8GO1Nv5wpxW7VFVwHcCEr4wyA8/MHiRkO8uHoR5ntAA8Uq3P1vvMTX/BeQiRVSpDGLd+Wn5HNOTA==", "dev": true }, "repeat-element": { diff --git a/package.json b/package.json index c064325b..d35363d6 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "eslint-restricted-globals": "^0.1.1" }, "devDependencies": { - "eslint": "5.2.0", + "eslint": "5.3.0", "eslint-find-rules": "3.3.1", "execa": "0.10.0", "prettier": "1.14.0", diff --git a/rules/core/best-practices.js b/rules/core/best-practices.js index cdf04d30..6d88af34 100644 --- a/rules/core/best-practices.js +++ b/rules/core/best-practices.js @@ -112,6 +112,7 @@ module.exports = { "prefer-promise-reject-errors": "error", radix: "error", "require-await": "error", + "require-unicode-regexp": "error", "vars-on-top": "error", "wrap-iife": "error", yoda: "error", diff --git a/rules/core/possible-errors.js b/rules/core/possible-errors.js index 75013aee..fbd72f97 100644 --- a/rules/core/possible-errors.js +++ b/rules/core/possible-errors.js @@ -2,6 +2,7 @@ module.exports = { rules: { "for-direction": "error", "getter-return": ["error", { allowImplicit: true }], + "no-async-promise-executor": "error", "no-await-in-loop": "error", "no-compare-neg-zero": "error", "no-cond-assign": "error", @@ -22,6 +23,7 @@ module.exports = { "no-inner-declarations": "error", "no-invalid-regexp": "error", "no-irregular-whitespace": "error", + "no-misleading-character-class": "error", "no-obj-calls": "error", "no-prototype-builtins": "error", "no-regex-spaces": "error", @@ -31,6 +33,7 @@ module.exports = { "no-unreachable": "error", "no-unsafe-finally": "error", "no-unsafe-negation": "error", + "require-atomic-updates": "error", "use-isnan": "error", "valid-jsdoc": "off", "valid-typeof": "error",