feat(import): Rule "newline-after-import"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 18:54:09 +04:00
parent 3f4d2c8b7d
commit 8ce6c52655
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 7 additions and 1 deletions

View File

@ -293,7 +293,7 @@
- [ ] "max-dependencies" - [ ] "max-dependencies"
- [ ] "named" - [ ] "named"
- [ ] "namespace" - [ ] "namespace"
- [ ] "newline-after-import" - [X] "newline-after-import"
- [ ] "no-absolute-path" - [ ] "no-absolute-path"
- [ ] "no-amd" - [ ] "no-amd"
- [ ] "no-anonymous-default-export" - [ ] "no-anonymous-default-export"

View File

@ -5,6 +5,12 @@
"import/first": [ "import/first": [
"error" "error"
], ],
"import/newline-after-import": [
"error",
{
"count": 1
}
],
"import/no-webpack-loader-syntax": [ "import/no-webpack-loader-syntax": [
"error" "error"
] ]