-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
misc: add TypeScript linting to root & pre-commit hook #2282
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
|
Hi @strtw! Thank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
|
Deploy preview for docusaurus-2 ready! Built with commit f05e4bf |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
yangshun
left a comment
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.
I'm in favor of this change but could you help make the Prettier linting CI check pass?
|
Yes I'll certainly help out with that. The CI errors I'm seeing are related to linting the TypeScript files. If you would like to keep the current linting rules in place: I can work to update the files to so they pass. |
|
Sure, go ahead. Let's try to rebase also as there are updates to some of the files since this PR was created and there are now conflicts. |
|
@lex111 can we try to take over this? |
|
Just fixed the conflicts, probably I'll need some help to change any for the correct types |
|
I fixed the most part of the errors, @yangshun in some places it complain about the |
|
hi Sorry I didn't see this PR and for your time invested in it. But this is already fixed for a few months now. |
Motivation
Resolve issue 2192
Have you read the Contributing Guidelines on pull requests?
Yes
Considerations
Rule sets need to be added to make exceptions for the errors, or the errors need to be fixed.
Test Plan
Modified
package.jsonand.eslintrcto include TypeScript linting on pre-commit and when runningyarn lint. To test I attempted a commit and it was prevented by successful running of the linter which logged TS errors. Same result when I ranyarn lint.Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)