-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support to fix 2.1.6/2.2.1/2.2.3 (#102)
* fix: support to fix 2.1.6/2.2.1/2.2.3 * CI: update node version
- Loading branch information
Showing
10 changed files
with
1,851 additions
and
2,400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// LICENSE : MIT | ||
"use strict"; | ||
import TextLintTester from "textlint-tester"; | ||
import rule from "../src/2.2.1"; | ||
|
||
const tester = new TextLintTester(); | ||
tester.run("2.2.1.ひらがなと漢字の使い分け", rule, { | ||
valid: ["問題は以下のとおりです"], | ||
invalid: [ | ||
{ | ||
text: "問題は以下の通り", | ||
output: "問題は以下のとおり", | ||
errors: [ | ||
{ | ||
message: `以下の通り => 以下のとおり`, | ||
index: 3 | ||
} | ||
] | ||
} | ||
] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// LICENSE : MIT | ||
"use strict"; | ||
import TextLintTester from "textlint-tester"; | ||
import rule from "../src/2.2.3"; | ||
|
||
const tester = new TextLintTester(); | ||
tester.run("2.2.3. 一部の助数詞の表記", rule, { | ||
valid: ["3か月未満"], | ||
invalid: [ | ||
{ | ||
text: "3ヶ月未満", | ||
output: "3か月未満", | ||
errors: [ | ||
{ | ||
message: `3ヶ月 => 3か月`, | ||
index: 0 | ||
} | ||
] | ||
} | ||
] | ||
}); |
Oops, something went wrong.