aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
blob: ae4e230c92ae2e30c227748cd275141b2b0a8a5a (plain) (blame)
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
58
59
60
61
62
63
64
65
{
    "env": {
        "browser": true,
        "es6": true,
        "jest/globals": true,
        "jquery": true,
        "node": true
    },
    "extends": [
        "airbnb",
        "eslint:recommended",
        "jquery",
        "plugin:import/errors",
        "plugin:import/warnings",
        "plugin:jest/recommended",
        "plugin:node/recommended",
        "plugin:promise/recommended",
        "plugin:security/recommended",
        "plugin:sonarjs/recommended",
        "plugin:unicorn/recommended",
        "standard"
    ],
    "plugins": [
        "compat",
        "import",
        "jest",
        "no-loops",
        "no-loops",
        "no-use-extend-native",
        "node",
        "optimize-regex",
        "promise",
        "security",
        "sonarjs",
        "unicorn"
    ],
    "parserOptions": {
        "ecmaVersion": 2018,
        "sourceType": "module"
    },
    "rules": {
        "compat/compat": "error",
        "indent": [
            "error",
            4
        ],
        "linebreak-style": [
            "error",
            "unix"
        ],
        "no-loops/no-loops": 2,
        "no-use-extend-native/no-use-extend-native": 2,
        "no-unsupported-features/es-builtins": 0,
        "node/no-unsupported-features/es-syntax": 0,
        "optimize-regex/optimize-regex": "warn",
        "quotes": [
            "error",
            "double"
        ],
        "semi": [
            "error",
            "always"
        ]
    }
}