Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I haveread the FAQ and my problem is not listed.
Repro
"@typescript-eslint/no-namespace": ["error", {allowDeclarations: true, }, ],
This doesn't produce any warnings ifallowDeclarations
is true
declarenamespacefoo{namespacebar{namespacebaz{}}}
This DOES produce a warning ifallowDeclarations
is true
declarenamespacefoo{exportnamespacebar{namespacebaz{}}}
Expected Result
IfallowDeclarations
is true, then neither should error.
Actual Result
Includingexport
causes the rule to complain.
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 5.17.0 |
@typescript-eslint/parser | 5.17.0 |
TypeScript | 4.6.3 |
ESLint | 8.12.0 |
node | 17.5.0 |