Skip to content

Commit

Permalink
array-bracket-spacing: always
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Apr 3, 2022
1 parent f15b0e5 commit 60cfbea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/eslint-rules.cjs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
const ESLINT_RULES = {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-unnecessary-condition': ['error', { allowConstantLoopConditions: true }],
'@typescript-eslint/no-unnecessary-condition': [ 'error', { allowConstantLoopConditions: true } ],
'@typescript-eslint/no-useless-constructor': 'off',
'array-bracket-spacing': ['error', 'always'],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'comma-dangle': ['error', 'always-multiline'],
'dot-notation': ['off'],
'import/extensions': ['error', 'ignorePackages'],
'array-bracket-spacing': [ 'error', 'always' ],
'brace-style': [ 'error', '1tbs', { allowSingleLine: true } ],
'comma-dangle': [ 'error', 'always-multiline' ],
'dot-notation': [ 'off' ],
'import/extensions': [ 'error', 'ignorePackages' ],
'key-spacing': 'off',
'multiline-ternary': 'off',
'no-console': ['error', { allow: ['info', 'warn', 'error'] }],
'no-console': [ 'error', { allow: [ 'info', 'warn', 'error' ] } ],
'no-dupe-class-members': 'off',
'no-multi-spaces': 'off',
'no-unused-vars': 'off',
'no-useless-constructor': 'off',
'no-void': ['error', { allowAsStatement: true }],
'operator-linebreak': ['error', 'before'],
'padded-blocks': ['error', { classes: 'always' }],
'no-void': [ 'error', { allowAsStatement: true } ],
'operator-linebreak': [ 'error', 'before' ],
'padded-blocks': [ 'error', { classes: 'always' } ],
'sort-keys': 'error',
}

Expand Down
2 changes: 1 addition & 1 deletion src/tslint-config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const TSLINT_CONFIG = {
'arrow-parens': false,
'comment-format': false,
'import-spacing': false,
'interface-name': [true, 'never-prefix'],
'interface-name': [ true, 'never-prefix' ],
'max-line-length': false,
'member-ordering': false,
'no-console': false,
Expand Down

0 comments on commit 60cfbea

Please sign in to comment.