45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"parserOptions": {
|
|
"ecmaVersion": 6,
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": false
|
|
}
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"es6": true
|
|
},
|
|
"rules": {
|
|
"no-new-object": 1,
|
|
"no-reserved-keys": 1,
|
|
"no-array-constructor": 1,
|
|
"quotes": [1, "single"],
|
|
"max-len": [1, 80, 2], // 2 spaces per tab, max 80 chars per line
|
|
"no-inner-declarations": [1, "both"],
|
|
"no-shadow-restricted-names": 1,
|
|
"one-var": 0,
|
|
"vars-on-top": 1,
|
|
"eqeqeq": 1,
|
|
"curly": [1, "multi"],
|
|
"no-mixed-spaces-and-tabs": 1,
|
|
"space-before-blocks": [1, "always"],
|
|
"space-infix-ops": 1,
|
|
"eol-last": 1,
|
|
"comma-style": [1, "last"],
|
|
"no-comma-dangle": 1,
|
|
"semi": [1, "always"],
|
|
"radix": 1,
|
|
"camelcase": 1,
|
|
"new-cap": 1,
|
|
"consistent-this": [1, "_this"],
|
|
"func-names": 1,
|
|
"no-multi-spaces": 2,
|
|
"brace-style": [2,"1tbs",{}],
|
|
|
|
"indent": [2,2],
|
|
"comma-spacing": ["error", { "before": false, "after": true }]
|
|
}
|
|
|
|
} |