28 lines
791 B
JSON
28 lines
791 B
JSON
{
|
|
"env": {
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"parserOptions": {
|
|
"ecmaVersion": 7,
|
|
"ecmaFeatures": { "experimentalObjectRestSpread": true }
|
|
},
|
|
"rules": {
|
|
"linebreak-style": [ "error", "unix" ],
|
|
"no-console": "off",
|
|
"no-trailing-spaces": "error",
|
|
"no-var": "error",
|
|
"prefer-const": "error",
|
|
"quotes": [ "error", "single" ],
|
|
"semi": [ "error", "always" ],
|
|
"indent": [ "error", 2, {
|
|
"ArrayExpression": "first",
|
|
"ObjectExpression": "first",
|
|
"FunctionExpression": { "parameters": "first" },
|
|
"FunctionDeclaration": { "parameters": "first" },
|
|
"CallExpression": { "arguments": "first" }
|
|
}]
|
|
}
|
|
}
|