-
Notifications
You must be signed in to change notification settings - Fork 4
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
ESCONF-44 Update eslint-react-plugin to latest v7 #129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only question here is that of Chesterton's Fence: before you tear it down, you must first understand why it was erected. Do you know why, before now, the dependency was on a specific version rather than a range? And are you confident that the reasons in favour of changing this supersede those that made it as it is?
@MikeTaylor , @alb3rtino : We use a fixed version like So. The perfect solution of committing
and then merge. If folks squawk, be prepared/willing to either revert this change or offer to help deal with new rules in the affected repositories. Long live Chesterson! |
Specifically, the original reasoning of the previous update is spelled out in the ticket, ESCONF-21: the old rules were incorrectly flagging legit code. |
Thank you for the explanation and suggestions @zburke. I do not agree that the changes made here need to be "safe". This repository sets the coding standards for most FOLIO UI projects, so it is essential that the dependencies in use here are up-to-date so that they align with the latest best practices and conventions. Failing to update these dependencies will, over time, lead to degraded code quality in all dependent projects. Also, when projects depend on I did run some tests together with PR#129 on a couple projects as you suggested with mixed results. Linting errors in some projects are to be expected and we should be prepared to assist teams in resolving any conflicts. What about using a careted version of |
A Look, I understand and agree with you about the need to update dependencies regularly, but this PR puts the cart before the horse, changing the rules for existing code without giving consumers of this repository a way to opt out. Either we need to get everybody's |
https://folio-org.atlassian.net/browse/ESCONF-44
The version of
eslint-plugin-react
is currently fixed at7.30.1
. Since then the plugin has received numerous updates. By updating it to the latest v7 version developers can benefit from updated and added linting rules.