Skip to content

Commit

Permalink
style: リストをですまる構文に統一 (#1708)
Browse files Browse the repository at this point in the history
  • Loading branch information
azu authored Jan 2, 2024
1 parent da5a421 commit 5d3f5ce
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 52 deletions.
6 changes: 6 additions & 0 deletions .textlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ module.exports = {
]
},
"preset-ja-technical-writing": {
"no-mix-dearu-desumasu": {
"preferInHeader": "",
"preferInBody": "ですます",
"preferInList": "ですます",
"strict": false
},
"ja-no-redundant-expression": {
"dictOptions": {
// "すること[助詞]できる"
Expand Down
60 changes: 10 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"textlint-rule-no-use-column": "workspace:textlint-rule-no-use-column",
"textlint-rule-no-use-prototype-hash": "workspace:textlint-rule-no-use-prototype-hash",
"textlint-rule-period-in-list-item": "^1.0.1",
"textlint-rule-preset-ja-technical-writing": "^9.0.0",
"textlint-rule-preset-ja-technical-writing": "^10.0.1",
"textlint-rule-prh": "^5.3.0",
"textstat": "^0.8.0",
"typescript": "^4.7.4",
Expand Down
2 changes: 1 addition & 1 deletion source/basic/map-and-set/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ console.log(shoppingCart.toString()); // => "みかん:2,リンゴ:1"
マップとしての`Object`には次のような利点があります。
- リテラル表現があるため作成しやすい
- 規定のJSON表現があるため、`JSON.stringify`関数を使ってJSONに変換するのが簡単である
- 規定のJSON表現があるため、`JSON.stringify`関数を使ってJSONに変換するのが簡単
- ネイティブAPI・外部ライブラリを問わず、多くの関数がマップとして`Object`を渡される設計になっている
次の例では、ログインフォームのsubmitイベントを受け取ったあと、サーバーにPOSTリクエストを送信しています。
Expand Down

0 comments on commit 5d3f5ce

Please sign in to comment.