Skip to content

Commit

Permalink
Adding eslint rules for explicit any and default export (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte authored Aug 17, 2022
1 parent a019b4f commit eb7ae88
Show file tree
Hide file tree
Showing 4 changed files with 476 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: ['react', 'react-hooks', '@typescript-eslint', 'prettier'],
plugins: ['react', 'react-hooks', '@typescript-eslint', 'import', 'prettier'],
rules: {
'prettier/prettier': 'error',
'react/jsx-no-target-blank': 0,
Expand All @@ -33,6 +33,8 @@ module.exports = {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/react-in-jsx-scope': 'off',
'import/no-default-export': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
},
settings: {
react: {
Expand Down
Loading

0 comments on commit eb7ae88

Please sign in to comment.