chore: Make eslint stricter (#23869)
Error for - Invalid tab style - No space between unary operations - Space between blocks Warn for - Comma Spacing - Block Spacing - Object Key Spacing - Keyword Spacing
This commit is contained in:
parent
30d58cc3d7
commit
d038a80c43
20
.eslintrc
20
.eslintrc
@ -5,7 +5,7 @@
|
|||||||
"es6": true
|
"es6": true
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 6,
|
"ecmaVersion": 9,
|
||||||
"sourceType": "module"
|
"sourceType": "module"
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended",
|
"extends": "eslint:recommended",
|
||||||
@ -15,6 +15,14 @@
|
|||||||
"tab",
|
"tab",
|
||||||
{ "SwitchCase": 1 }
|
{ "SwitchCase": 1 }
|
||||||
],
|
],
|
||||||
|
"brace-style": [
|
||||||
|
"error",
|
||||||
|
"1tbs"
|
||||||
|
],
|
||||||
|
"space-unary-ops": [
|
||||||
|
"error",
|
||||||
|
{ "words": true }
|
||||||
|
],
|
||||||
"linebreak-style": [
|
"linebreak-style": [
|
||||||
"error",
|
"error",
|
||||||
"unix"
|
"unix"
|
||||||
@ -44,12 +52,10 @@
|
|||||||
"no-control-regex": [
|
"no-control-regex": [
|
||||||
"off"
|
"off"
|
||||||
],
|
],
|
||||||
"spaced-comment": [
|
"space-before-blocks": "warn",
|
||||||
"warn"
|
"keyword-spacing": "warn",
|
||||||
],
|
"comma-spacing": "warn",
|
||||||
"no-trailing-spaces": [
|
"key-spacing": "warn"
|
||||||
"warn"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"root": true,
|
"root": true,
|
||||||
"globals": {
|
"globals": {
|
||||||
|
Loading…
Reference in New Issue
Block a user