Skip to content

[no-explicit-any] ignoreRestArgs doesn't detect interface any correctly #776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Dilatorily opened this issue Jul 29, 2019 · 2 comments · Fixed by #777
Closed

[no-explicit-any] ignoreRestArgs doesn't detect interface any correctly #776

Dilatorily opened this issue Jul 29, 2019 · 2 comments · Fixed by #777
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@Dilatorily
Copy link
Contributor

Repro

{
  "rules": {
    "typescript/no-explicit-any": ["error", { "ignoreRestArgs": true }]
  }
}
interface Callback {
  (...args: any[]): void;
}

Expected Result
No errors raised

Actual Result
ESLint raises an error in the interface

Additional Info
N/A

Versions

package version
@typescript-eslint/eslint-plugin 1.12.0
@typescript-eslint/parser 1.12.0
TypeScript 3.5.3
ESLint 5.16.0
node 12.4.0
npm 6.9.0
@Dilatorily Dilatorily added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for team members to take a look labels Jul 29, 2019
@bradzacher bradzacher added bug Something isn't working and removed triage Waiting for team members to take a look labels Jul 29, 2019
@ArcanoxDragon
Copy link

This still occurs on 2.0.0 with constructor interfaces, e.g. new ( ...args: any[] ) => MyType.

@bradzacher
Copy link
Member

Please file a new issue for this @briman0094, and we can investigate.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants