Skip to content

[Infrastructure]: The latest build 4.0.0-dev.20200520 breaks @typescript-eslint/parser #38682

Closed

Description

Linting: node_modules/eslint/bin/eslint --cache --cache-location scripts/.eslintcache --format autolinkable-stylish --rulesdir scripts/eslint/built/rules --ext .ts scripts
> /.nvm/versions/node/v12.16.1/bin/node node_modules/eslint/bin/eslint --cache --cache-location scripts/.eslintcache --format autolinkable-stylish --rulesdir scripts/eslint/built/rules --ext .ts scripts
/TypeScript/scripts/eslint/rules/only-arrow-functions.ts
Error: /TypeScript/scripts/eslint/rules/only-arrow-functions.ts  Parsing error: Cannot read property 'map' of undefined

Example 1

Example 2

It seems this issue related to some of the changes in public API. In this repo, @typescript-eslint uses the latest version of typescript. However, the next version has changes that have not supported by @typescript-eslint yet.

"typescript": "next",

Can we use the stable version of the TypeScipt in dependencies?

cc Daniel Rosenwasser (@DanielRosenwasser) Ryan Cavanaugh (@RyanCavanaugh) Wesley Wigham (@weswigham) Nathan Shively-Sanders (@sandersn) Orta Therox (@orta)

Activity

  1. weswigham commented on May 20, 2020

    @weswigham
    Member

    We should probably fix the version, at least till we update eslint to handle labeled tuple elements.

  2. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions