From 95d1ec5641bf385b9ab9fab8a8bf851d2a4feadd Mon Sep 17 00:00:00 2001 From: Trevin Hofmann Date: Mon, 14 Dec 2020 21:32:47 -1000 Subject: [PATCH] docs(eslint-plugin): correct default for typescript/no-namespace The typescript/no-namespace rule has a default value of `true` for the `allowDefinitionFiles` option, but the first example showed that the default is `false`. This commit fixes that example by showing the correct default. --- 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 b155c2aeb307..da83ada2bbaa 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`