misc: add more eslint rules
This commit is contained in:
parent
437fb2f24c
commit
18931462bd
@ -4,23 +4,24 @@
|
||||
"node": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 7,
|
||||
"ecmaFeatures": { "experimentalObjectRestSpread": true }
|
||||
},
|
||||
"rules": {
|
||||
"indent": [
|
||||
"error",
|
||||
4
|
||||
],
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"linebreak-style": [ "error", "unix" ],
|
||||
"no-console": "off",
|
||||
"quotes": [
|
||||
"error",
|
||||
"single"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"always"
|
||||
]
|
||||
"no-trailing-spaces": "error",
|
||||
"no-var": "error",
|
||||
"prefer-const": "error",
|
||||
"quotes": [ "error", "single" ],
|
||||
"semi": [ "error", "always" ],
|
||||
"indent": [ "error", 2, {
|
||||
"ArrayExpression": "first",
|
||||
"ObjectExpression": "first",
|
||||
"FunctionExpression": { "parameters": "first" },
|
||||
"FunctionDeclaration": { "parameters": "first" },
|
||||
"CallExpression": { "arguments": "first" }
|
||||
}]
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user