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
{"rules": {"init-declarations": [0],"@typescript-eslint/init-declarations": [2,"always"], }}// index.d.ts// eg.1declarenamespaceobj{consta:number}// eg.2declarenamespaceobj1{declareconsta:numbernamespaceobj1_1{constb:string// Error info: Variable 'b' should be initialized on declaration.}}// eg.3declarenamespaceobj2{consta:numbernamespaceobj2_2{declareconstb:string}}
Expected Result
Expected that don't report error withconst b: string ineg.2
Actual Result
eg.1 andeg.3 is OK, buteg.2 was reportedVariable 'b' should be initialized on declaration.
Additional Info
Versions
| package | version |
|---|---|
@typescript-eslint/eslint-plugin | 5.8.1 |
@typescript-eslint/parser | 5.8.1 |
TypeScript | 4.5.4 |
ESLint | 8.5.0 |
node | 16.13.1 |
