Update eslintrc

This commit is contained in:
toasted-nutbread 2019-11-25 14:48:20 -05:00
parent 4110a848f5
commit 663667306c

View File

@ -3,19 +3,26 @@
"parserOptions": { "parserOptions": {
"ecmaVersion": 8 "ecmaVersion": 8
}, },
"ignorePatterns": [
"/ext/mixed/lib/",
"/ext/bg/js/templates.js"
],
"rules": { "rules": {
"arrow-parens": ["error", "as-needed"], "arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "never"], "comma-dangle": ["error", "never"],
"curly": ["error", "all"],
"dot-notation": "error", "dot-notation": "error",
"eqeqeq": 2, "eqeqeq": "error",
"no-case-declarations": "error", "no-case-declarations": "error",
"no-const-assign": 2, "no-const-assign": "error",
"no-undef": 0, "no-constant-condition": "off",
"no-unused-vars": 0, "no-undef": "off",
"no-var": 2, "no-unused-vars": ["error", {"vars": "local", "args": "after-used", "argsIgnorePattern": "^_", "caughtErrors": "none"}],
"prefer-const": 2, "no-var": "error",
"prefer-const": ["error", {"destructuring": "all"}],
"quote-props": ["error", "consistent"], "quote-props": ["error", "consistent"],
"quotes": [2, "single", "avoid-escape"], "quotes": ["error", "single", "avoid-escape"],
"semi": 2 "require-atomic-updates": "off",
"semi": "error"
} }
} }