Repository navigation
meta: replace stylistic eslint rules with prettier - #17101
Merged
Merged
Conversation
1 task
ephys
marked this pull request as ready for review
February 18, 2024 14:18
Member
|
Can you update the CONTRIBUTING.md file as well to reflect that we're using prettier? Rest of the changes look good and tests are passing |
WikiRik
approved these changes
Feb 18, 2024
WikiRik
left a comment
Member
There was a problem hiding this comment.
Actually let's merge this now to not block the other PRs. We can update CONTRIBUTING.md in a next PR
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds prettier, which is run on every single file.
It also updates the ESLint preset we use, which does not include rules that can be handled by prettier anymore.
This PR only implements the rules that can be fixed automatically. Our
.eslintrc.jsfile includes a few rules that will need to be manually fixed in future PRs.This change provides multiple advantages:
Prettier is not run using
eslint-plugin-prettier, as that would only work for JavaScript/TypeScript files. Instead, it is run as it's own step, and should be configured separately in the IDE.