From e25e9da1494108cd2bdc8cbaf309ec6c3ba64ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Mon, 31 Jan 2022 20:51:32 +0100 Subject: [PATCH] feat: support ESLint 8.X (#1725) * feat: support ESLint 8.X BREAKING CHANGE: Requires Node@^12.22.0 || ^14.17.0 || >=16.0.0 * build(deps): eslint-config-standard-jsx to 11.0.0 * ci: only test-external with lts/* Co-authored-by: Divlo --- .github/workflows/test-external.yml | 9 ++------- .github/workflows/test-internal.yml | 2 +- package.json | 16 ++++++++-------- 3 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test-external.yml b/.github/workflows/test-external.yml index c44d4c1aa..9262948b2 100644 --- a/.github/workflows/test-external.yml +++ b/.github/workflows/test-external.yml @@ -12,19 +12,14 @@ jobs: test-external: runs-on: ubuntu-latest - strategy: - matrix: - node-version: ['lts/*'] - fail-fast: false - steps: - name: Checkout project uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node-version }} + node-version: lts/* - name: Cache Node dependencies uses: actions/cache@v2 diff --git a/.github/workflows/test-internal.yml b/.github/workflows/test-internal.yml index 2cc7bac07..91bc15f2c 100644 --- a/.github/workflows/test-internal.yml +++ b/.github/workflows/test-internal.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [12.20.0, 14.13.1, 16.0.0, 17] + node-version: [12.22, 12, 14.17, 14, 16.0.0, 16] fail-fast: false steps: diff --git a/package.json b/package.json index 93fc69a50..80b389b27 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,13 @@ "url": "https://github.com/standard/standard/issues" }, "dependencies": { - "eslint": "~7.18.0", - "eslint-config-standard": "16.0.3", - "eslint-config-standard-jsx": "10.0.0", - "eslint-plugin-import": "~2.25.3", - "eslint-plugin-node": "~11.1.0", - "eslint-plugin-promise": "~5.1.1", - "eslint-plugin-react": "~7.27.0", + "eslint": "^8.7.0", + "eslint-config-standard": "^17.0.0-0", + "eslint-config-standard-jsx": "^11.0.0-0", + "eslint-plugin-import": "^2.25.4", + "eslint-plugin-n": "^14.0.0", + "eslint-plugin-promise": "^6.0.0", + "eslint-plugin-react": "^7.28.0", "standard-engine": "^15.0.0-0" }, "devDependencies": { @@ -34,7 +34,7 @@ "tape": "^5.3.2" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "homepage": "https://standardjs.com", "keywords": [