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

prettier-plugin-sort-jsonを使ってJSONファイルをソートしてみた #76

Merged
merged 4 commits into from Nov 11, 2023

Conversation

MofuMofu2
Copy link
Owner

@MofuMofu2 MofuMofu2 commented Nov 11, 2023

多言語対応で定義が増えると並べ順を気にしてしまう。ソートが面倒なのでソートしないようにしたい。
いくつか方法を試してみる。

https://www.npmjs.com/package/prettier-plugin-sort-json


割と単純で良い。ただ、JSON全部に対してかかってしまうのがネックか?
指定のファイルだけにする、などあればPrettierとフォーマッタの設定を工夫する必要がありそう。

@MofuMofu2 MofuMofu2 merged commit 348174d into main Nov 11, 2023
1 check passed
@MofuMofu2 MofuMofu2 deleted the add-prettier-json-sort branch November 11, 2023 07:32
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

1 participant