Skip to content

Commit 102d191

Browse files
committed
chore: update testing and linting configuration
- Modified the "test" script in package.json to run unit tests and linting. - Added "lint:text" script to lint the README.md file. - Introduced "test:unit" script to run unit tests using textlint-scripts. - Added textlint and textlint-rule-preset-ja-technical-writing as dependencies. - Created a new .textlintrc.json file with configuration for the Japanese technical writing preset.
1 parent acfef5e commit 102d191

File tree

4 files changed

+6033
-1208
lines changed

4 files changed

+6033
-1208
lines changed

.github/copilot-instructions.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,25 @@ AIと人間の協力により、お互いの強みを活かした自然で読み
8888

8989
## テスト
9090

91-
テストはUnit Testのみで確認を行う
91+
完全なテストは次のように行います。
92+
README.mdのチェックをtextlintで行い、ルールのテストは`textlint-tester`を使用します。
9293

93-
- `textlint-tester`を使用して、ルールのテストを実装する
94+
```
95+
npm test
96+
```
97+
98+
ルールのテストは`textlint-tester`を使用して、ルールのテストを実装する
9499

95-
テストの実行方法
100+
Unit Testの実行方法
96101

97102
```bash
98-
npm run test
103+
npm run test:unit
99104
```
100105

101106
特定のルールのみをテストする場合は、以下のように実行します。
102107

103108
```bash
104-
npm run test -- --grep no-repetitive-expressions
109+
npm run test:unit -- --grep no-repetitive-expressions
105110
```
106111

107112
実際に `textlint` コマンドを使ってルールを適用する場合は、以下のように実行します。

.textlintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"plugins": {},
3+
"filters": {},
4+
"rules": {
5+
"preset-ja-technical-writing": true
6+
}
7+
}

0 commit comments

Comments
 (0)