summaryrefslogtreecommitdiffstats
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2016-03-09 11:13:16 +0100
committerHendrik Leppelsack <hendrik@leppelsack.de>2016-03-09 11:28:52 +0100
commitdff149a63e80dad707312da15af9be9914bdcc41 (patch)
tree21c2f3c9a65de5d044231383e2f6bc358e6b32b4 /.eslintrc.json
parent297d8157455b68a7fe8c5819b7c92fd9b82019ae (diff)
add better js linting
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json24
1 files changed, 24 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 00000000..45b46f4c
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,24 @@
+{
+ "extends": "eslint:recommended",
+ "rules": {
+ "no-undef": "off",
+ "no-unused-vars": "off",
+
+ "eqeqeq": ["warn", "smart"],
+ "no-console": "warn",
+ "no-loop-func": "warn",
+
+ "block-spacing": "error",
+ "camelcase": "error",
+ "comma-spacing": "error",
+ "comma-style": "error",
+ "curly": ["error", "multi-line", "consistent"],
+ "indent": ["error", "tab"],
+ "no-alert": "error",
+ "no-trailing-spaces": "error",
+ "quotes": ["error", "single", "avoid-escape"],
+ "semi": "error",
+ "space-before-blocks": "error"
+
+ }
+}