aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:07:00 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:07:00 +0300
commitddbdb502fa2800eed3b5fcea61dd158bfc72a7d3 (patch)
treed0b3acd3882d9cc219ce55edc606767789cbd0f1
parentd79a699a42e5a21953dfb6949237a98ff8ef7552 (diff)
downloadeslint-config-ddbdb502fa2800eed3b5fcea61dd158bfc72a7d3.tar.xz
eslint-config-ddbdb502fa2800eed3b5fcea61dd158bfc72a7d3.zip
feat(eslint): Rule "prefer-template"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 17e92af..cd50d56 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -244,7 +244,7 @@
- [ ] "prefer-regex-literals"
- [X] "prefer-rest-params"
- [X] "prefer-spread"
-- [ ] "prefer-template"
+- [X] "prefer-template"
- [X] "quote-props"
- [X] "quotes"
- [ ] "radix"
diff --git a/src/rules/default.json b/src/rules/default.json
index e5e5bd7..c68506d 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -407,6 +407,9 @@
"prefer-spread": [
"error"
],
+ "prefer-template": [
+ "error"
+ ],
"quote-props": [
"error",
"consistent-as-needed",