Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
804c839
chore(deps): add textlint-rule-prh to devDependencies
3w36zj6 Sep 5, 2025
0e6307d
chore: add prh configuration
3w36zj6 Sep 5, 2025
8965dc9
chore(deps): add textlint-filter-rule-allowlist to devDependencies
3w36zj6 Sep 5, 2025
f9f3533
chore: add allowlist filter configuration
3w36zj6 Sep 5, 2025
514eaa2
Merge remote-tracking branch 'origin/main' into feature/add-textlint-…
3w36zj6 Sep 17, 2025
98d8251
chore: enable dictionary-based rules of textlint-rule-preset-jtf-style
3w36zj6 Sep 21, 2025
aa8aba6
chore: add rules for term normalization to dictionary
3w36zj6 Sep 21, 2025
e5a8ac5
chore: apply suggestions
3w36zj6 Sep 26, 2025
f49da88
Merge remote-tracking branch 'origin/main' into feature/add-textlint-…
3w36zj6 Sep 26, 2025
184fc54
chore: update pattern to avoid false positives
3w36zj6 Sep 26, 2025
9234ee7
docs: apply textlint suggestions
3w36zj6 Sep 26, 2025
7495e37
docs: apply textlint suggestions
3w36zj6 Sep 26, 2025
8791875
chore: apply suggestions
3w36zj6 Sep 27, 2025
c6a2e77
chore: apply suggestions
3w36zj6 Sep 28, 2025
e7ddb47
docs: apply textlint suggestions
3w36zj6 Sep 28, 2025
fab5c83
Merge remote-tracking branch 'origin/main' into feature/add-textlint-…
3w36zj6 Sep 29, 2025
80f8262
Merge remote-tracking branch 'origin/main' into feature/add-textlint-…
3w36zj6 Oct 1, 2025
3b2373a
docs: apply textlint suggestions
3w36zj6 Oct 1, 2025
0def33d
chore: apply suggestions
3w36zj6 Oct 8, 2025
18c956f
docs: apply textlint suggestions
3w36zj6 Oct 8, 2025
d88a455
Merge remote-tracking branch 'origin/main' into feature/add-textlint-…
3w36zj6 Oct 8, 2025
b537148
docs: apply textlint suggestions
3w36zj6 Oct 8, 2025
85bc683
Merge remote-tracking branch 'origin/main' into feature/add-textlint-…
3w36zj6 Oct 22, 2025
310fb48
docs: apply textlint suggestions
3w36zj6 Oct 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .textlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@ module.exports = {
plugins: ["html"],
filters: {
comments: true,
allowlist: {
allow: ["/<(code|pre)[^>]*>[\\s\\S]*?</(code|pre)>/"],
},
},
rules: {
"preset-jtf-style": {
// 階層構造を表現する記号としての>の使用例があるため
"4.3.7.山かっこ<>": false,
},
prh: {
rulePaths: ["./prh.yaml"],
checkLink: false,
checkBlockQuote: false,
checkEmphasis: true,
checkHeader: true,
checkParagraph: true,
checkCodeComment: [],
},
},
};
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"devDependencies": {
"@types/bun": "latest",
"textlint": "^15.2.2",
"textlint-filter-rule-allowlist": "^4.0.0",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-plugin-html": "^1.0.1",
"textlint-rule-preset-jtf-style": "^3.0.2"
"textlint-rule-preset-jtf-style": "^3.0.2",
"textlint-rule-prh": "^6.1.0"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand Down
20 changes: 20 additions & 0 deletions prh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 1

rules:
- expected: Typst
pattern: /(?<![-#])\b[Tt][Yy][Pp][Ss][Tt]\b(?!-)/
specs:
- from: typst
to: Typst
- from: typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use.
to: Typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use.
- from: typstは、学術用途のために新たに生まれたマークアップベースの組版システムです。
to: Typstは、学術用途のために新たに生まれたマークアップベースの組版システムです。
- from: ttypstt
to: ttypstt
- from: "{#typst}"
to: "{#typst}"
- from: "{#when-typst}"
to: "{#when-typst}"
- from: typst-jp
to: typst-jp