From dff149a63e80dad707312da15af9be9914bdcc41 Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Wed, 9 Mar 2016 11:13:16 +0100 Subject: add better js linting --- .eslintrc.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .eslintrc.json (limited to '.eslintrc.json') 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" + + } +} -- cgit v1.2.3