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 all remaining lint issues #1249

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Fix all remaining lint issues #1249

merged 2 commits into from
Aug 9, 2024

Conversation

jonathangoulding
Copy link
Collaborator

@jonathangoulding jonathangoulding commented Aug 9, 2024

DEFRA/water-abstraction-team#115

As part of ongoing automation for our code practices and preferences we introduced eslint instead of the DEFRA standard linter standard.js.

Our eslint setup uses standard.js as the base linter but we have our own rules on top.

We have previously introduced a gradual adoption of eslint by using the git diff when running eslint. This appears to have some limitation with some rules not getting picked up.

At this point it makes sense to fix the remaining lint issues and remove the git diff and lint the whole codebase. When we first moved over to eslint there were 1000+ issues now we only have 137 issues (with the majority being able to be fixed with --fix).

This change fixes all outstanding linting issues and remove the previous lint with git diff lint to the basic eslint run.

As part of ongoing automation for our code practices and preferences we introduced eslint instead of the DEFRA standard linter standard.js.

Our eslint setup uses standard.js as the base linter but we have our own rules on top.

We have previously introduced a gradual adoption of eslint by using the git diff when running eslint. This appears to have some limitation with some rules not getting picked up.

At this point it makes sense to fix the remaining lint issues and remove the git diff and lint the whole codebase. When we first moved over to eslint there were 1000+ issues now we only have 137 issues (with the majority being able to be fixed with --fix).

This change fixes all outstanding linting issues and remove the previous lint with git diff lint to the basic eslint run.
@jonathangoulding jonathangoulding added the housekeeping Refactoring, tidying up or other work which supports the project label Aug 9, 2024
@jonathangoulding jonathangoulding self-assigned this Aug 9, 2024
@jonathangoulding jonathangoulding requested review from Cruikshanks, Jozzey and Beckyrose200 and removed request for Cruikshanks and Jozzey August 9, 2024 08:54
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

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

@jonathangoulding jonathangoulding merged commit 504788b into main Aug 9, 2024
6 checks passed
@jonathangoulding jonathangoulding deleted the fix-all-lint-error branch August 9, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants