-
Notifications
You must be signed in to change notification settings - Fork 42
fix: update performance when used with other preset #93
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
Conversation
|
This should be a backwards compatible change to not break existing users, so it would need to check if a boolean was passed in. Also I don't like that now there's a require of TypeScript inside the code base, the API was designed that way to avoid that. I instead suggest something like The other thing is I don't quite understand how this will help performance. If you use TypeScript, it will be used either way at some point, so if you pay the cost upfront or later on shouldn't matter right? |
|
I skimmed @dummdidumm's comment, and then was about to say "If we have to lazy load, I'd much prefer something like I too am confused about where the overhead would be coming from here. Can you explain more what's going on? Is the config file re-evaluated (without a |
|
Hello @Conduitry and @dummdidumm, Thanks for the quick reply 👍 I'm still trying to figure out what are the rules slowing down by this setting. |
|
In #95 it came up to do the |
|
@dummdidumm ha ha ha ok. I'll do it when @Conduitry will confirm it 😉. |
|
@dummdidumm I add a boolean option with the functional one. Tell if you are okay with this. |
Or add string option too? |
What do you intend to do with this string ? 🤔 Do you have any use case ? |
|
@mathieumure I want to use |
|
@JounQin 🤔 I think we can achieve this in another PR because IMO it's a new feature. |
|
@Conduitry did you have the time to check this PR ? |
|
This has been released (with some adjustments in) 3.2.0. Thank you! |
Fix #92
I figured out that passing typescript module in settings is too heavy and produces overhead in other preset such as
eslint-config-airbnb-base.In this PR, I load typescript only once to avoid overhead.