-
Notifications
You must be signed in to change notification settings - Fork 86
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
[OSCI][Enhancement] ts cleanup and precommit #930
base: main
Are you sure you want to change the base?
[OSCI][Enhancement] ts cleanup and precommit #930
Conversation
Signed-off-by: kohinoor98 <[email protected]>
Signed-off-by: kohinoor98 <[email protected]>
Signed-off-by: kohinoor98 <[email protected]>
34022d4
to
a35a39a
Compare
Signed-off-by: kohinoor98 <[email protected]>
Signed-off-by: kohinoor98 <[email protected]>
Is there any reason to update all license header? There is a guide for license header https://github.com/opensearch-project/.github/blob/main/CONTRIBUTING.md#license-headers |
Hi @Hailong-am I had referred some code in the parent repo and taken the header from there. Should I change it as per this(https://github.com/opensearch-project/.github/blob/main/CONTRIBUTING.md#license-headers) guide? |
Seems that both short and expanded version are ok to use opensearch-project/.github#98 |
It's quite a large change so I have some recommendations here:
|
@kohinoor98 really appreciate the effort to improve the quality of this code base For the warning disabled, can you categorize and summarize those, so to decide what to do next, whether create TODO or fix this time or keep it disabled. Thanks. |
@@ -1,3 +1,9 @@ | |||
{ | |||
"*.{ts,tsx,js,jsx,json,css,md}": ["prettier --write", "git add"] |
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.
Do we still need this git add
here?
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.
For lint-staged
v10 onwards, we do not need to add git add
We are using:
"lint-staged": "^10.2.0",
It should be fine. Do you think I should add it as a fail-safe?
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.
Good to know 👍
Signed-off-by: kohinoor98 <[email protected]>
Hi @SuZhou-Joe Agreed! I have created to additional PRs for this issue to break down the current PR: Thanks, |
Signed-off-by: kohinoor98 <[email protected]>
The Thanks, |
@kohinoor98 I tried to get a list of all eslint-disable below. It's fine that we merge in this one w/o fixing any eslint-disable because the code has already been in production and we know it's working fine 👻. Having this list could be put into a good first issue, and I believe there will be some learning when people reducing these disables.
|
Yup 😂😂 @bowenlan-amzn Even if all the disable lines exist, there should not be a problem, and someone could absolutely take it up as a good first issue to start about the codebase. Please let me know what I could do to merge this PR in! I believe this PR would need to be revised/merged in with care as new files are added that conflict with files in this PR! Thanks, |
@kohinoor98 please resolve the conflict. and we can merge in one PR with #931 , I just closed #932 |
Signed-off-by: kohinoor98 <[email protected]>
I have merged the two PRs. I have excluded Cheers, |
Signed-off-by: bowenlan-amzn <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #930 +/- ##
==========================================
+ Coverage 63.37% 63.40% +0.03%
==========================================
Files 341 341
Lines 11554 11606 +52
Branches 2243 2115 -128
==========================================
+ Hits 7322 7359 +37
- Misses 3658 3662 +4
- Partials 574 585 +11 ☔ View full report in Codecov by Sentry. |
Description
This PR contains all the eslint changes. This PR is broken down to 3 parts:
Issues Resolved
#86
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.