summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 14:42:46 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 14:44:04 +0300
commit70f1b5ba2720df3b124fcb680537437abf9309ae (patch)
tree325a925c0adfa0865f47443aed323d261449eebe
parenta9f8e8c2e2e00e4088b7e202a68bb051b1c97786 (diff)
downloadeslint-config-70f1b5ba2720df3b124fcb680537437abf9309ae.tar.xz
eslint-config-70f1b5ba2720df3b124fcb680537437abf9309ae.zip
feat(eslint): Rule "semi"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 318e65d..0976673 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -254,7 +254,7 @@
- [ ] "require-unicode-regexp"
- [ ] "require-yield"
- [ ] "rest-spread-spacing"
-- [ ] "semi"
+- [X] "semi"
- [ ] "semi-spacing"
- [ ] "semi-style"
- [X] "sort-imports"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index b099b16..718536c 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -99,6 +99,13 @@
"require-jsdoc": [
"off"
],
+ "semi": [
+ "error",
+ "always",
+ {
+ "omitLastInOneLineBlock": false
+ }
+ ],
"sort-imports": [
"error",
{