Skip to content

Commit

Permalink
fix(eslint-config): disable react memoization for test/stories
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Jan 25, 2024
1 parent 7501f34 commit 684c7ad
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/eslint-config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,23 @@ module.exports = {
rules: {
'import/no-default-export': 'off'
}
},
{
files: [
'**/test/**',
'**/tests/**',
'**/spec/**',
'**/__tests__/**',
'**/__stories__/**',
'*.test.*',
'*.spec.*',
'*.story.*',
'*.e2e.*',
'*.e2e-spec.*'
],
rules: {
'@arthurgeron/react-usememo/require-usememo': 'off'
}
}
]
}

0 comments on commit 684c7ad

Please sign in to comment.