Skip to content

chore: replace prettier with dprint #273

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

Merged
merged 5 commits into from
May 23, 2024
Merged

chore: replace prettier with dprint #273

merged 5 commits into from
May 23, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented May 22, 2024

Trying out https://github.com/dprint/dprint for formatting instead of prettier.
Also threw in shfmt for good measure.

Note:

@johnstcn johnstcn changed the title chore: replace prettier with dockfmt and markdownfmt chore: replace prettier with dprint May 22, 2024
@johnstcn johnstcn self-assigned this May 22, 2024
@johnstcn johnstcn marked this pull request as ready for review May 22, 2024 20:03
Copy link
Member Author

Choose a reason for hiding this comment

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

not technically needed, can remove

Copy link
Member

Choose a reason for hiding this comment

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

Let's remove it then.

- name: Check formatting
run: yarn format:check
uses: dprint/check@v2.2
Copy link
Member Author

Choose a reason for hiding this comment

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

"deprecated/*"
],
"plugins": [
"https://plugins.dprint.dev/markdown-0.17.0.wasm",
Copy link
Member

@matifali matifali May 23, 2024

Choose a reason for hiding this comment

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

How do we keep these updated? I don't think dependabot supports this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently there isn't any automated way, but apparently warning about outdated plugin versions is on the roadmap.

Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

That's awesome 😎.

@johnstcn johnstcn merged commit 2e0b7d7 into main May 23, 2024
4 checks passed
@johnstcn johnstcn deleted the cj/rm-prettier branch May 23, 2024 09:57
@matifali
Copy link
Member

Is packages.json still required as there is no node anymore?

@johnstcn
Copy link
Member Author

Is packages.json still required as there is no node anymore?

missed removing that, but it can also go

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.

2 participants