summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 17:46:10 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 17:46:10 +0300
commit9b25e5c0d1bd14d2951c954ac8bb39b36a418904 (patch)
treee06eeb0bff06b27a8772ad82cbaa1860f05f27e4
parente81b322b43643f8fe8f6b66167e53181b4e7c068 (diff)
downloadeslint-config-9b25e5c0d1bd14d2951c954ac8bb39b36a418904.tar.xz
eslint-config-9b25e5c0d1bd14d2951c954ac8bb39b36a418904.zip
feat(import): Rule "exports-last"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/import.json6
2 files changed, 6 insertions, 2 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 247474e..e6a22e5 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -286,7 +286,7 @@
- [ ] "default"
- [ ] "dynamic-import-chunkname"
- [ ] "export"
-- [ ] "exports-last"
+- [X] "exports-last"
- [ ] "extensions"
- [ ] "first"
- [ ] "group-exports"
diff --git a/src/rules/import.json b/src/rules/import.json
index 0967ef4..152f009 100644
--- a/src/rules/import.json
+++ b/src/rules/import.json
@@ -1 +1,5 @@
-{}
+{
+ "import/exports-last": [
+ "error"
+ ]
+}