diff options
Diffstat (limited to 'site/.eslintrc.json')
-rw-r--r-- | site/.eslintrc.json | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/site/.eslintrc.json b/site/.eslintrc.json index 6a5a00888a..8c2cffef79 100644 --- a/site/.eslintrc.json +++ b/site/.eslintrc.json @@ -1,26 +1,36 @@ { - "env": { - "es6": false - }, + "root": true, "parserOptions": { - "ecmaVersion": 5, "sourceType": "script" }, - "extends": "../.eslintrc.json", + "extends": [ + "plugin:unicorn/recommended", + "xo", + "xo/browser" + ], "rules": { - "no-new": "off", - // Best Practices - "no-magic-numbers": "off", - "vars-on-top": "off", - - // Stylistic Issues - "spaced-comment": "off", - - // ECMAScript 6 - "no-var": "off", - "object-shorthand": "off", - "prefer-arrow-callback": "off", - "prefer-template": "off", - "prefer-rest-params": "off" + "capitalized-comments": "off", + "indent": [ + "error", + 2, + { + "MemberExpression": "off", + "SwitchCase": 1 + } + ], + "multiline-ternary": [ + "error", + "always-multiline" + ], + "object-curly-spacing": [ + "error", + "always" + ], + "semi": [ + "error", + "never" + ], + "strict": "error", + "unicorn/prefer-query-selector": "off" } } |