From c54726135f5df5f85b9656b6bc025a18d00b3c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Mon, 11 May 2020 18:19:18 +0100 Subject: [PATCH] Upgrade to ESLint 7 --- .travis.yml | 4 ++-- bin/cmd.js | 4 ++-- package.json | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 655b12473..f124d0e06 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: node_js node_js: - - 8.10.0 - - 8 + - 10.12.0 - 10 - 12 + - 14 cache: npm: false diff --git a/bin/cmd.js b/bin/cmd.js index f5c6ed192..47ffe678e 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -4,8 +4,8 @@ var match = process.version.match(/v(\d+)\.(\d+)/) var major = parseInt(match[1], 10) var minor = parseInt(match[2], 10) -if (major >= 9 || (major === 8 && minor >= 10)) { +if (major >= 12 || (major === 10 && minor >= 12)) { require('standard-engine').cli(require('../options')) } else { - console.error('standard: Node 8.10.0 or greater is required. `standard` did not run.') + console.error('standard: Node 10.12.0 or greater is required. `standard` did not run.') } diff --git a/package.json b/package.json index 2f030ef90..4d14b146e 100644 --- a/package.json +++ b/package.json @@ -12,29 +12,29 @@ "url": "https://github.com/standard/standard/issues" }, "dependencies": { - "eslint": "~6.8.0", + "eslint": "~7.0.0", "eslint-config-standard": "14.1.1", "eslint-config-standard-jsx": "8.1.0", - "eslint-plugin-import": "~2.18.0", - "eslint-plugin-node": "~10.0.0", + "eslint-plugin-import": "~2.20.2", + "eslint-plugin-node": "~11.1.0", "eslint-plugin-promise": "~4.2.1", - "eslint-plugin-react": "~7.14.2", + "eslint-plugin-react": "~7.19.0", "eslint-plugin-standard": "~4.0.0", - "standard-engine": "^12.0.0" + "standard-engine": "^12.0.1" }, "devDependencies": { "babel-eslint": "^10.0.3", - "cross-spawn": "^7.0.0", + "cross-spawn": "^7.0.2", "eslint-index": "^1.3.0", "hallmark": "^2.0.0", "minimist": "^1.2.2", - "mkdirp": "^1.0.3", + "mkdirp": "^1.0.4", "run-parallel-limit": "^1.0.3", "standard-packages": "^3.6.1", - "tape": "^4.6.0" + "tape": "^5.0.0" }, "engines": { - "node": ">=8.10.0" + "node": "^10.12.0 || >=12.0.0" }, "homepage": "https://standardjs.com", "keywords": [