mirror of https://github.com/laurent22/joplin.git
Tools: Add complexity rule
parent
c19f8c8035
commit
7e4ac0fd73
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue