.eslintrc.json 1.6 KB
Newer Older
1 2
{
    "env": {
3
        "es6": true
4 5 6
    },
    "extends": "eslint:recommended",
    "rules": {
7 8 9 10 11 12 13 14
        "brace-style": "error",
        "comma-spacing": [
            "error",
            {
                "before": false,
                "after": true
            }
        ],
15 16 17 18 19 20 21
        "indent": [
            "error",
            4,
            {
                "MemberExpression": "off"
            }
        ],
22 23 24 25 26 27 28
        "keyword-spacing": [
            "error",
            { 
                "before": true,
                "after": true
            }
        ],
29 30 31 32
        "linebreak-style": [
            "error",
            "unix"
        ],
33 34 35 36 37 38
        "no-empty": [
            "error",
            {
                "allowEmptyCatch": true
            }
        ],
39 40 41 42 43 44 45 46 47 48
        "quotes": [
            "error",
            "single",
            {
                "avoidEscape": true
            }
        ],
        "semi": [
            "error",
            "always"
49 50 51 52 53 54 55 56 57 58 59 60 61 62
        ],
        "semi-spacing": [
            "error",
            {
                "before": false,
                "after": true
            }
        ],
        "space-before-blocks": "error",
        "space-infix-ops": [
            "error",
            {
                "int32Hint": false
            }
63 64 65 66
        ]
    },
    "globals": {
        "ARGV": false,
67 68 69 70 71 72
        "Debugger": false,
        "GIRepositoryGType": false,
        "imports": false,
        "Intl": false,
        "log": false,
        "logError": false,
73 74
        "print": false,
        "printerr": false,
75
        "window": false
76 77 78 79 80
    },
    "parserOptions": {
        "ecmaVersion": 2017
    }
}