summaryrefslogtreecommitdiff
path: root/lang/js/.eslintrc.json
blob: dc3be2e40b05b41ba769a05d611bd1785780a569 (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
{
    "env": {
        "browser": true,
        "es6": true
    },
    "extends": "eslint:recommended",
    "parserOptions": {
        "sourceType": "module"
    },
    "rules": {
        "indent": [
            "warn",
            4
        ],
        "linebreak-style": [
            "error",
            "unix"
        ],
        "quotes": [
            "error",
            "single"
        ],
        "semi": [
            "error",
            "always"
        ],
        "no-var": [
            "warn"
        ],
        "max-len": 1,
        "default-case": 2,
        "no-invalid-this": 2,
        "no-lone-blocks": 1,
        "no-self-compare": 2,
        "radix": 2,
        "no-use-before-define": ["error", {
            "functions": false,
            "classes": false,
            "variables": true
        }],
        "no-useless-constructor": 1,
        "space-before-function-paren": ["error", "always"],
        "keyword-spacing": 2,
        "spaced-comment": 1,
        "space-unary-ops": 2,
        "object-curly-spacing": ["error", "always"],
        "array-bracket-spacing": ["error", "never"]
    }
}