Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
I just upgraded to typescript-eslint 3.0 in a TypeScript project which uses@typescript-eslint/experimental-utils
and got a slightly surprisingcompile 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 |