diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 01:08:25 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 01:08:25 +0300 |
commit | 1191beb965ca59ff897fc13cd1c99a44d7e316c3 (patch) | |
tree | 9a28e83ac8553265c660df0ada6732afc1321db6 | |
parent | ddbdb502fa2800eed3b5fcea61dd158bfc72a7d3 (diff) | |
download | eslint-config-1191beb965ca59ff897fc13cd1c99a44d7e316c3.tar.xz eslint-config-1191beb965ca59ff897fc13cd1c99a44d7e316c3.zip |
feat(eslint): Rule "prefer-numeric-literals"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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" ], |