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

Add support for scoped shareable configs #480

Merged
merged 1 commit into from Jun 3, 2020

Conversation

tjrgg
Copy link
Contributor

@tjrgg tjrgg commented May 16, 2020

This pull request fixes #479 by adding a check to see if the name of the module starts with @. If so, it'll return the name and attempt to resolve the module as is.

I've added to the "buildConfig: extends" test for testing. I've also tested and confirmed that this works in my own project using a scoped module.

It's worth noting that eslint accepts @scope, @scope/eslint-config, and @scope/eslint-config-my-config with the extends option (docs). The goal of this PR is to allow for these cases to be used just as they can be in an eslint config.

@tjrgg tjrgg mentioned this pull request May 16, 2020
@sindresorhus sindresorhus merged commit 6a05691 into xojs:master Jun 3, 2020
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

Successfully merging this pull request may close these issues.

XO does not support @scoped shareable configs
2 participants