lint: add eslint config files and clean all the mess

This commit is contained in:
jean-emmanuel 2018-06-01 10:56:49 +02:00
parent 98f7e9fe2f
commit fa9b92397f
66 changed files with 446 additions and 449 deletions

44
.eslintrc.json Normal file
View 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
}
}