Browse Source

Update eslint workflow. Set nextjs default rules.

pull/1886/head
Gabe Kangas 5 years ago
parent
commit
5b2d215c52
  1. 7
      web/.eslintrc.js
  2. 2
      web/.github/workflows/linter.yml

7
web/.eslintrc.js

@ -3,7 +3,12 @@ module.exports = { @@ -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: {

2
web/.github/workflows/linter.yml

@ -16,7 +16,7 @@ jobs: @@ -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'

Loading…
Cancel
Save