diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 01:20:05 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 01:20:05 +0300 |
commit | 5051eed9df34c9beb2a9fd9e2ba379b43cd411f5 (patch) | |
tree | 979fb63acdfc1e06fb0f7e34618de18af828d1f9 | |
parent | 81d3e2381071b3123d9c4cc4992b953407c1b131 (diff) | |
download | eslint-config-5051eed9df34c9beb2a9fd9e2ba379b43cd411f5.tar.xz eslint-config-5051eed9df34c9beb2a9fd9e2ba379b43cd411f5.zip |
feat(eslint): Rule "no-useless-rename"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 8 |
2 files changed, 9 insertions, 1 deletions
@@ -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" ], |