eslint: enable ES2017 (async functions)

This commit is contained in:
Miroslav Bajtoš 2018-12-07 14:47:30 +01:00
parent 5f713f0319
commit 3c2669ed7d
No known key found for this signature in database
GPG Key ID: 6F2304BA9361C7E3
1 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,8 @@
{
"extends": "loopback",
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"max-len": ["error", 110, 4, {
"ignoreComments": true,
@ -9,6 +12,12 @@
// NOTE(bajtos) we should eventually remove this override
// and fix all of those 100+ violations
"one-var": "off",
"no-unused-expressions": "off"
"no-unused-expressions": "off",
// TODO(bajtos) move this to eslint-config-loopback
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
}
}