-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore(docs): update ESLint with Prettier, react, jsx-a11y #11783
Conversation
Per #11778 I will be updating this doc again this evening to include script modification and add instructions for integrating ESLint with VSCode |
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.
I think these are excellent improvements. Using ESLint for real code issues and Prettier for stylistic concerns is a great approach--and we do it with our Gatsby monorepo!
I'm pretty comfortable merging this. @marcysutton want to take a look?
Co-Authored-By: josefaidt <[email protected]>
Co-Authored-By: josefaidt <[email protected]>
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.
Dang-I just saw this PR made substantial changes to the eslint doc file. My apologies for taking so long on this one, as it is pretty outdated now in comparison. Do you want to take another look to see if there are any changes to be made?
@marcysutton I don't mind revisiting this, however that PR mentioned changed the entire tone of the doc, and this PR was opened to provide changes that would coincide with what was being discussed in issue #11778 Again, I don't mind revisiting, however I would like to get more information as to how we are wanting to shape the tone of the doc, as well as what is covered (ESLint + Prettier, VSCode integration, etc). Should I update this doc? Or the new one? |
@josefaidt I almost feel like this is two different docs at this point. Setting up ESLint is oftentimes (most of the time?) done separately from Prettier, although there are certainly valid use cases in setting them up at the same time to tap into the power of one or the other. However - since we want our docs to be approachable to all skill levels and focused on just the purpose of the doc (e.g. ESLint), I think the PR that landed the changes in #12998 is a better fit for this functionality because it configures ESLint with a simple, extensible set up that can be built upon easily. I do certainly see the point of a prettier + eslint set-up doc, just not sure it should be in the ESlint set up doc if that makes sense! What I would propose is something like:
As such - let's close this out and better focus our efforts on the above suggestions. Sorry about the crossed wires here and for the lengthy delay process! We very much value the work you did in getting this set-up and apologize that it went un-merged this time! 💜 cc @marcysutton |
Description
Updates to ESLint documentation to include:
Also updated commands and wording as necessary.
Related Issues
Related to #11778