Skip to content

Commit

Permalink
Disable rules-of-hooks in server components
Browse files Browse the repository at this point in the history
  • Loading branch information
frandiox committed May 30, 2022
1 parent 83b9138 commit e0ffbf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,11 @@ module.exports = {
'node/no-missing-import': 'off',
},
},
{
files: ['**/*.server.*'],
rules: {
'react-hooks/rules-of-hooks': 'off',
},
},
],
};

0 comments on commit e0ffbf6

Please sign in to comment.