diff options
author | Claudius Coenen | 2018-11-14 14:10:14 +0100 |
---|---|---|
committer | Claudius Coenen | 2018-11-14 23:15:36 +0100 |
commit | 858a59529e4b99d5c13e6fce8354cd9e9b00a462 (patch) | |
tree | 08e51914a7d6dd00c993c3b7f2481521a1ba6f0e /.eslintrc.js | |
parent | f9aa001ee78e604415c2a6e82f65701a1f07d3c4 (diff) |
switching to eslint for code checking
most rules degraded to WARN, so we don't go insane. This will
change over time. The aim is to conform to a common style
Signed-off-by: Claudius Coenen <opensource@amenthes.de>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..b826a37b --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,21 @@ +module.exports = { + "root": true, + "extends": "standard", + "env": { + "node": true + }, + "rules": { + // at some point all of these should return to their default "error" state + // but right now, this is not a good choice, because too many places are + // wrong. + "import/first": ["warn"], + "indent": ["warn"], + "no-multiple-empty-lines": ["warn"], + "no-multi-spaces": ["warn"], + "object-curly-spacing": ["warn"], + "one-var": ["warn"], + "quotes": ["warn"], + "semi": ["warn"], + "space-infix-ops": ["warn"] + } +}; |