Commit 4aac29ad authored by Felix Kopp's avatar Felix Kopp 😴

Add basic ESLint configuration

parent 41fb0cd9
......@@ -42,5 +42,31 @@
},
"engines": {
"node": ">=8.0"
},
"eslintConfig": {
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"brace-style": ["error", "1tbs"],
"comma-dangle": ["error", "never"],
"comma-spacing": "error",
"curly": "error",
"default-case": "error",
"indent": ["error", 2],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-eq-null": "error",
"no-irregular-whitespace": "error",
"no-this-before-super": "error",
"no-unreachable": "error",
"prefer-const": "error",
"quotes": ["error", "single"],
"semi": "error",
"space-before-blocks": "error"
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment