Add more eslint rules
This commit is contained in:
parent
f1c97b25d1
commit
5b3ab651e6
1 changed files with 4 additions and 0 deletions
|
@ -34,10 +34,14 @@ module.exports = {
|
|||
'space-before-function-paren': ['error', 'never'],
|
||||
'max-len': ['error', { 'code': 120 }],
|
||||
'max-depth': ['error', 4],
|
||||
'function-paren-newline': ['error', 'multiline-arguments'],
|
||||
'multiline-ternary': ['error', 'always'],
|
||||
|
||||
// Import/export
|
||||
'import/no-default-export': 'error',
|
||||
'import/no-duplicates': 'error',
|
||||
'import/newline-after-import': 'error',
|
||||
'import/order': 'error',
|
||||
|
||||
// Typescript overload
|
||||
indent: 'off',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue