diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-25 14:48:20 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-26 22:06:27 -0500 |
commit | 663667306ce7ddcfeb603191dcd4a0f133f08b37 (patch) | |
tree | bf491f2908061fded1f23889d87fd18a2aa771c6 | |
parent | 4110a848f5107c697e09c014d3488360fc8219ef (diff) |
Update eslintrc
-rw-r--r-- | .eslintrc.json | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index 44eaeff8..fce4b884 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"], "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" } } |