Skip to content

experimental-utils v3.0 requires TS 3.8 compiler and ES2015 target #2114

@adidahiya

Description

@adidahiya

I just upgraded to typescript-eslint 3.0 in a TypeScript project which uses @typescript-eslint/experimental-utils and got a slightly surprising compile error. The usage of ES private field syntax introduced in #2023 requires downstream TypeScript consumers to target ES2015 / ES6 or newer (TS docs).

../../node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.d.ts:7:5 - error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
7     #private;
      ~~~~~~~~

This isn't a big problem for me, since I can update my "target" compiler option, but I just wanted to note this slight breaking change.

Versions

package version
@typescript-eslint/experimental-utils 3.0.1
TypeScript 3.9.3
node 12.16.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas prthere is a PR raised to close thispackage: utilsIssues related to the @typescript-eslint/utils package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy