feat(eslint): Rule "key-spacing"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 15:57:28 +04:00
parent b2e832786d
commit 3a12b56865
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 9 additions and 1 deletions

View File

@ -54,7 +54,7 @@
- [X] "indent-legacy"
- [ ] "init-declarations"
- [ ] "jsx-quotes"
- [ ] "key-spacing"
- [X] "key-spacing"
- [ ] "keyword-spacing"
- [ ] "line-comment-position"
- [ ] "linebreak-style"

View File

@ -37,6 +37,14 @@
"indent-legacy": [
"off"
],
"key-spacing": [
"error",
{
"afterColon": true,
"beforeColon": false,
"mode": "strict"
}
],
"lines-around-directive": [
"off"
],