-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
eslint-plugin should not import from typescript-estree #705
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
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Comments
mikeharder
added a commit
to mikeharder/typescript-eslint
that referenced
this issue
Jul 15, 2019
mikeharder
added a commit
to Azure/azure-sdk-for-js
that referenced
this issue
Jul 16, 2019
- @typescript-eslint/eslint-plugin@1.12.0 introduced an implicit dependency on @typescript-eslint/typescript-estree - This should be fixed in a future release of @typescript-eslint/eslint-plugin - typescript-eslint/typescript-eslint#705
bradzacher
pushed a commit
that referenced
this issue
Jul 16, 2019
mikeharder
added a commit
to Azure/azure-sdk-for-js
that referenced
this issue
Jul 23, 2019
#4390) - @typescript-eslint/eslint-plugin@1.12.0 introduced an implicit dependency on @typescript-eslint/typescript-estree - Fixed in @typescript-eslint/eslint-plugin@1.13.0 - typescript-eslint/typescript-eslint#705
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
@typescript-eslint/eslint-plugin
should not import from@typescript-eslint/typescript-estree
, since it does not have a direct dependency on this package. Instead, it should only import from@typescript-eslint/experimental-utils
.This issue is hidden when using a package manager which flattens dependencies like
npm
, since@typescript-eslint/parser
does have a dependency on@typescript-eslint/typescript-estree
, and@typescript-eslint/eslint-plugin
and@typescript-eslint/parser
are typically used together.However, when using a package manager like
pnpm
which does not flatten dependencies,@typescript-eslint/eslint-plugin
fails with the following error:Repro steps:
Versions
@typescript-eslint/eslint-plugin
1.12.0
@typescript-eslint/parser
1.12.0
TypeScript
3.5.3
ESLint
5.16.0
node
10.16.0
npm
6.9.0
pnpm
3.5.7
The text was updated successfully, but these errors were encountered: