summaryrefslogtreecommitdiff
path: root/.eslintrc.json
blob: 81fe517f23c68ebd69e3c6f52956c7f3cb3999ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
    "root": true,
    "extends": "eslint:recommended",
    "parserOptions": {
        "ecmaVersion": 8,
        "sourceType": "script"
    },
    "env": {
        "browser": true,
        "es2017": true,
        "webextensions": true
    },
    "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-unused-expressions": "error",
        "no-var": "error",
        "prefer-const": ["error", {"destructuring": "all"}],
        "quote-props": ["error", "consistent"],
        "quotes": ["error", "single", "avoid-escape"],
        "require-atomic-updates": "off",
        "semi": "error"
    }
}