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

chore: fix webapp lint & run lint autofix #1166

Merged
merged 2 commits into from
May 17, 2024

Conversation

soGit
Copy link
Contributor

@soGit soGit commented May 8, 2024

Description

  • Fix lint for webapp
  • Run lint autofix

Related issue(s)

Resolve #1165

@soGit
Copy link
Contributor Author

soGit commented May 8, 2024

Temporary set severity to warning for:

  • "max-line-length"
    
  • "no-console"
    
  • "only-arrow-functions"
    
  • "triple-equals"
    
  •  "severity"
    

steel need to fix lint errors for them

@lbroudoux
Copy link
Member

Wowow... This is a big one! Most of the changes seem to be trivial, but some others can have unexpected side effects....
Have you tried building the application in prod mode and running it?

Copy link
Member

@lbroudoux lbroudoux left a comment

Choose a reason for hiding this comment

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

This is a huge amount of work. Thank you.
However I'm not a frontend expert enough to judge just by reading code. I asked some questions about some changes that didn't look that safe... Could you please have a look at them and provide some more explanations? Thanks!

.on('mousemove', function() { return tooltip.style("top", ((<any>d3.event).pageY - 10) + "px").style("left", ((<any>d3.event).pageX + 10) + "px"); })
.on('mouseout', function() { return tooltip.style("visibility", "hidden"); });
.attr('width', function() { return x.rangeBand(); })
.attr('height', function(d: { key: string; value: any; total: any }) { return height - y(d.total); })
Copy link
Member

Choose a reason for hiding this comment

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

Is this the result of automatic linting? Have you checked that there is no side effect?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you talking about dot notation vs bracket notation?

It is common to use dot notation when the property name is known, and use bracket notation when the property name is stored in a variable or the property name has special characters or spaces

Read more here

Signed-off-by: soGit <soroka.sergei@gmail.com>
@soGit
Copy link
Contributor Author

soGit commented May 15, 2024

@lbroudoux I've done a quick smoke (manual) test. I'll do a code review as well, and I'm checking your comments today

Signed-off-by: soGit <soroka.sergei@gmail.com>
@lbroudoux
Copy link
Member

Thank you very much for this and for taking the time to provide explanations! I still have a lot to learn regarding Angular/Typescript specifics 😉

@lbroudoux lbroudoux added this to the 1.9.1 milestone May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants