Skip to content
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

Closed
wants to merge 6 commits into from

Conversation

pokey
Copy link
Member

@pokey pokey commented Apr 8, 2023

Checklist

@pokey pokey force-pushed the pokey/use-local-prettier branch 3 times, most recently from 702b7e1 to 43827d3 Compare April 8, 2023 18:14
@pokey pokey force-pushed the pokey/use-local-prettier branch 2 times, most recently from 4c34a82 to 9e15a51 Compare April 8, 2023 19:35
@@ -40,7 +40,8 @@
},
"pnpm": {
"patchedDependencies": {
"@docusaurus/[email protected]": "patches/@[email protected]"
"@docusaurus/[email protected]": "patches/@[email protected]",
"@pnpm/[email protected]": "patches/@[email protected]"
Copy link
Member Author

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

@pokey pokey force-pushed the pokey/use-local-prettier branch 4 times, most recently from 178d7a8 to 0a3d08d Compare April 8, 2023 21:15
@pokey pokey changed the title Use local prettier Use local prettier for pre-commit; add eslint fixer to pre-commit Apr 8, 2023
@pokey pokey changed the title Use local prettier for pre-commit; add eslint fixer to pre-commit pre-commit: Use local prettier; add eslint fixer Apr 8, 2023
@pokey pokey changed the title pre-commit: Use local prettier; add eslint fixer pre-commit: Use our own prettier; add eslint fixer Apr 8, 2023
@pokey pokey changed the title pre-commit: Use our own prettier; add eslint fixer pre-commit: Use our own prettier Apr 8, 2023
@pokey pokey changed the title pre-commit: Use our own prettier pre-commit: Use our own prettier; add eslint fixer Apr 8, 2023
language: node
entry: prettier --write --list-different --ignore-unknown
additional_dependencies:
- [email protected]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pokey
Copy link
Member Author

pokey commented Apr 9, 2023

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 pnpm ...

@auscompgeek
Copy link
Member

Indeed. If you still want autofix commits, you can use pre-commit.ci lite: https://pre-commit.ci/lite.html

@pokey pokey changed the title pre-commit: Use our own prettier; add eslint fixer pre-commit: Keep prettier version in sync; add eslint fixer Apr 9, 2023
@pokey pokey marked this pull request as draft April 9, 2023 11:18
@pokey
Copy link
Member Author

pokey commented Apr 9, 2023

Closing in favour of #1404

@pokey pokey closed this Apr 9, 2023
@pokey pokey deleted the pokey/use-local-prettier branch April 9, 2023 14:09
pokey added a commit that referenced this pull request Apr 11, 2023
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants