Skip to content

Conversation

@pss-aileen
Copy link
Collaborator

概要

  • prettierというフォーマッターの導入
  • 導入理由
    • まだ規模は小さいですが、改行、タブの広さ、セミコロンをつけるorつけないなどを統一させるため
    • コードの可読性を上げるため
  • 作業
    • npm で prettier インストール
    • 付随する設定ファイル作成
    • .vscode フォルダでファイル保存時の自動フォーマットを有効に
    • フォーマッターをprettierに指定
  • 設定して、フォーマットを実行済み
    • prettierのデフォルト設定が反映されている
    • tsx など影響あり

関連するIssue

closed #63

その他

  • もし、prettierの設定として追加したいものがあれば教えてください

参考

残課題

  • ESLint の導入
    • とりあえず必要なんだろうな〜程度ではあるのですが、具体的に何がどうできるかわからないので後調査

ファイルを自動でフォーマットするため
Copy link
Member

@kazzyfrog kazzyfrog left a comment

Choose a reason for hiding this comment

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

prettierの導入、ありがとうございます!

tailwindのクラス名の整形や、Github Actionsなどは、必要があれば別のイシューとして追加しても良さそうですね!

Copy link
Member

@kazzyfrog kazzyfrog left a comment

Choose a reason for hiding this comment

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

LGTM✌️

@kazzyfrog
Copy link
Member

このプロジェクトの性質上、同じタイミングでフォークしてContributors.jsonを編集することで、コンフリクトが時々発生しそうだなと想定しているので、コンフリクトの解消にも慣れておいた方が良いかもですね!

@pss-aileen pss-aileen merged commit 3f0725c into main Mar 20, 2024
@pss-aileen pss-aileen deleted the chore/#62_add_prettier branch March 20, 2024 16:08
@kazzyfrog kazzyfrog added the Type: 🔧 chore 雑事、カテゴライズする必要のないもの label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: 🔧 chore 雑事、カテゴライズする必要のないもの

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ファイルを自動でフォーマットしたいので prettier 入れる

3 participants