diff --git a/dev_dotfiles/.eslintrc.json b/dev_dotfiles/.eslintrc.json new file mode 100644 index 0000000..1fe9dd5 --- /dev/null +++ b/dev_dotfiles/.eslintrc.json @@ -0,0 +1,50 @@ +{ + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module", + "ecmaFeatures": { + "jsx": false + } + }, + "env": { + "browser": true, + "node": true, + "es6": true + }, + "rules": { + "no-new-object": 1, + "quote-props": ["error", "as-needed", { "keywords": true, "unnecessary": false }], + "no-array-constructor": 1, + "quotes": [1, "single"], + "max-len": [1, 120, 2], // 2 spaces per tab, max 80 chars per line + "no-inner-declarations": [1, "both"], + "no-shadow-restricted-names": 1, + "one-var": 0, + "vars-on-top": 1, + "eqeqeq": 1, + "curly": [1, "multi"], + "no-mixed-spaces-and-tabs": 1, + "space-before-blocks": [1, "always"], + "space-infix-ops": 1, + "eol-last": 1, + "comma-style": [1, "last"], + "comma-dangle": ["error", { + "arrays": "never", + "objects": "never", + "imports": "never", + "exports": "never", + "functions": "ignore" + }], + "semi": [1, "always"], + "radix": 1, + "camelcase": 1, + "new-cap": 1, + "consistent-this": [1, "_this"], + "func-names": 1, + "no-multi-spaces": 2, + "brace-style": [2,"1tbs",{}], + "indent": [2,2], + "comma-spacing": ["error", { "before": false, "after": true }] + } + +}