Skip to content

Commit

Permalink
build(eslint): Add react-hooks/rules-of-hooks to .eslintrc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ruedap committed May 30, 2020
1 parent ffe5e6a commit b41554a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ module.exports = {
],
plugins: [
'@typescript-eslint',
'react'
'react',
'react-hooks'
],
settings: {
react: {
Expand All @@ -44,6 +45,7 @@ module.exports = {
allowMultiline: true,
children: true
}],
'react/jsx-indent': ['error', 2, { indentLogicalExpressions: true }]
'react/jsx-indent': ['error', 2, { indentLogicalExpressions: true }],
'react-hooks/rules-of-hooks': 'error'
}
}

0 comments on commit b41554a

Please sign in to comment.