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

Unify duplicate eslint config files #343

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Conversation

emccorson
Copy link
Collaborator

@emccorson emccorson commented Jul 26, 2023

Currently in main we have two eslint config files which are duplicated across our packages. This PR replaces the duplicate files with a new package @namada/eslint-config which contains a single copy of each config that other packages can extend from.

This PR should not substantially change the behaviour of the linting (although package bumps might have caused minor changes). This can be checked with eslint --print-config.


Changed

  • Move duplicate eslint config files to @namada/eslint-config.
  • Move most eslint dependencies to @namada/eslint-config.

Removed

  • Remove unused dependencies (eslint-config-airbnb, eslint-plugin-jsx-a11y).

@github-actions
Copy link

github-actions bot commented Jul 26, 2023

@github-actions github-actions bot temporarily deployed to pull request July 26, 2023 05:57 Inactive
@emccorson emccorson marked this pull request as ready for review July 26, 2023 06:04
@github-actions github-actions bot temporarily deployed to pull request July 26, 2023 06:49 Inactive
Copy link
Collaborator

@jurevans jurevans left a comment

Choose a reason for hiding this comment

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

LGTM!

This commit adds a new package `@namada/eslint-config` which contains
the eslint configs that the other packages should extend.
@github-actions github-actions bot temporarily deployed to pull request July 27, 2023 01:47 Inactive
@emccorson emccorson merged commit 3c4f4a3 into main Jul 27, 2023
5 checks passed
@mateuszjasiuk mateuszjasiuk deleted the chore/dry-eslint-config branch September 13, 2024 09:35
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