From 5051eed9df34c9beb2a9fd9e2ba379b43cd411f5 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:20:05 +0400 Subject: feat(eslint): Rule "no-useless-rename" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index b58a7f4..106b598 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -214,7 +214,7 @@ - [ ] "no-useless-concat" - [ ] "no-useless-constructor" - [ ] "no-useless-escape" -- [ ] "no-useless-rename" +- [X] "no-useless-rename" - [ ] "no-useless-return" - [X] "no-var" - [ ] "no-void" diff --git a/src/rules/default.json b/src/rules/default.json index 225e061..9da13f1 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -362,6 +362,14 @@ "vars": "all" } ], + "no-useless-rename": [ + "error", + { + "ignoreDestructuring": false, + "ignoreExport": false, + "ignoreImport": false + } + ], "no-var": [ "error" ], -- cgit v1.2.3