-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
enhancementNew feature or requestNew feature or requesthas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
Repro
{
"rules": {
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/no-explicit-any": "error"
}
}createComponent(component: any, params: Object) {}Expected Result
Error on params for ban-types, fixes to {} or suggests object, or at least something that doesn't include an explicit any.
Actual Result
Error on params for ban-types, fixes to Record<string, any> which conflicts with the no-explicit-any rule.
Additional Info
n/a
Versions
| package | version |
|---|---|
@typescript-eslint/eslint-plugin |
1.13.0 |
@typescript-eslint/parser |
1.13.0 |
TypeScript |
3.4.5 |
ESLint |
6.1.0 |
node |
10.16.0 |
npm |
6.9.0 |
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin