Skip to content

Commit 0f45c90

Browse files
Trottdanielleadams
authored andcommitted
tools: simplify .eslintrc.js
Remove explicit setting of configuration options in rules when those options are the defaults. PR-URL: #45397 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 172cbfe commit 0f45c90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.eslintrc.js

+6-6
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 }],
@@ -161,9 +161,9 @@ module.exports = {
161161
ObjectExpression: 'first',
162162
SwitchCase: 1,
163163
}],
164-
'key-spacing': ['error', { mode: 'strict' }],
164+
'key-spacing': 'error',
165165
'keyword-spacing': 'error',
166-
'linebreak-style': ['error', 'unix'],
166+
'linebreak-style': 'error',
167167
'max-len': ['error', {
168168
code: 120,
169169
ignorePattern: '^// Flags:',
@@ -177,7 +177,7 @@ module.exports = {
177177
'no-constant-condition': ['error', { checkLoops: false }],
178178
'no-constructor-return': 'error',
179179
'no-duplicate-imports': 'error',
180-
'no-else-return': ['error', { allowElseIf: true }],
180+
'no-else-return': 'error',
181181
'no-extra-parens': ['error', 'functions'],
182182
'no-lonely-if': 'error',
183183
'no-mixed-requires': 'error',
@@ -284,7 +284,7 @@ module.exports = {
284284
named: 'never',
285285
asyncArrow: 'always',
286286
}],
287-
'space-in-parens': ['error', 'never'],
287+
'space-in-parens': 'error',
288288
'space-infix-ops': 'error',
289289
'space-unary-ops': 'error',
290290
'spaced-comment': ['error', 'always', {

0 commit comments

Comments
 (0)