Skip to content

Commit 93bc2ba

Browse files
Trottruyadorno
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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b7f8a44 commit 93bc2ba

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}],
@@ -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)