expressCart/.eslintrc.json

51 lines
1.3 KiB
JSON
Raw Normal View History

2018-01-07 04:55:48 +10:00
{
"extends": "standard",
"plugins": [
"standard",
2019-12-30 12:48:55 +10:00
"promise",
"extra-rules"
2018-01-07 04:55:48 +10:00
],
"parserOptions": {
"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-12-30 12:48:55 +10:00
"extra-rules/no-commented-out-code": "warn",
2019-06-15 14:46:08 +10:00
"keyword-spacing": [
"error", {
"before": false, "after": false, "overrides": {
2020-02-21 12:22:43 +10:00
"const": {
"after": true
},
"return": {
"after": true
},
"case": {
"after": true
}
2019-06-15 14:46:08 +10:00
}
}],
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
}
}