aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 14:12:49 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 14:12:49 +0300
commit50dc1d4fecfc25925cc2301f3fe90b270b0c39a0 (patch)
tree2d56faa7058e9a559a73f82396472ab6a56590f6
parentb47b3caba54c7594ab4f72643b59ff0111baba07 (diff)
downloadeslint-config-50dc1d4fecfc25925cc2301f3fe90b270b0c39a0.tar.xz
eslint-config-50dc1d4fecfc25925cc2301f3fe90b270b0c39a0.zip
feat(eslint): Rule "quotes"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json8
2 files changed, 9 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 5428817..1e33e5d 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -246,7 +246,7 @@
- [ ] "prefer-spread"
- [ ] "prefer-template"
- [X] "quote-props"
-- [ ] "quotes"
+- [X] "quotes"
- [ ] "radix"
- [ ] "require-atomic-updates"
- [ ] "require-await"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index a3ec9cd..1a79eb6 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -72,6 +72,14 @@
"unnecessary": true
}
],
+ "quotes": [
+ "error",
+ "double",
+ {
+ "allowTemplateLiterals": false,
+ "avoidEscape": false
+ }
+ ],
"require-jsdoc": [
"off"
],