Skip to content

Commit b3afaca

Browse files
committed
tools: simplify .eslintrc.js
Remove explicit setting of configuration options in rules when those options are the defaults.
1 parent 7b1e153 commit b3afaca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.eslintrc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ module.exports = {
117117
// https://eslint.org/docs/rules/
118118
'accessor-pairs': 'error',
119119
'array-callback-return': 'error',
120-
'arrow-parens': ['error', 'always'],
121-
'arrow-spacing': ['error', { before: true, after: true }],
120+
'arrow-parens': 'error',
121+
'arrow-spacing': 'error',
122122
'block-scoped-var': 'error',
123123
'block-spacing': 'error',
124124
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
@@ -162,9 +162,9 @@ module.exports = {
162162
ObjectExpression: 'first',
163163
SwitchCase: 1,
164164
}],
165-
'key-spacing': ['error', { mode: 'strict' }],
165+
'key-spacing': 'error',
166166
'keyword-spacing': 'error',
167-
'linebreak-style': ['error', 'unix'],
167+
'linebreak-style': 'error',
168168
'max-len': ['error', {
169169
code: 120,
170170
ignorePattern: '^// Flags:',
@@ -178,7 +178,7 @@ module.exports = {
178178
'no-constant-condition': ['error', { checkLoops: false }],
179179
'no-constructor-return': 'error',
180180
'no-duplicate-imports': 'error',
181-
'no-else-return': ['error', { allowElseIf: true }],
181+
'no-else-return': 'error',
182182
'no-extra-parens': ['error', 'functions'],
183183
'no-lonely-if': 'error',
184184
'no-mixed-requires': 'error',
@@ -285,7 +285,7 @@ module.exports = {
285285
named: 'never',
286286
asyncArrow: 'always',
287287
}],
288-
'space-in-parens': ['error', 'never'],
288+
'space-in-parens': 'error',
289289
'space-infix-ops': 'error',
290290
'space-unary-ops': 'error',
291291
'spaced-comment': ['error', 'always', {

0 commit comments

Comments
 (0)