From 5b2d215c526e832e9ffbcac3d2cc3ddd5e6031ac Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 13 Oct 2021 18:21:51 -0700 Subject: [PATCH] Update eslint workflow. Set nextjs default rules. --- web/.eslintrc.js | 7 ++++++- web/.github/workflows/linter.yml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web/.eslintrc.js b/web/.eslintrc.js index 9ec2ef4f3..53c8348c1 100644 --- a/web/.eslintrc.js +++ b/web/.eslintrc.js @@ -3,7 +3,12 @@ module.exports = { browser: true, es2021: true, }, - extends: ['plugin:react/recommended', 'airbnb', 'prettier'], + extends: [ + 'plugin:react/recommended', + 'airbnb', + 'prettier', + 'plugin:@next/next/recommended' + ], parser: '@typescript-eslint/parser', parserOptions: { ecmaFeatures: { diff --git a/web/.github/workflows/linter.yml b/web/.github/workflows/linter.yml index 99e9bee85..bc25d261f 100644 --- a/web/.github/workflows/linter.yml +++ b/web/.github/workflows/linter.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 - name: Linter - uses: tj-actions/eslint-changed-files@v6.5 + uses: tj-actions/eslint-changed-files@v7.3 with: config-path: '.eslintrc.js' ignore-path: '.eslintignore'