Update eslint workflow. Set nextjs default rules.
This commit is contained in:
parent
a22ad8e122
commit
5b2d215c52
@ -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: {
|
||||||
|
2
web/.github/workflows/linter.yml
vendored
2
web/.github/workflows/linter.yml
vendored
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user