diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 23:08:06 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 23:08:06 +0300 |
commit | 07a5bddd6b41c94c86dd492eaf1d775d16aaf70e (patch) | |
tree | 3a4996f9b3cb3cbb1a151de2e9f4c9734020fa72 | |
parent | 933e1f6356267c273704aafb34b07ee9752dc826 (diff) | |
download | eslint-config-07a5bddd6b41c94c86dd492eaf1d775d16aaf70e.tar.xz eslint-config-07a5bddd6b41c94c86dd492eaf1d775d16aaf70e.zip |
feat(typescript): Rule "no-namespace"
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
@@ -367,7 +367,7 @@ - [X] "no-magic-numbers" - [ ] "no-misused-new" - [ ] "no-misused-promises" -- [ ] "no-namespace" +- [X] "no-namespace" - [ ] "no-non-null-asserted-optional-chain" - [ ] "no-non-null-assertion" - [ ] "no-parameter-properties" diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 2093e2f..55a5216 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -60,6 +60,13 @@ "ignoreReadonlyClassProperties": true } ], + "@typescript-eslint/no-namespace": [ + "error", + { + "allowDeclarations": true, + "allowDefinitionFiles": true + } + ], "@typescript-eslint/quotes": [ "error", "double", |