adds 'brace-style' and 'keyword-spacing' rules. (#3859)

This commit is contained in:
Dimitri Mitropoulos 2021-07-29 00:12:39 -04:00 committed by GitHub
parent 37815afd2e
commit c29f577616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,7 @@ module.exports = {
],
rules: {
'array-bracket-spacing': 'error',
'brace-style': 'off', // successor('@typescript-eslint/brace-style')
'camelcase': ['error', { allow: ['__export_format', '__export_date', '__export_source'] }],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': 'error',
@ -63,6 +64,7 @@ module.exports = {
'default-case-last': 'error',
'filenames/match-exported': ['error', 'kebab'],
'indent': ['error', 2, { SwitchCase: 1 }],
'keyword-spacing': 'off', // successor('@typescript-eslint/keyword-spacing')
'no-async-promise-executor': 'off',
'no-case-declarations': 'off',
'no-duplicate-imports': 'off',
@ -99,8 +101,10 @@ module.exports = {
'@typescript-eslint/array-type': ['error', { default: 'array', readonly: 'array' }],
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/keyword-spacing': 'error',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-namespace': ['error', { allowDeclarations: true }],
'@typescript-eslint/no-redeclare': 'error',