-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
{
"rules": {
"@typescript-eslint/no-use-before-define": [
2,
{
"classes": false,
"functions": false,
},
]
}
}
@Directive({
selector: '[rcCidrIpPattern]',
providers: [
{
provide: NG_VALIDATORS,
useExisting: CidrIpPatternDirective,
multi: true,
},
],
})
export class CidrIpPatternDirective implements Validator {}
Expected Result
No error
Actual Result
error 'CidrIpPatternDirective' was used before it was defined @typescript-eslint/no-use-before-define
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.8.2 |
@typescript-eslint/parser |
4.8.2 |
TypeScript |
4.0.5 |
ESLint |
7.14.0 |
node |
12.19.0 |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin