aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 14:09:56 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 14:09:56 +0300
commitb47b3caba54c7594ab4f72643b59ff0111baba07 (patch)
tree5c1d04b5b1bba47b9b95900e646a85d7a695c0cc
parent0e39bae754d08070a88064579a2ecea33e38a655 (diff)
downloadeslint-config-b47b3caba54c7594ab4f72643b59ff0111baba07.tar.xz
eslint-config-b47b3caba54c7594ab4f72643b59ff0111baba07.zip
feat(eslint): Rule "quote-props"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json9
2 files changed, 10 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 6f78e6d..5428817 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -245,7 +245,7 @@
- [ ] "prefer-rest-params"
- [ ] "prefer-spread"
- [ ] "prefer-template"
-- [ ] "quote-props"
+- [X] "quote-props"
- [ ] "quotes"
- [ ] "radix"
- [ ] "require-atomic-updates"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index de8c64a..a3ec9cd 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -63,6 +63,15 @@
"prefer-reflect": [
"off"
],
+ "quote-props": [
+ "error",
+ "consistent-as-needed",
+ {
+ "keywords": true,
+ "numbers": true,
+ "unnecessary": true
+ }
+ ],
"require-jsdoc": [
"off"
],