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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dist files from top-level tsconfig to speed up eslint checks 馃弾馃殌 #4707
Conversation
This speeds up `npm run eslint` from about 4m10s down to 2m50s. Signed-off-by: Miroslav Bajto拧 <mbajtoss@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great discovery!
@@ -14,6 +14,7 @@ | |||
"examples/*/node_modules/**", | |||
"packages/*/node_modules/**", | |||
"extensions/*/node_modules/**", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"extensions/*/node_modules/**", | |
"**/node_modules/**", |
BTW, any idea why this is not **/node_modules/**,
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDK, to be honest. I was thinking about simplifying the pattern too, but then decided to keep my changes minimal to get them landed faster.
Would you like to open a follow-up pull request to simplify this part of exclude
configuration?
@bajtos Interesting. Does it hint that the patterns in https://github.com/strongloop/loopback-next/blob/master/.eslintignore have some issues? |
As far as I understand from reading the discussion in typescript-eslint/typescript-eslint#389, Quoting from typescript-eslint/typescript-eslint#389 (comment):
|
To actually answer your question, I believe the patterns in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give that man a raise! :) Still a little shocked, had to run it three times to be sure!
Did you remove |
This speeds up `npm run eslint`, good practice see loopbackio/loopback-next#4707 Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
This speeds up `npm run eslint`, good practice see loopbackio/loopback-next#4707 Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
No. First I run |
I am going to land this pull request as it is now, since it has been approved by many reviewers and there are no objections ("request changes" reviews). Things we can fix in follow-up pull requests: |
loopbackio/loopback-next#4707 (comment) Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
loopbackio#4707 (comment) Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
loopbackio#4707 (comment) Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
loopbackio#4707 (comment) Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
This speeds up `npm run eslint`, good practice see loopbackio/loopback-next#4707 Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
loopbackio/loopback-next#4707 (comment) Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
#4707 (comment) Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
#4707 (comment) Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
This speeds up `npm run eslint`, good practice see loopbackio/loopback-next#4707 Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
loopbackio/loopback-next#4707 (comment) Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
This speeds up `npm run eslint`, good practice see loopbackio/loopback-next#4707 Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
loopbackio/loopback-next#4707 (comment) Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
This speeds up
npm run eslint
from about4m10s
down to2m50s
.More importantly, it enables proper caching behavior, so that subsequent runs of
npm run eslint
are super quick, even afternpm run build
modifieddist
files.(That's less than 2 seconds for subsequent eslint runs leveraging the cached data!)
See the discussion in #4382 for more context.
Checklist
馃憠 Read and sign the CLA (Contributor License Agreement) 馃憟
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated馃憠 Check out how to submit a PR 馃憟