summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 17:24:16 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 17:24:16 +0300
commit268f0c28af2c139d28e900ec37ae86f90b7f71e8 (patch)
treeb51a24ce6cd24449e4ca1d70b86cea1feddaf2d8
parentdab6a8a84abd417f02816cbe185e3938cea856c0 (diff)
downloadeslint-config-268f0c28af2c139d28e900ec37ae86f90b7f71e8.tar.xz
eslint-config-268f0c28af2c139d28e900ec37ae86f90b7f71e8.zip
feat(typescript): Rule "quotes"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json14
2 files changed, 14 insertions, 2 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index a18b7c0..8d58bf3 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -355,7 +355,7 @@
- [ ] "prefer-regexp-exec"
- [ ] "prefer-string-starts-ends-with"
- [ ] "promise-function-async"
-- [ ] "quotes"
+- [X] "quotes"
- [ ] "require-array-sort-compare"
- [ ] "require-await"
- [ ] "restrict-plus-operands"
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 0967ef4..216245a 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -1 +1,13 @@
-{}
+{
+ "@typescript-eslint/quotes": [
+ "error",
+ "double",
+ {
+ "allowTemplateLiterals": false,
+ "avoidEscape": false
+ }
+ ],
+ "quotes": [
+ "off"
+ ]
+}