diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 21:33:16 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 21:33:16 +0300 |
commit | 2cb3cc32edb324469fb0ee2d50d545808c7b2e94 (patch) | |
tree | c0d87e5fbfeb390287c5a3c7778a8f60e324492e | |
parent | 1b2f53b28a26d8919a6ffddfa12720c804782436 (diff) | |
download | eslint-config-2cb3cc32edb324469fb0ee2d50d545808c7b2e94.tar.xz eslint-config-2cb3cc32edb324469fb0ee2d50d545808c7b2e94.zip |
feat(typescript): Rule "no-explicit-any"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/typescript/default.json | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -355,7 +355,7 @@ - [ ] "no-dynamic-delete" - [ ] "no-empty-function" - [X] "no-empty-interface" -- [ ] "no-explicit-any" +- [X] "no-explicit-any" - [ ] "no-extra-non-null-assertion" - [ ] "no-extra-parens" - [ ] "no-extra-semi" diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 5786671..d8596f5 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -39,6 +39,13 @@ "allowSingleExtends": false } ], + "@typescript-eslint/no-explicit-any": [ + "warn", + { + "fixToUnknown": false, + "ignoreRestArgs": false + } + ], "@typescript-eslint/quotes": [ "error", "double", |