From 20396ab40c8f9189d345304ea86a1be7b6d8b641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E5=88=83?= Date: Tue, 7 Apr 2020 19:31:51 +0800 Subject: [PATCH] Upgrade: some (dev) deps 1. after upgrading eslint-plugin-jsdoc, it reports: "Invalid JSDoc tag name "template" jsdoc/check-tag-names" it was fixed by added setting.jsdoc.mode: typescript (refs:https://github.com/gajus/eslint-plugin-jsdoc#check-tag-names) 2. the following deps were not upgraded: * levn (was upgraded in eslint/eslint#13140) * ignore (it has a few breaking change) --- .eslintrc.js | 5 ++++ lib/shared/relative-module-resolver.js | 2 +- package.json | 38 +++++++++++++------------- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 6ab4510cb37c..0182eb95d542 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,6 +22,11 @@ module.exports = { parserOptions: { ecmaVersion: 2020 }, + settings: { + jsdoc: { + mode: "typescript" + } + }, rules: { "eslint-plugin/consistent-output": "error", "eslint-plugin/no-deprecated-context-methods": "error", diff --git a/lib/shared/relative-module-resolver.js b/lib/shared/relative-module-resolver.js index fa6cca72361d..430f810862b0 100644 --- a/lib/shared/relative-module-resolver.js +++ b/lib/shared/relative-module-resolver.js @@ -11,7 +11,7 @@ const Module = require("module"); * `Module.createRequire` is added in v12.2.0. It supports URL as well. * We only support the case where the argument is a filepath, not a URL. */ -const createRequire = Module.createRequire || Module.createRequireFromPath; +const createRequire = Module.createRequire || Module.createRequireFromPath; // eslint-disable-line node/no-unsupported-features/node-builtins, node/no-deprecated-api module.exports = { diff --git a/package.json b/package.json index ed15f61d02bb..5264a0d8ff95 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "dependencies": { "@babel/code-frame": "^7.0.0", "ajv": "^6.10.0", - "chalk": "^3.0.0", - "cross-spawn": "^7.0.1", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", "debug": "^4.0.1", "doctrine": "^3.0.0", "eslint-scope": "^5.0.0", @@ -73,12 +73,12 @@ "lodash": "^4.17.14", "minimatch": "^3.0.4", "natural-compare": "^1.4.0", - "optionator": "^0.8.3", + "optionator": "^0.9.1", "progress": "^2.0.0", - "regexpp": "^3.0.0", - "semver": "^7.1.1", + "regexpp": "^3.1.0", + "semver": "^7.2.1", "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.0.1", + "strip-json-comments": "^3.1.0", "table": "^5.2.3", "text-table": "^0.2.0", "v8-compile-cache": "^2.0.3" @@ -93,39 +93,39 @@ "common-tags": "^1.8.0", "core-js": "^3.1.3", "dateformat": "^3.0.3", - "ejs": "^2.6.1", + "ejs": "^3.0.2", "eslint": "file:.", "eslint-config-eslint": "file:packages/eslint-config-eslint", "eslint-plugin-eslint-plugin": "^2.2.1", "eslint-plugin-internal-rules": "file:tools/internal-rules", - "eslint-plugin-jsdoc": "^15.9.5", - "eslint-plugin-node": "^9.0.0", + "eslint-plugin-jsdoc": "^22.1.0", + "eslint-plugin-node": "^11.1.0", "eslint-release": "^1.2.0", "eslump": "^2.0.0", "esprima": "^4.0.1", - "glob": "^7.1.3", + "glob": "^7.1.6", "jsdoc": "^3.5.5", "karma": "^4.0.1", - "karma-chrome-launcher": "^2.2.0", + "karma-chrome-launcher": "^3.1.0", "karma-mocha": "^1.3.0", "karma-mocha-reporter": "^2.2.3", "karma-webpack": "^4.0.0-rc.6", "leche": "^2.2.3", - "lint-staged": "^8.1.5", + "lint-staged": "^10.1.2", "load-perf": "^0.2.0", - "markdownlint": "^0.15.0", - "markdownlint-cli": "^0.17.0", + "markdownlint": "^0.19.0", + "markdownlint-cli": "^0.22.0", "memfs": "^3.0.1", - "mocha": "^6.1.2", + "mocha": "^7.1.1", "mocha-junit-reporter": "^1.23.0", "npm-license": "^0.3.3", - "nyc": "^14.1.1", + "nyc": "^15.0.1", "proxyquire": "^2.0.1", - "puppeteer": "^1.18.0", - "recast": "^0.18.1", + "puppeteer": "^2.1.1", + "recast": "^0.19.0", "regenerator-runtime": "^0.13.2", "shelljs": "^0.8.2", - "sinon": "^7.3.2", + "sinon": "^9.0.1", "temp": "^0.9.0", "webpack": "^4.35.0", "webpack-cli": "^3.3.5",