More strict eslint rules

This commit is contained in:
Sebastian Seedorf
2020-11-19 22:16:48 +01:00
parent 40b148b7c7
commit 3a58260d12

View File

@@ -21,7 +21,6 @@ module.exports = {
'no-null/no-null': 'error',
'no-useless-return': 'error',
'prefer-arrow-callback': 'warn',
'object-curly-spacing': 'error',
'consistent-return': 'error',
'@typescript-eslint/explicit-function-return-type': [
'error', {
@@ -35,7 +34,13 @@ module.exports = {
'semi': 'error',
'no-implicit-coercion': 'error',
'quotes': ['error', 'single', 'avoid-escape'],
'keyword-spacing': 'error',
'semi-spacing': 'error',
'arrow-spacing': 'error',
'object-curly-spacing': 'error',
'array-bracket-spacing': 'error',
'key-spacing': 'error',
'block-spacing': 'error',
'promise/always-return': 'off',
},
};