Spec
ADDED Requirements¶
Requirement: .editorconfig の追加¶
プロジェクトルートに .editorconfig を配置し、エディター間のコーディングスタイルを統一する。
Scenario: 全ファイル共通設定¶
- WHEN
.editorconfigを作成する - THEN
root = trueとし、全ファイルに以下が設定される indent_style = space、indent_size = 4、end_of_line = lfcharset = utf-8、trim_trailing_whitespace = true、insert_final_newline = true
Scenario: ファイルタイプ別設定¶
- WHEN
.editorconfigを作成する - THEN 以下のファイルタイプ別設定が適用される
- JSON/YAML:
indent_size = 2、Markdown:trim_trailing_whitespace = false - PowerShell:
indent_size = 4、Bash:indent_size = 2
Requirement: .gitattributes の追加¶
プロジェクトルートに .gitattributes を配置し、改行コードを LF に統一する。
Scenario: 改行コードの統一¶
- WHEN
.gitattributesを作成する - THEN
* text=auto eol=lfが設定される
Requirement: VS Code 設定の追加¶
.vscode/settings.json にプロジェクト共通の VS Code 設定を追加する。
Scenario: cSpell 辞書¶
- WHEN
.vscode/settings.jsonを作成する - THEN
cSpell.wordsに Teams Board プロジェクト固有の用語(mkdocs、textlint、pymdownx、pyproject 等)が登録される