adds operator spacing rules (#3905)

This commit is contained in:
Dimitri Mitropoulos 2021-08-11 19:19:48 -04:00 committed by GitHub
parent 632b8020f7
commit bac09280ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,8 @@ module.exports = {
'quotes': 'off', 'quotes': 'off',
'semi': ['error', 'always'], 'semi': ['error', 'always'],
'space-before-function-paren': ['error', { anonymous: 'never', named: 'never', asyncArrow: 'always' }], 'space-before-function-paren': ['error', { anonymous: 'never', named: 'never', asyncArrow: 'always' }],
'space-infix-ops': 'off', // successor('@typescript-eslint/space-infix-ops')
'space-unary-ops': 'error',
'space-in-parens': 'error', 'space-in-parens': 'error',
'spaced-comment': ['error', 'always', { 'spaced-comment': ['error', 'always', {
exceptions: ['/', '*', '-', '* '], // for ASCII art :) exceptions: ['/', '*', '-', '* '], // for ASCII art :)
@ -129,6 +131,7 @@ module.exports = {
'@typescript-eslint/no-redeclare': 'error', '@typescript-eslint/no-redeclare': 'error',
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }], '@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
'@typescript-eslint/no-use-before-define': 'error', '@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/space-infix-ops': 'error',
'@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true }], '@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true }],
'simple-import-sort/imports': 'error', 'simple-import-sort/imports': 'error',