Skip to content

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

Closed
@Dilatorily

Description

@Dilatorily

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement: plugin rule optionNew rule option for an existing eslint-plugin rulegood first issueGood for newcomershas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions