Skip to content

[@typescript-eslint/no-explicit-any] Error when specifying ignoreRestArgs option #1795

Closed
@doniyor2109

Description

@doniyor2109

Repro
Here is repo:
https://github.com/doniyor2109/demo-error-for-typescript-eslint-no-exlicit-any

{
  "rules": {
    "@typescript-eslint/no-explicit-any": [
      "error",
      {
        "ignoreRestArgs": true
      }
    ]
  }
}
	type Request = any;

Expected Result
Should report about usage of any.
Actual Result
Throws error: TypeError: Cannot read property 'type' of null

Additional Info
Stack trace

node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js:71:26)

Versions

package version
@typescript-eslint/eslint-plugin 2.25.0
@typescript-eslint/parser 2.25.0
TypeScript 3.8.3
ESLint 6.8.0
node 12.2.0
npm 6.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas 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