From 86f818d0b61805ca042724110317386e8923ef9a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 16:11:30 +0400 Subject: feat(eslint): Rule "valid-typeof" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 3efef27..10dea49 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -274,7 +274,7 @@ - [ ] "unicode-bom" - [ ] "use-isnan" - [X] "valid-jsdoc" -- [ ] "valid-typeof" +- [X] "valid-typeof" - [ ] "vars-on-top" - [ ] "wrap-iife" - [ ] "wrap-regex" diff --git a/src/rules/eslint.json b/src/rules/eslint.json index 0770287..4ae19b3 100644 --- a/src/rules/eslint.json +++ b/src/rules/eslint.json @@ -192,5 +192,11 @@ ], "valid-jsdoc": [ "off" + ], + "valid-typeof": [ + "error", + { + "requireStringLiterals": true + } ] } -- cgit v1.2.3