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

Enforce more linting rules #435

Merged
merged 7 commits into from
Apr 15, 2024
Merged

Enforce more linting rules #435

merged 7 commits into from
Apr 15, 2024

Conversation

vinceau
Copy link
Member

@vinceau vinceau commented Apr 15, 2024

Description

This PR enforces the lodash import changes in #418 by using eslint rules. This PR adds the lodash eslint plugin and sets the following rules:

  • disables usage of lodash/chain - imports the whole lodash library
  • enforces method based lodash imports e.g. import blah from 'lodash/blah' - better for tree shaking

This PR also disallows unnecessary curly braces.

@vinceau vinceau changed the title Add lodash linting rules Enforce more linting rules Apr 15, 2024
@vinceau vinceau merged commit 2d92cc0 into main Apr 15, 2024
6 checks passed
@vinceau vinceau deleted the chore/disable-lodash-chain branch April 15, 2024 10:45
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.

1 participant