Skip to content

TCA-1179 work on linting issues -> dev #575

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

Merged
merged 10 commits into from
Apr 4, 2023
Merged

Conversation

vas3a
Copy link
Collaborator

@vas3a vas3a commented Mar 17, 2023

https://topcoder.atlassian.net/browse/TCA-1179

In this PR I've worked on fixing the linting issues within the codebase.
This PR handles only the linting issues within typescript source code, the javascript one was previously matched to the linting rules.

I've also manually disabled a few rules that are causing too many issues and have no significant impact on the codebase. I will re-enable those later on, to enforce a more strict policy, but for now, it's just a pain relief:

  • no-explicit-any
  • jsx-a11y/click-events-have-key-events

Additionally, I've replaced eslint-plugin-no-null with eslint-plugin-unicorn/no-null which allows for a better linting: it allows strict checking but would disallow using the actual value (eg. assigning null). It must allow strict checking for operations with values that define to null (eg. when checking a local/session storage value, if there's no stored value for it, it will return null).

@vas3a vas3a self-assigned this Mar 17, 2023
@vas3a vas3a changed the title DRAFT TCA-1179 work on linting issues -> dev TCA-1179 work on linting issues -> dev Apr 4, 2023
Copy link
Contributor

@testflyjets testflyjets left a comment

Choose a reason for hiding this comment

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

This looks like a lot of work -- thanks!

@vas3a vas3a merged commit 65386db into dev Apr 4, 2023
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.

2 participants