Skip to content
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

Receiving Warning: Package eslint-plugin-typescript-sort-keys has been ignored because it contains invalid configuration. #27

Closed
worldlee78 opened this issue Apr 1, 2021 · 0 comments

Comments

@worldlee78
Copy link
Contributor

Hey, great package, use it all the time. So thank you.

I have noticed that I get the following warning when I started using your library:

Package eslint-plugin-typescript-sort-keys has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in <redacted>/node_modules/eslint-plugin-typescript-sort-keys/package.json

I think this is because you are using the "exports" property in the package.json file, which explicitly lists the files used by named exports. Because package.json is not a named export, it throws this warning.

This warning is described here. The solution seems to be described here

I believe I can fix this with a simple patch. I will prepare a pull request for your review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant