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

Aliases in imports #2345

Open
viT-1 opened this issue Jan 1, 2022 · 1 comment
Open

Aliases in imports #2345

viT-1 opened this issue Jan 1, 2022 · 1 comment

Comments

@viT-1
Copy link

viT-1 commented Jan 1, 2022

If I have node v16.13.1 and eslint 8.4.1, should eslint (without "settings" in eslintrc file) use node resolving for aliases configured with package.json?

package.json:

...
"imports": {
"#common/*": "./src/common/*.js"
},
...
@ljharb
Copy link
Member

ljharb commented Jan 1, 2022

This plugin uses resolve, which doesn't yet support "exports", or native ESM resolution, and thus, also doesn't support "imports" resolution.

As soon as resolve supports these things, this plugin will.

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

No branches or pull requests

2 participants