aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 17:48:49 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 17:48:49 +0300
commit5abf93f0e1a5ad9917518e0e8066e67a4b17cae7 (patch)
tree179b616b453d508b2a2a4bcbe6a0715972b18398
parent9b25e5c0d1bd14d2951c954ac8bb39b36a418904 (diff)
downloadeslint-config-5abf93f0e1a5ad9917518e0e8066e67a4b17cae7.tar.xz
eslint-config-5abf93f0e1a5ad9917518e0e8066e67a4b17cae7.zip
feat(import): Rule "first"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/import.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index e6a22e5..79d5b08 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -288,7 +288,7 @@
- [ ] "export"
- [X] "exports-last"
- [ ] "extensions"
-- [ ] "first"
+- [X] "first"
- [ ] "group-exports"
- [ ] "imports-first"
- [ ] "max-dependencies"
diff --git a/src/rules/import.json b/src/rules/import.json
index 152f009..c7b7dba 100644
--- a/src/rules/import.json
+++ b/src/rules/import.json
@@ -1,5 +1,8 @@
{
"import/exports-last": [
"error"
+ ],
+ "import/first": [
+ "error"
]
}