2018-01-07 04:55:48 +10:00
|
|
|
{
|
|
|
|
"extends": "standard",
|
|
|
|
"plugins": [
|
|
|
|
"standard",
|
|
|
|
"promise"
|
|
|
|
],
|
|
|
|
"parserOptions": {
|
2018-01-15 03:02:10 +10:00
|
|
|
"ecmaVersion": 2017
|
2018-01-07 04:55:48 +10:00
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"$": true
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"quotes": ["error", "single"],
|
2019-06-15 14:46:08 +10:00
|
|
|
"prefer-arrow-callback": [ "error", { "allowNamedFunctions": true } ],
|
2018-01-07 04:55:48 +10:00
|
|
|
"consistent-return": 2,
|
|
|
|
"no-var" : 2,
|
|
|
|
"new-cap" : 0,
|
|
|
|
"indent" : 0,
|
|
|
|
"no-else-return" : 1,
|
|
|
|
"semi" : [1, "always"],
|
|
|
|
"space-unary-ops" : 2,
|
|
|
|
"no-undef": 1,
|
|
|
|
"no-unused-vars": 1,
|
2019-06-15 14:46:08 +10:00
|
|
|
"keyword-spacing": [
|
|
|
|
"error", {
|
|
|
|
"before": false, "after": false, "overrides": {
|
|
|
|
"const": { "after": true }
|
|
|
|
}
|
|
|
|
}],
|
2018-01-07 04:55:48 +10:00
|
|
|
"space-before-function-paren": 0,
|
|
|
|
"space-before-blocks": ["error", "never"],
|
|
|
|
"camelcase": 0,
|
|
|
|
"handle-callback-err": ["error", "none"],
|
2019-06-15 14:46:08 +10:00
|
|
|
"object-curly-spacing": ["error", "always"]
|
2018-01-07 04:55:48 +10:00
|
|
|
}
|
|
|
|
}
|