Skip to content
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

Fix linting warnings for no-unused-vars, no-var-requires #1800

Merged
merged 7 commits into from
Sep 18, 2023

Conversation

priyanshu-kun
Copy link
Contributor

@priyanshu-kun priyanshu-kun commented Sep 17, 2023

Which problem is this PR solving?

Description of the changes

  • I fixed eslint warnings in our codebase, which we are got after running yarn lint. This improves code quality, consistency, and reduces technical debt.

Checklist

priyanshu-kun added 4 commits September 17, 2023 11:56
Signed-off-by: priyanshu-kun <priyanshushrama709@gmail.com>
Signed-off-by: priyanshu-kun <priyanshushrama709@gmail.com>
…TreeNode.tsx file

Signed-off-by: priyanshu-kun <priyanshushrama709@gmail.com>
Signed-off-by: priyanshu-kun <priyanshushrama709@gmail.com>
.eslintrc.js Outdated
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/ban-ts-comment': 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not fixing the warnings, it's suppressing them. Please remove from this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will going to work on this PR gradually, currently I'm working on cleaning the ban-types. Although, the ban-ts comment only used three time on project and it used only to suppress react-vis problem.

Signed-off-by: priyanshu-kun <priyanshushrama709@gmail.com>
const critcalPathViewBounds = getViewedBounds(each.section_start, each.section_end);
const criticalPathViewStart = critcalPathViewBounds.start;
const criticalPathViewEnd = critcalPathViewBounds.end;
return (
<div
key={index}
key={each.spanId}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not semantically equivalent change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

semantically equivalent change? Should I put type number here as key?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you changing it in the first place? I would leave it for another PR.

@@ -10,13 +10,13 @@
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert please

.eslintrc.js Outdated Show resolved Hide resolved
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: Priyanshu Sharma <priyanshushrama709@gmail.com>
@yurishkuro yurishkuro changed the title Fix linting warnings for no-unused-vars, no-var-requires, ban-ts-comment Fix linting warnings for no-unused-vars, no-var-requires Sep 17, 2023
Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro enabled auto-merge (squash) September 18, 2023 02:14
@yurishkuro yurishkuro merged commit 0ba8779 into jaegertracing:main Sep 18, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[chore]: Fix eslint warnings
2 participants