-
Notifications
You must be signed in to change notification settings - Fork 20
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
Can't extend custom TSLint config #51
Comments
We use the prepare step to download the config from GitHub and overwrite the one in the repo. If you have local overrides in your config you'll have to use multiple config files and have one require the other. |
@davidchin Were you able to get it working somehow? @wingrunr21 Could you pls give some code sample of how you're getting around this problem? |
Well, it's basically what I said above. We do this for our shared TSLint config ...
prepare:
fetch:
- url: 'https://raw.githubusercontent.com/GuildEducationInc/tslint-config-guild/v1.0.0/tslint.json'
path: 'tslint.json'
... |
@wingrunr21 I believe this is to share the same config among multiple projects, right? However, I'm still failing to see how this could solve the problem of the dependencies not being available in the environment -- as noted in the original question. |
That’s not the original question. The very last sentence asks how to extend a shared config. |
I believe the root problem of this issue isn't related to what you're saying, unfortunately. Here's the thing, when you try to extend some custom With that said, and back to your config again, it seems you made use of 2x I wonder if those are available in the [codeclimate] environment when you push new code. |
Take it or leave it. We use this across many projects for both TSLint and ESLint configs and it properly brings our shared configs into our repos for CodeClimate analysis. I know it works. The only aspect that doesn't work is when our shared configs depend on upstream configs that aren't in the engine (eg You may want to go read the |
The only aspect that doesn't work looks to me like the only problem. But I got your points and how you override your config file. Thank you for the insights. |
I have a shared TSLint config that I use in multiple projects. i.e.:
However, this doesn't work because
@bigcommerce/tslint-config
is not available in the environment. Do you have any idea on how to extend custom TSLint config?The text was updated successfully, but these errors were encountered: