Tools: Add complexity rule

pull/3540/head^2
Laurent Cozic 2020-08-05 23:16:51 +00:00
parent c19f8c8035
commit 7e4ac0fd73
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ module.exports = {
'no-array-constructor': ['error'],
'radix': ['error'],
// Warn only for now because fixing everything would take too much
// refactoring, but new code should try to stick to it.
'complexity': ['warn', { max: 10 }],
// Checks rules of Hooks
'react-hooks/rules-of-hooks': 'error',
// Checks effect dependencies