diff options
Diffstat (limited to '.eslintrc.json')
-rw-r--r-- | .eslintrc.json | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..0e3b939a --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,28 @@ +{ + "extends": "eslint:recommended", + "parserOptions": { + "ecmaVersion": 8 + }, + "ignorePatterns": [ + "/ext/mixed/lib/", + "/ext/bg/js/templates.js" + ], + "rules": { + "arrow-parens": ["error", "always"], + "comma-dangle": ["error", "never"], + "curly": ["error", "all"], + "dot-notation": "error", + "eqeqeq": "error", + "no-case-declarations": "error", + "no-const-assign": "error", + "no-constant-condition": "off", + "no-undef": "off", + "no-unused-vars": ["error", {"vars": "local", "args": "after-used", "argsIgnorePattern": "^_", "caughtErrors": "none"}], + "no-var": "error", + "prefer-const": ["error", {"destructuring": "all"}], + "quote-props": ["error", "consistent"], + "quotes": ["error", "single", "avoid-escape"], + "require-atomic-updates": "off", + "semi": "error" + } +} |