1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00

Tools: Add complexity rule

This commit is contained in:
Laurent Cozic 2020-08-05 23:16:51 +00:00
parent c19f8c8035
commit 7e4ac0fd73

View File

@ -63,6 +63,10 @@ module.exports = {
'no-array-constructor': ['error'], 'no-array-constructor': ['error'],
'radix': ['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 // Checks rules of Hooks
'react-hooks/rules-of-hooks': 'error', 'react-hooks/rules-of-hooks': 'error',
// Checks effect dependencies // Checks effect dependencies