-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
docs: Configure Prettier for docs #17737
Conversation
Hi @Zamiell!, thanks for the Pull Request The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.
To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page. Read more about contributing to ESLint here |
✅ Deploy Preview for docs-eslint canceled.
|
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.
Overall this looks pretty good to me. Aside from the few files we should ignore, it would also be helpful to add a precommit hook to run Prettier on these files.
not a fan of pre-commit hooks myself. |
I added the requested exceptions to the .prettierignore file: 625b360 |
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'm not sure this is necessary, as of right now I think all these changes can be detected and fixed by the markdown-lint we are using
Using markdown-lint as a formatter is a bad idea for the exact same reasons that ESLint itself is deprecating its formatting rules! |
We already run precommit hooks for most ESLint files, so let's keep it consistent and do it for Prettier, too. |
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
Ping @Zamiell |
Ok, I added the pre-commit hook and fixed the list tab issue, the PR diff looks a lot cleaner now. Should I convert this from a draft? |
Looks like ESLint is throwing a spurious error related to this PR:
That's a bug in ESLint because an mjs file extension doesn't respect 'sourceType: module' at all. Does anyone know if there's already an issue opened about that? |
It's not a bug, our eslint config for this project is just set to treat all files as CommonJS. Can the Prettier config file be a CommonJS |
then that's a bug in the eslint config for this project and should probably be fixed =p
done |
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
@Zamiell Is it ready for review now? |
@kecrily it has been ready to review since this comment |
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.
There's a big problem with indent. This is caused by the prettier bug mentioned above. prettier/prettier#5019
tabWidth: 2
doesn't fix it, it just goes from one problem to another. We are blocked.
1. **Features** - new functionality that will aid users in the future. | ||
1. **Enhancements** - requested improvements for existing functionality. | ||
1. **Other** - anything else. | ||
1. **Bugs** - problems with the project are actively affecting users. We want to get these resolved as quickly as possible. |
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.
The indent here has only three spaces.
text: string | ||
} | ||
``` | ||
```typescript |
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.
here too
Co-authored-by: Percy Ma <kecrily@gmail.com>
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
This pull request was auto-closed due to inactivity. While we wish we could keep working on every request, we unfortunately don't have the bandwidth to continue here and need to focus on other things. You can resubmit this pull request if you would like to continue working on it. |
PR for #17504