-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[3.0.1] Failed to load parser errors with ESLint v6 #2100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This will cause all new projects scaffolded with |
@Towerism downgrading to Shouldn't it be backward compatible, since it is a patch version? |
Fixes #2100 Includes an integration test against eslint v6 to ensure this doesn't happen again. Also spent a moment cleaning up the integration tests.
This has been fixed in master (and is available on the |
Repro
package.json
:Command:
yarn eslint ok.ts
Expected Result
No error.
Actual Result
Additional Info
If I edit the
node_modules
and remove the line__exportStar(require("./ESLint"), exports);
(export * from './ESLint';
in ts source) innode_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/index.js
, the error goes away.I think it should not be exported to the top-level without guard, since the jsdoc for the class clearly says it's only in ESLint v7, and v3 still claims to support ESLint v6.
typescript-eslint/packages/experimental-utils/src/ts-eslint/ESLint.ts
Lines 344 to 352 in a71b9c9
Versions
@typescript-eslint/experimental-utils
3.0.1
TypeScript
3.9.3
node
12.14.1
npm
6.14.3
The text was updated successfully, but these errors were encountered: