Skip to content

Commit

Permalink
tools: simplify .eslintrc.js
Browse files Browse the repository at this point in the history
Remove explicit setting of configuration options in rules when those
options are the defaults.
  • Loading branch information
Trott committed Nov 10, 2022
1 parent 7b1e153 commit a1df915
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .eslintrc.js
Expand Up @@ -117,8 +117,8 @@ module.exports = {
// https://eslint.org/docs/rules/
'accessor-pairs': 'error',
'array-callback-return': 'error',
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', { before: true, after: true }],
'arrow-parens': 'error',
'arrow-spacing': 'error',
'block-scoped-var': 'error',
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
Expand Down Expand Up @@ -162,9 +162,9 @@ module.exports = {
ObjectExpression: 'first',
SwitchCase: 1,
}],
'key-spacing': ['error', { mode: 'strict' }],
'key-spacing': 'error',
'keyword-spacing': 'error',
'linebreak-style': ['error', 'unix'],
'linebreak-style': 'error',
'max-len': ['error', {
code: 120,
ignorePattern: '^// Flags:',
Expand All @@ -178,7 +178,7 @@ module.exports = {
'no-constant-condition': ['error', { checkLoops: false }],
'no-constructor-return': 'error',
'no-duplicate-imports': 'error',
'no-else-return': ['error', { allowElseIf: true }],
'no-else-return': 'error',
'no-extra-parens': ['error', 'functions'],
'no-lonely-if': 'error',
'no-mixed-requires': 'error',
Expand Down Expand Up @@ -267,7 +267,7 @@ module.exports = {
'object-curly-spacing': ['error', 'always'],
'one-var': ['error', { initialized: 'never' }],
'one-var-declaration-per-line': 'error',
'operator-linebreak': ['error', 'after'],
'operator-linebreak': 'error',
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: 'function', next: 'function' },
Expand All @@ -285,7 +285,7 @@ module.exports = {
named: 'never',
asyncArrow: 'always',
}],
'space-in-parens': ['error', 'never'],
'space-in-parens': 'error',
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'spaced-comment': ['error', 'always', {
Expand Down

0 comments on commit a1df915

Please sign in to comment.