diff --git a/.eslintrc b/.eslintrc index 92dab13222..f3b9c00e50 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,7 +2,8 @@ "extends": "hexo", "root": true, "rules": { - "strict": "off" + "strict": "off", + "node/no-unpublished-require": "off" }, "env": { "browser": true diff --git a/package.json b/package.json index fd3846de51..ec50a48ecf 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "devDependencies": { "del": "^3.0.0", "eslint": "^5.9.0", - "eslint-config-hexo": "^2.0.0", + "eslint-config-hexo": "^3.0.0", "gulp": "^3.9.1", "gulp-cheerio": "^0.6.2", "gulp-clean-css": "^3.7.0", diff --git a/yarn.lock b/yarn.lock index 5d88fd6631..774061eddd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1477,9 +1477,20 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.4, escape-string-regexp@^ version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" -eslint-config-hexo@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/eslint-config-hexo/-/eslint-config-hexo-2.0.0.tgz#5ea5bccbc5c07d520c4f298133cb3900ed19f1ed" +eslint-config-hexo@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-hexo/-/eslint-config-hexo-3.0.0.tgz#60c6355eea28cc862dbe7000b802eb5d42afee53" + dependencies: + eslint-plugin-node "^5.2.1" + +eslint-plugin-node@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-5.2.1.tgz#80df3253c4d7901045ec87fa660a284e32bdca29" + dependencies: + ignore "^3.3.6" + minimatch "^3.0.4" + resolve "^1.3.3" + semver "5.3.0" eslint-scope@^4.0.0: version "4.0.0" @@ -2725,6 +2736,10 @@ ignore-walk@^3.0.1: dependencies: minimatch "^3.0.4" +ignore@^3.3.6: + version "3.3.10" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" + ignore@^4.0.6: version "4.0.6" resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" @@ -4896,7 +4911,7 @@ resolve-url@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" -resolve@^1.1.6, resolve@^1.1.7, resolve@^1.5.0: +resolve@^1.1.6, resolve@^1.1.7, resolve@^1.3.3, resolve@^1.5.0: version "1.8.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26" dependencies: @@ -5011,6 +5026,10 @@ semver-truncate@^1.0.0: version "5.6.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004" +semver@5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + semver@^4.0.3, semver@^4.1.0: version "4.3.6" resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.6.tgz#300bc6e0e86374f7ba61068b5b1ecd57fc6532da"