aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
blob: 55c17a0dfa17bb0c6d974da0149b380394714b93 (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
{
    "parserOptions": {
        "parser": "@babel/eslint-parser",
        "sourceType": "module"
    },
    "env": {
        "browser": true,
        "es6": true
    },
    "extends": [
        "eslint:recommended",
        "plugin:vue/essential"
    ],
    "globals": {
        "STUDIP": "writable",
        "CKEDITOR": "writable",
        "$": "writable",
        "_": "writable",
        "jQuery": "writable"
    },
    "plugins": [
        "vue"
    ],
    "rules": {
        "no-unused-vars": "off",

        "no-async-promise-executor": "error",
        "no-await-in-loop": "error",
        "no-promise-executor-return": "error",
        "require-atomic-updates": "error",
        "max-nested-callbacks": ["error", 4],
        "no-return-await": "error",
        "prefer-promise-reject-errors": "error"
    }
}