-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
pre-commit: Keep prettier version in sync; add eslint fixer #1400
Conversation
702b7e1
to
43827d3
Compare
4c34a82
to
9e15a51
Compare
@@ -40,7 +40,8 @@ | |||
}, | |||
"pnpm": { | |||
"patchedDependencies": { | |||
"@docusaurus/[email protected]": "patches/@[email protected]" | |||
"@docusaurus/[email protected]": "patches/@[email protected]", | |||
"@pnpm/[email protected]": "patches/@[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.
Patching until pnpm/meta-updater#10 is fixed
178d7a8
to
0a3d08d
Compare
0a3d08d
to
5a937c6
Compare
6ff801b
to
5a937c6
Compare
for more information, see https://pre-commit.ci
.pre-commit-config.yaml
Outdated
language: node | ||
entry: prettier --write --list-different --ignore-unknown | ||
additional_dependencies: | ||
- [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.
Why not use the technique here? https://github.com/pre-commit/mirrors-prettier/issues/29#issuecomment-1332667344
Just realised that we could prob avoid all this nonsense by just doing pre-commit fixing in a GitHub action rather than in pre-commit.ci. Then we could just start with a pnpm install and run local scripts using |
Indeed. If you still want autofix commits, you can use pre-commit.ci lite: https://pre-commit.ci/lite.html |
Closing in favour of #1404 |
- Partially addresses #640 - Supercedes #1400 ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet - [x] Disable pre-commit.ci - [x] Disable pre-commit.ci lite - [ ] Change branch protection rules - [ ] Check boxes in #640
Checklist