summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 17:27:45 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 17:27:45 +0300
commit50a06b02ba8548c633ba5c3f3e38f827419d4c45 (patch)
tree6649b921bf7dcc466772bb6932e284299de081b2
parent268f0c28af2c139d28e900ec37ae86f90b7f71e8 (diff)
downloadeslint-config-50a06b02ba8548c633ba5c3f3e38f827419d4c45.tar.xz
eslint-config-50a06b02ba8548c633ba5c3f3e38f827419d4c45.zip
feat(typescript): Rule "semi"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json10
2 files changed, 11 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 8d58bf3..c5a7488 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -361,7 +361,7 @@
- [ ] "restrict-plus-operands"
- [ ] "restrict-template-expressions"
- [ ] "return-await"
-- [ ] "semi"
+- [X] "semi"
- [ ] "space-before-function-paren"
- [ ] "strict-boolean-expressions"
- [ ] "switch-exhaustiveness-check"
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 216245a..4504f4e 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -7,7 +7,17 @@
"avoidEscape": false
}
],
+ "@typescript-eslint/semi": [
+ "error",
+ "always",
+ {
+ "omitLastInOneLineBlock": false
+ }
+ ],
"quotes": [
"off"
+ ],
+ "semi": [
+ "off"
]
}