0

Update eslint workflow. Set nextjs default rules.

This commit is contained in:
Gabe Kangas 2021-10-13 18:21:51 -07:00
parent a22ad8e122
commit 5b2d215c52
2 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,12 @@ module.exports = {
browser: true, browser: true,
es2021: true, es2021: true,
}, },
extends: ['plugin:react/recommended', 'airbnb', 'prettier'], extends: [
'plugin:react/recommended',
'airbnb',
'prettier',
'plugin:@next/next/recommended'
],
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
parserOptions: { parserOptions: {
ecmaFeatures: { ecmaFeatures: {

View File

@ -16,7 +16,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Linter - name: Linter
uses: tj-actions/eslint-changed-files@v6.5 uses: tj-actions/eslint-changed-files@v7.3
with: with:
config-path: '.eslintrc.js' config-path: '.eslintrc.js'
ignore-path: '.eslintignore' ignore-path: '.eslintignore'