Skip to content

Commit

Permalink
ci(eslint): add back react rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocorallo committed Feb 16, 2024
1 parent f468789 commit c0fdd7f
Show file tree
Hide file tree
Showing 3 changed files with 2,185 additions and 57 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'prettier' // this prevents conflicts between eslint and prettier (eslint-config-prettier)
],
parser: '@typescript-eslint/parser',
Expand Down Expand Up @@ -38,5 +40,10 @@ module.exports = {
argsIgnorePattern: '^_'
}
]
},
settings: {
react: { // eslint-plugin-react
version: 'detect'
}
}
}
Loading

0 comments on commit c0fdd7f

Please sign in to comment.