2016-04-01 11:48:07 +00:00
|
|
|
{
|
|
|
|
"extends": "loopback",
|
2018-12-07 13:47:30 +00:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2017
|
|
|
|
},
|
2016-04-01 11:48:07 +00:00
|
|
|
"rules": {
|
2018-12-07 14:47:25 +00:00
|
|
|
// TODO(bajtos) move these two rules to eslint-config-loopback
|
|
|
|
"no-var": "error",
|
|
|
|
"prefer-const": "error",
|
2016-04-01 11:48:07 +00:00
|
|
|
"max-len": ["error", 110, 4, {
|
|
|
|
"ignoreComments": true,
|
|
|
|
"ignoreUrls": true,
|
|
|
|
"ignorePattern": "^\\s*var\\s.+=\\s*(require\\s*\\()|(/)"
|
|
|
|
}],
|
2016-08-16 01:51:36 +00:00
|
|
|
// NOTE(bajtos) we should eventually remove this override
|
2016-04-01 11:48:07 +00:00
|
|
|
// and fix all of those 100+ violations
|
2016-08-22 19:55:22 +00:00
|
|
|
"one-var": "off",
|
2018-12-07 13:47:30 +00:00
|
|
|
"no-unused-expressions": "off",
|
|
|
|
// TODO(bajtos) move this to eslint-config-loopback
|
|
|
|
"space-before-function-paren": ["error", {
|
|
|
|
"anonymous": "never",
|
|
|
|
"named": "never",
|
|
|
|
"asyncArrow": "always"
|
|
|
|
}],
|
2016-04-01 11:48:07 +00:00
|
|
|
}
|
|
|
|
}
|