lint: add eslint config files and clean all the mess
This commit is contained in:
parent
4083e97cb6
commit
9c2227c777
66 changed files with 446 additions and 449 deletions
44
.eslintrc.json
Normal file
44
.eslintrc.json
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"env": {
|
||||
"es6": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
"experimentalObjectRestSpread": true
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"no-undef": "off",
|
||||
"no-empty": ["error", { "allowEmptyCatch": true }],
|
||||
"no-unused-vars": ["error", { "args": "none" }],
|
||||
"arrow-spacing": ["error", {"before": false, "after": false}],
|
||||
"space-before-function-paren": ["error", "never"],
|
||||
"indent": [
|
||||
"error",
|
||||
4,
|
||||
{
|
||||
"SwitchCase": 1,
|
||||
"ObjectExpression": 1,
|
||||
"ArrayExpression": 1,
|
||||
"MemberExpression": 1
|
||||
}
|
||||
],
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"quotes": [
|
||||
"error",
|
||||
"single"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"never"
|
||||
]
|
||||
},
|
||||
"globals": {
|
||||
"module": true
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue