Skip to content

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

Closed
@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