From 1191beb965ca59ff897fc13cd1c99a44d7e316c3 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:08:25 +0400 Subject: feat(eslint): Rule "prefer-numeric-literals" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index cd50d56..c85d867 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -237,7 +237,7 @@ - [ ] "prefer-destructuring" - [ ] "prefer-exponentiation-operator" - [ ] "prefer-named-capture-group" -- [ ] "prefer-numeric-literals" +- [X] "prefer-numeric-literals" - [X] "prefer-object-spread" - [ ] "prefer-promise-reject-errors" - [X] "prefer-reflect" diff --git a/src/rules/default.json b/src/rules/default.json index c68506d..c4c5b47 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -395,6 +395,9 @@ "ignoreReadBeforeAssign": false } ], + "prefer-numeric-literals": [ + "error" + ], "prefer-object-spread": [ "error" ], -- cgit v1.2.3