Add two ESLint spacing rules

This commit is contained in:
Thibault Nocchi 2021-09-24 14:56:40 +02:00
parent e2a7e514d3
commit ab7e85ac1a

View File

@ -29,6 +29,7 @@ module.exports = {
'eol-last': ['error'],
'indent': ['error', 'tab', { 'SwitchCase': 1 }],
'jsx-quotes': ['error', 'prefer-single'],
'key-spacing': ['error'],
'keyword-spacing': ['error'],
'max-statements-per-line': ['error'],
'no-floating-decimal': ['error'],
@ -47,6 +48,7 @@ module.exports = {
'space-before-blocks': ['error'],
'space-before-function-paren': ['error', { 'anonymous': 'never', 'named': 'never', 'asyncArrow': 'always' }],
'space-infix-ops': 'error',
'@typescript-eslint/type-annotation-spacing': ['error'],
'yoda': 'error'
},
overrides: [