summaryrefslogtreecommitdiff
path: root/.eslintrc.json
blob: 40dc15e8c7bbab66f45798a4da57521d7b435bc8 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
    "env": {
        "browser": true,
        "node": true,
        "es6": true
    },
    "parser": "@babel/eslint-parser",
    "parserOptions": {
        "ecmaVersion": 8,
        "sourceType": "module"
    },
    "extends": "eslint:recommended",
    "rules": {
        "guard-for-in": 2,
        "indent": [
            2,
            4,
            {
                "SwitchCase": 1
            }
        ],
        "no-caller": 2,
        "no-undef": 2,
        "no-unused-vars": 2,
        "no-shadow": 2,
        "no-eval": 2,
        "comma-style": [
            2,
            "last"
        ],
        "prefer-arrow-callback": 2,
        "arrow-spacing": 2,
        "object-shorthand": 2,
        "prefer-destructuring": 2,
        "no-loop-func": 2,
        "no-trailing-spaces": 2,
        "valid-jsdoc": [
            "error",
            {
                "requireReturn": false,
                "requireReturnDescription": false,
                "requireReturnType": false
            }
        ]
    },
    "overrides": [
        {
            "files": [
                "support/build.test.js",
                "test/**/*.js"
            ],
            "env": {
                "mocha": true
            }
        }
    ]
}