summaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json25
1 files changed, 16 insertions, 9 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 44eaeff8..0e3b939a 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -3,19 +3,26 @@
"parserOptions": {
"ecmaVersion": 8
},
+ "ignorePatterns": [
+ "/ext/mixed/lib/",
+ "/ext/bg/js/templates.js"
+ ],
"rules": {
- "arrow-parens": ["error", "as-needed"],
+ "arrow-parens": ["error", "always"],
"comma-dangle": ["error", "never"],
+ "curly": ["error", "all"],
"dot-notation": "error",
- "eqeqeq": 2,
+ "eqeqeq": "error",
"no-case-declarations": "error",
- "no-const-assign": 2,
- "no-undef": 0,
- "no-unused-vars": 0,
- "no-var": 2,
- "prefer-const": 2,
+ "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": [2, "single", "avoid-escape"],
- "semi": 2
+ "quotes": ["error", "single", "avoid-escape"],
+ "require-atomic-updates": "off",
+ "semi": "error"
}
}