Skip to content
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

[no-explicit-any] Add ignore-rest-args equivalent option from tslint's no-any #397

Closed
Dilatorily opened this issue Apr 2, 2019 · 2 comments · Fixed by #548
Closed

[no-explicit-any] Add ignore-rest-args equivalent option from tslint's no-any #397

Dilatorily opened this issue Apr 2, 2019 · 2 comments · Fixed by #548
Labels
enhancement: plugin rule option New rule option for an existing eslint-plugin rule good first issue Good for newcomers has pr there is a PR raised to close this package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@Dilatorily
Copy link
Contributor

Repro

{
  "rules": {
    "typescript/no-explicit-any": "error"
  }
}
function foo(a: number, ...rest: any[]): void {
    return;
}

Expected Result
no-explicit-any has a setting to ignore rest parameters.

Actual Result
no-explicit-any does not have any settings to configure rest parameters.

Additional Info
https://palantir.github.io/tslint/rules/no-any/

Versions

package version
@typescript-eslint/eslint-plugin 1.5.0
@typescript-eslint/parser 1.5.0
TypeScript 3.3.3333
ESLint 5.15.3
node 11.6.0
npm 6.5.0
@Dilatorily Dilatorily added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Apr 2, 2019
@bradzacher bradzacher added enhancement: plugin rule option New rule option for an existing eslint-plugin rule and removed triage Waiting for maintainers to take a look labels Apr 7, 2019
@bradzacher bradzacher changed the title [no-explicit-any] Rule does not have a ignore-rest-args equivalent from tslint's no-any [no-explicit-any] Add ignore-rest-args equivalent option from tslint's no-any Apr 7, 2019
@skjindal93
Copy link

Any updates on this?

@bradzacher
Copy link
Member

Nope! I've been prioritising bugfixes over new features.

Happy to accept PRs - love more contributors!

@bradzacher bradzacher added the good first issue Good for newcomers label Apr 29, 2019
@bradzacher bradzacher added the has pr there is a PR raised to close this label May 22, 2019
@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
enhancement: plugin rule option New rule option for an existing eslint-plugin rule good first issue Good for newcomers has pr there is a PR raised to close this 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