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

WIP - Switch from standardx to eslint with standard config #4019

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

richardTowers
Copy link
Contributor

standardx appears to be a bit... unmaintained. It's pinning us to a pretty old version of eslint, and a few other dependencies.

We switched to using eslint in Whitehall in alphagov/whitehall#8178

We should consider rolling this out everywhere.

TODO - more details on what dependencies we're stuck on, and the horrible story of the eslint config file format 🙈

What

Why

Visual Changes

Before

After

[standardx](https://github.com/standard/standardx) appears to be a
bit... unmaintained. It's pinning us to a pretty old version of eslint,
and a few other dependencies.

We switched to using eslint in Whitehall in alphagov/whitehall#8178

We should consider rolling this out everywhere.

TODO - more details on what dependencies we're stuck on, and the
horrible story of the eslint config file format 🙈
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4019 May 13, 2024 17:51 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4019 May 13, 2024 17:59 Inactive
... using the same patterns as we used with standardx
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4019 May 13, 2024 18:04 Inactive
@kevindew
Copy link
Member

It might be worth a chat with the design system about this idea as we've traditionally tried to align CSS and JS linting across GDS with Design System tending to be the leaders in the decision. We've got it documented in the GDS way to use standard and only switched to standardx for GOV.UK's legacy approach to JS.

I do agree that standard seems to not really be a moving project anymore. It'd be cool if we could replace it with something that played nicely with prettier too (I think eslint does) given the CSS linter (stylelint) expects you to have that

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.

3 participants