.eslintrc.json 2.35 KB
Newer Older
1 2
{
    "env": {
3
        "es6": true
4 5 6
    },
    "extends": "eslint:recommended",
    "rules": {
7 8 9 10 11 12 13 14
        "array-bracket-newline": [
            "error",
            "consistent"
        ],
        "array-bracket-spacing": [
            "error",
            "never"
        ],
15 16 17 18 19 20 21 22
        "brace-style": "error",
        "comma-spacing": [
            "error",
            {
                "before": false,
                "after": true
            }
        ],
23 24 25 26 27 28 29
        "indent": [
            "error",
            4,
            {
                "MemberExpression": "off"
            }
        ],
30 31 32 33 34 35 36
        "key-spacing": [
            "error",
            {
                "beforeColon": false,
                "afterColon": true
            }
        ],
37 38 39 40 41 42 43
        "keyword-spacing": [
            "error",
            { 
                "before": true,
                "after": true
            }
        ],
44 45 46 47
        "linebreak-style": [
            "error",
            "unix"
        ],
48 49 50 51 52 53
        "no-empty": [
            "error",
            {
                "allowEmptyCatch": true
            }
        ],
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
        "no-implicit-coercion": [
            "error",
            {
                "allow": ["!!"]
            }
        ],
        "nonblock-statement-body-position": [
            "error",
            "below"
        ],
        "object-curly-newline": [
            "error",
            {
                "consistent": true
            }
        ],
        "object-curly-spacing": "error",
        "prefer-template": "error",
72 73 74 75 76 77 78 79 80 81
        "quotes": [
            "error",
            "single",
            {
                "avoidEscape": true
            }
        ],
        "semi": [
            "error",
            "always"
82 83 84 85 86 87 88 89 90 91 92 93 94 95
        ],
        "semi-spacing": [
            "error",
            {
                "before": false,
                "after": true
            }
        ],
        "space-before-blocks": "error",
        "space-infix-ops": [
            "error",
            {
                "int32Hint": false
            }
96 97 98 99
        ]
    },
    "globals": {
        "ARGV": false,
100 101 102 103 104 105
        "Debugger": false,
        "GIRepositoryGType": false,
        "imports": false,
        "Intl": false,
        "log": false,
        "logError": false,
106 107
        "print": false,
        "printerr": false,
108
        "window": false
109 110 111 112
    },
    "parserOptions": {
        "ecmaVersion": 2017
    }
113
}