diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 14:09:56 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 14:09:56 +0300 |
commit | b47b3caba54c7594ab4f72643b59ff0111baba07 (patch) | |
tree | 5c1d04b5b1bba47b9b95900e646a85d7a695c0cc | |
parent | 0e39bae754d08070a88064579a2ecea33e38a655 (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/eslint.json | 9 |
2 files changed, 10 insertions, 1 deletions
@@ -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" ], |