From 1ef0d649886a47d7daeba7913f865476e596fd21 Mon Sep 17 00:00:00 2001 From: Trevin Hofmann Date: Wed, 16 Dec 2020 17:10:44 -0500 Subject: [PATCH] docs(eslint-plugin): [no-namespace] correct default and example (#2876) --- packages/eslint-plugin/docs/rules/no-namespace.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/eslint-plugin/docs/rules/no-namespace.md b/packages/eslint-plugin/docs/rules/no-namespace.md index b155c2aeb30..da83ada2bba 100644 --- a/packages/eslint-plugin/docs/rules/no-namespace.md +++ b/packages/eslint-plugin/docs/rules/no-namespace.md @@ -18,7 +18,7 @@ or more of the following you may pass an object with the options set as follows: - `allowDefinitionFiles` set to `true` will allow you to `declare` and use custom TypeScript modules and namespaces inside definition files (Default: `true`). -Examples of **incorrect** code for the default `{ "allowDeclarations": false, "allowDefinitionFiles": false }` options: +Examples of **incorrect** code for the default `{ "allowDeclarations": false, "allowDefinitionFiles": true }` options: ```ts module foo {} @@ -26,14 +26,14 @@ namespace foo {} declare module foo {} declare namespace foo {} - -// anything inside a d.ts file ``` -Examples of **correct** code for the default `{ "allowDeclarations": false, "allowDefinitionFiles": false }` options: +Examples of **correct** code for the default `{ "allowDeclarations": false, "allowDefinitionFiles": true }` options: ```ts declare module 'foo' {} + +// anything inside a d.ts file ``` ### `allowDeclarations`