From b47b3caba54c7594ab4f72643b59ff0111baba07 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 15:09:56 +0400 Subject: feat(eslint): Rule "quote-props" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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" ], -- cgit v1.2.3