-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
shareable config from an npm package #112
Comments
This is not possible today, but makes sense to investigate. I haven’t decided if it belongs here or in the CLI project, so I will leave it here for now. If you are impatient, you can probably approximate this today with a relative path into the config project in the For future reference: https://eslint.org/docs/developer-guide/shareable-configs |
thanks for being open to considering it. i'm not incredibly impatient around this, but i wanted to at least get it on the radar. i might be able to find time to help out if you'd want a contribution for this. |
Cool. I just need to think about it first. Most of my time recently went towards adding custom rule support. |
in case it is helpful, i've noticed several packages that i use are using cosmicconfig to handle pulling in config from various optional locations. i've also run across ex-config that is intended to work with |
Appreciate it, I’ll look at this when the time comes! |
my needs ended up becoming more complex, so i ended up switching to remark. i'll close since i wont need this anymore, but certainly feel free to reopen if you still think this will be useful for the project. |
Okay, thanks. Glad you found something that suits your needs! |
if this is already supported, sorry for the noise, but from the docs and the code that i've looked through, it appears that the current shareable config capability assumes that the config file to be extended is a local file.
i'd like to put together an npm package that i use across my projects, but i'm just wanting to confirm support before i put in the effort. ideally, i'd love for support to follow the conventions that have emerged in projects like eslint, commitlint, semantic-release, and others where a package named
<tool-name>-config-<config-name>
could be extended by using"extends": "<config-name>"
. for a concrete example, i'd like to publishmarkdownlint-config-travi
and use it in my.markdownlintrc
as"extends": "travi"
is this possible today? if not, would it be an enhancement that you'd consider?
The text was updated successfully, but these errors were encountered: