Skip to content

USWDS: Update eslint config to modern syntax#6463

Merged
annepetersen merged 4 commits into
developfrom
mh/update-eslint-config
Apr 8, 2025
Merged

USWDS: Update eslint config to modern syntax#6463
annepetersen merged 4 commits into
developfrom
mh/update-eslint-config

Conversation

@heymatthenry

@heymatthenry heymatthenry commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

Summary

This PR ports the old YAML-based eslint config to the modern flat config syntax. There are no user-facing aspects of this change.

Breaking change

This is not a breaking change.

Problem statement

Updating this configuration will enable us to use more modern code and libraries without eslint causing builds to fail. This turned out to be trickier than one might hope, because the airbnb ruleset we use doesn't support the new configuration style.

Dependency changes

Dependency name Previous version New version
eslint-plugin-airbnb-base -- 0.0.1-security

@heymatthenry heymatthenry changed the title USWDS: Port eslint to flat config USWDS: Update eslint config to modern syntax Apr 8, 2025
@heymatthenry heymatthenry marked this pull request as ready for review April 8, 2025 16:50

@annepetersen annepetersen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@annepetersen annepetersen merged commit 0e04abf into develop Apr 8, 2025
@annepetersen annepetersen deleted the mh/update-eslint-config branch April 8, 2025 17:08
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