Skip to content

fix: make functional programming linting opt-in #206

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

Merged
merged 1 commit into from
May 30, 2021
Merged

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented May 28, 2021

Functional programming patterns can be contentious. They also do not always make sense, especially inside hot paths.

This PR makes eslint-plugin-fp opt-in instead of opt-out. I believe some repositories like @netlify/build strongly benefit from following functional guidelines due to the complexity of the logic there. Those repositories can opt-in by adding those ESLint rules in their .eslintrc.js.

@ehmicky ehmicky added the type: chore work needed to keep the product and development running smoothly label May 28, 2021
@ehmicky ehmicky self-assigned this May 28, 2021
@github-actions github-actions bot added the type: bug code to address defects in shipped code label May 28, 2021
@ehmicky ehmicky removed the type: bug code to address defects in shipped code label May 28, 2021
@erezrokah erezrokah merged commit d984904 into main May 30, 2021
@erezrokah erezrokah deleted the fix/fp-linting branch May 30, 2021 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants