Skip to content

Create shareable ESLint config#8

Merged
kmonahan merged 4 commits into
mainfrom
update-eslint-settings
Mar 31, 2025
Merged

Create shareable ESLint config#8
kmonahan merged 4 commits into
mainfrom
update-eslint-settings

Conversation

@kmonahan

Copy link
Copy Markdown
Collaborator

During a recent GitHub audit, Mark unearthed this repo, which contained some (very old) shareable ESLint configs. I'm repurposing it for anything we want as npm packages shareable between various sites (and Gesso React/Gesso Drupal), starting with updating the ESLint config.

Back in November, we decided to move away from the Airbnb ESLint standard in order to upgrade to ESLint 9 and to try to better align linting standards between Gesso flavors. This PR takes the first step by creating a shareable base JS/TS config and a React-specific config that can be added for JSX files. Rules and overrides come primarily from gesso and/or nextjs-project, though I also looked at what the ETS React library had in use and pulled a few from there.

Next steps are to publish the updated packages and then convert Gesso/Next.js starter to use ESLint 9 and extend the shared config.

@kmonahan
kmonahan merged commit 9ef933c into main Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants