2017-01-31 13:46:25 +08:00
|
|
|
{
|
2022-03-27 08:05:30 +08:00
|
|
|
"env": {
|
|
|
|
"es6": true
|
|
|
|
},
|
2017-01-31 13:46:25 +08:00
|
|
|
"rules": {
|
|
|
|
"indent": [2, 2, {"SwitchCase": 1, "VariableDeclarator": 2}],
|
|
|
|
"curly": [2, "all"],
|
|
|
|
"operator-linebreak": [2, "after"],
|
|
|
|
"camelcase": [2, {"properties": "never"}],
|
|
|
|
"quotes": [2, "single"],
|
|
|
|
"no-multi-str": 2,
|
|
|
|
"no-mixed-spaces-and-tabs": 2,
|
|
|
|
"no-trailing-spaces": 2,
|
|
|
|
"space-unary-ops": [2,
|
|
|
|
{
|
|
|
|
"nonwords": false,
|
|
|
|
"overrides": {}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
|
|
|
|
"keyword-spacing": [2, {}],
|
|
|
|
"space-infix-ops": 2,
|
|
|
|
"space-before-blocks": [2, "always"],
|
|
|
|
"eol-last": 2,
|
|
|
|
"space-before-function-paren": [2, "always"],
|
|
|
|
"array-bracket-spacing": [2, "never", {"singleValue": false}],
|
|
|
|
"space-in-parens": [2, "never"],
|
|
|
|
"no-multiple-empty-lines": 2
|
|
|
|
}
|
|
|
|
}
|