Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

no-implicit-globals regression starting with v21.0.0 #587

Closed
@scottohara

Description

@scottohara

What version of ESLint are you using?
5.11.1

What version of TypeScript are you using?
3.1.1

What version of typescript-eslint-parser are you using?
Any version from 21.0.0 onwards

What code were you trying to parse?

{
  "parser": "typescript-eslint-parser",
  "rules": {
    "func-style": ["error", "declaration"],
    "no-implicit-globals": "error"
  }
}
function foo() {
  return "bar";
}

module.exports = foo;

What did you expect to happen?
No errors

What happened?
In `typescript-eslint-parser@20.1.1, code passes with no errors.

With `typescript-eslint-parser@21.0.0 onwards, the errors below occur:

1:1  error  Implicit global variable, assign as global property instead  no-implicit-globals

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions