- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.2k
Update sewing-kit and typescript #3566
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
| const onChangeInterval = () => { | ||
| if (interval > minInterval) interval -= decrementBy; | ||
| onChange(); | ||
| onChange(0); | 
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.
Fixing up the types in Spinner highlighted that this was wrong - onChange should take a number as an argument. This is still not doing what we'd hope the code should do - holding the step buttons doesn't increment the value - but at least it is properly typed now. I briefly tried fixing this but didn't get it working. I think a proper fix would be better as a separate PR.
| Thanks @BPScott looks like there was some lint/test failures but the changes look good. | 
cb390df    to
    a29d374      
    Compare
  
    - Cache buildinfo when running type-check (this was disallowed before)
a29d374    to
    e4d82d3      
    Compare
  
    
WHY are these changes introduced?
Keeping up to date, prepping for the future
WHAT is this pull request doing?
Updates sewing-kit to 0.140.0
Updates typescript to 4.0.3
The typescript bump lets us cache TS type info when running type-checks without emiting any d.ts files - this means repeated runs of
yarn run type-checkare faster as it can use the cache. Repeated runs now take ~7s instead of ~20s).The SK update pulls us onto newest major versions of eslint 7.x and stylelint 13.7.x. In particular this means better support for optional chaining and we fix a few false positives in react hooks lints.
How to 🎩
Ensure tests pass