From 4ba200d0d5ea8cf8a84cfd82053cfd500268d697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sakku=20=F0=9F=A6=89?= <64152685+Yusaku01@users.noreply.github.com> Date: Thu, 3 Sep 2026 19:11:02 +0900 Subject: [PATCH] chore: update Japanese textlint dependencies --- .textlintrc.ja.json | 7 +- package.json | 4 +- pnpm-lock.yaml | 127 ++++++++++++++++++++++++- src/content/docs/ja/guides/actions.mdx | 4 +- 4 files changed, 133 insertions(+), 9 deletions(-) diff --git a/.textlintrc.ja.json b/.textlintrc.ja.json index 70287aab1c01a..923391d51fd7f 100644 --- a/.textlintrc.ja.json +++ b/.textlintrc.ja.json @@ -1,6 +1,11 @@ { "plugins": ["mdx"], "rules": { - "preset-ja-spacing": true + "preset-ja-spacing": { + "ja-space-around-code": false, + "ja-space-around-link": false, + "ja-space-around-emphasis": false, + "ja-space-around-strong": false + } } } diff --git a/package.json b/package.json index ec2d650f0790f..cf33ce37d8e56 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,8 @@ "prettier": "^3.8.3", "prettier-plugin-astro": "^0.14.1", "textlint": "14.7.2", - "textlint-plugin-mdx": "1.0.2", - "textlint-rule-preset-ja-spacing": "2.4.3", + "textlint-plugin-mdx": "1.1.0", + "textlint-rule-preset-ja-spacing": "3.0.3", "typescript": "6.0.3", "typescript-eslint": "^8.59.3", "wrangler": "^4.99.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 23891b363ad0f..4abb8b579705c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -112,11 +112,11 @@ importers: specifier: 14.7.2 version: 14.7.2 textlint-plugin-mdx: - specifier: 1.0.2 - version: 1.0.2(typescript@6.0.3) + specifier: 1.1.0 + version: 1.1.0(typescript@6.0.3) textlint-rule-preset-ja-spacing: - specifier: 2.4.3 - version: 2.4.3 + specifier: 3.0.3 + version: 3.0.3 typescript: specifier: 6.0.3 version: 6.0.3 @@ -1496,6 +1496,9 @@ packages: '@textlint/ast-node-types@14.8.4': resolution: {integrity: sha512-+fI7miec/r9VeniFV9ppL4jRCmHNsTxieulTUf/4tvGII3db5hGriKHC4p/diq1SkQ9Sgs7kg6UyydxZtpTz1Q==} + '@textlint/ast-node-types@15.8.0': + resolution: {integrity: sha512-5CiH9COYmovWmExQgs7763DzX6Gy9zjkjJ7JxCC95wyTcjwQn/8poNF6fv3qzRlmx8CRRde8DHr9FcgAAiPzgw==} + '@textlint/ast-tester@14.8.4': resolution: {integrity: sha512-j6YKPuEaASeXQ2Y/ode993r4A8ugdGEFnPhp96HVGjNVoAsandlR/L0WEMDG1FdIJj3W9+9rlcikXhFQSFc0lA==} @@ -3565,36 +3568,80 @@ packages: peerDependencies: typescript: ^5.0.0 + textlint-plugin-mdx@1.1.0: + resolution: {integrity: sha512-iEeQO5wW7X0TKChILS45FoPW/e9wrQp8gypAmNTg4DdgYgU3gWT+MbSIshvujD2roCFYVyh2TouZBlsckOYVAA==} + peerDependencies: + typescript: ^5.0.0 + textlint-rule-helper@2.3.1: resolution: {integrity: sha512-b1bijvyiUmKinfFE5hkQMSXs3Ky8jyZ3Y6SOoTRJKV9HLL2LWUVFAUezO7z4FpAkVvYruDYWCwA5qWV8GmvyUw==} + textlint-rule-helper@2.5.0: + resolution: {integrity: sha512-QIbFPtyqLy0g5BJn8mryk9iHzGYicNaFIpLFPiEnb4RXxrEGeQ2W2aARQ9yEXLIAqo+OwK4ndWBAWkbgJEPzTQ==} + textlint-rule-ja-nakaguro-or-halfwidth-space-between-katakana@2.4.3: resolution: {integrity: sha512-xIpEAgpaPTnavzCMLcSB/tlZ3Tq9paclyyMEgAQxkM9adv8TrwddZ+Ys+BSd4zjuVa94NED0bajYWtahSjZ53g==} + textlint-rule-ja-nakaguro-or-halfwidth-space-between-katakana@3.0.3: + resolution: {integrity: sha512-NbjhQd9c7vxGDgRzYKnxmVP1NAWrGmSoMe8pzQECEF44k36LmNNh96nbHPyPZSbiUs+TsO/b5t6KGnycn5MnYA==} + textlint-rule-ja-no-space-around-parentheses@2.4.2: resolution: {integrity: sha512-DmmWEKu2hFJs/C4Ruxm/Zkp5gc9W+8kTgUULx54J00MJyJgLWm0XY9BH3OdN66+4+3BFutvxzCLU9y/M1+Dx7w==} + textlint-rule-ja-no-space-around-parentheses@3.0.3: + resolution: {integrity: sha512-zH+tYMpOmjhdRbJ9OHoXSewmt7hHXTp+FF5ZfnARGzGJMzEXw+6kL1YjRoGkh8WHPvIrjOxaIh+H815eC4jZcw==} + + textlint-rule-ja-no-space-around-slash@3.0.3: + resolution: {integrity: sha512-J9rJsX1W740P5GARSM78gD3rOnGuuTw/dQBvkbXymWVa+oqag6Z1+w+yzqLIzBhEz30fVzqO/645f7mDZFI2gw==} + textlint-rule-ja-no-space-between-full-width@2.4.2: resolution: {integrity: sha512-yDiZrJYX2cVO85tLw+ojUntky44ijEfIX2sWinIEN0IdYMCINjYwmgRYFmnqwQ+MZyo+foAt2vLUZtaSZlk/Lw==} + textlint-rule-ja-no-space-between-full-width@3.0.3: + resolution: {integrity: sha512-fOobxsjnVLG05TdtOCnCbK/iFIE3crlVDkJN+QtbuysPT45wE0g2t4NW/NHmzvtpy8wF2I6cuMEPuAssjuEkpw==} + textlint-rule-ja-space-after-exclamation@2.4.2: resolution: {integrity: sha512-3qH0aIG48MrA8qhcljGSGxPmvrrmOQsP/kTfj8SGDKdkBUs05z1x1bgw106RVNVv1enz2v+ZafuVdgFViRKWfA==} + textlint-rule-ja-space-after-exclamation@3.0.3: + resolution: {integrity: sha512-Xs2q9Nj1391/MGbdBlRBDl/j4IMdpoOtELQKCkqftLKLZ4UDbbj4IESqsgnzGJTD2E/kMhd/Zs7CR18/Qtvc/w==} + textlint-rule-ja-space-after-question@2.4.2: resolution: {integrity: sha512-ie1R03y1606QApXu+ZF6X+bAJLccRy/lA5JityfTO9M4EM+7ENMle9fTMoEEKJkNkjHaLi530IzqAZ+CLEe8Qw==} + textlint-rule-ja-space-after-question@3.0.3: + resolution: {integrity: sha512-8mTq6L38myS5z2STTSX29GqvNwNlVRqStKcqL0cFsMT8Nf4eMU4zhqMHXDjr4yJBljzBTbIqE80WVW3r2abXiA==} + textlint-rule-ja-space-around-code@2.4.2: resolution: {integrity: sha512-DM4OF7seafTKrxPFjUJyxx/lwlg8CO3wgwmTJWhQ+6po3mQVV6QaBHpc0861/32kUAJm1ZgRpiBlDWUdraXFFA==} + textlint-rule-ja-space-around-code@3.0.3: + resolution: {integrity: sha512-4MpPYuMoABeG/FLujjJ8+xldErMhjnmW9qWoOX8Dbblk3gWnzAW/yFYSLD2ofybpntzYCHWVLIY33Q4OrusffA==} + + textlint-rule-ja-space-around-emphasis@3.0.3: + resolution: {integrity: sha512-IPKVeHY7//MR9Nif1PJgiSyQsQRJ27OP0bFMGi2W0rBtyaorT6FdbX/qIkgNgEpjqbARD2CcaCfbouhVXqdD2w==} + textlint-rule-ja-space-around-link@2.4.2: resolution: {integrity: sha512-++o4wwCnDiubgE60QuOv0xW/0EcF2ta4EfjOycYsLYqvJ6DzFEZFGv3S/TujzmrIdRc8sHAO62489flvPu1DsQ==} + textlint-rule-ja-space-around-link@3.0.3: + resolution: {integrity: sha512-zNqRbu37idDDVOY227kKQtQDT7gyf/upBo0/wRbygLuBHYoU9H56Igxy0X+5isRTJd4FM21myb+pA+ZBqfizaA==} + + textlint-rule-ja-space-around-strong@3.0.3: + resolution: {integrity: sha512-0kOQl1qjHakyGXgVlvOIgLsU40GDgxajm+Q0oFm1RoWSopS+fF0Cfcod9BDL3AjKQYs8kJvD9v4wcgE9izVvgg==} + textlint-rule-ja-space-between-half-and-full-width@2.4.2: resolution: {integrity: sha512-GqwSy0ivm4Q5Bok9LaOwfg+H1auLRMoMi2aY/7aSIrgvX/RD5aZ2Rk2lm3TTX42mR1UrQu8GDqktUEZfvQ913w==} + textlint-rule-ja-space-between-half-and-full-width@3.0.3: + resolution: {integrity: sha512-mcVsMEKfAj4HLIoxEydHJpC4mFIG1BiU5WhVtnA9N8DZKj5HxywZcHXCSGAVL724cWg66ccAFfBy4g9hBKdOUg==} + textlint-rule-preset-ja-spacing@2.4.3: resolution: {integrity: sha512-WAiWY9TOE8/bRdl14XJdjkPQcV0hLS4O+PCUYU1yxXmJhZ8V3ciw2GYqpA9GL73qAxL25UD6mkf1yfz6aJ4qSA==} + textlint-rule-preset-ja-spacing@3.0.3: + resolution: {integrity: sha512-cIdZcM7in3A7cal2VUbOzUsr+rf2n89jAS4mT9rqjN6GsBl0oD0/iPkT71C0r+dwjZwWE3PeBgmwh2q9GqtChA==} + textlint@14.7.2: resolution: {integrity: sha512-SRff/IHVonktwTMm0momjMZeh0WTPWbQR0S0NXHoU7MUwLM9e4VJeQvkq7V0d37GiM1WfXJSkbaTVidOhOE+0Q==} engines: {node: '>=18.14.0'} @@ -5232,6 +5279,8 @@ snapshots: '@textlint/ast-node-types@14.8.4': {} + '@textlint/ast-node-types@15.8.0': {} + '@textlint/ast-tester@14.8.4': dependencies: '@textlint/ast-node-types': 14.8.4 @@ -7848,53 +7897,109 @@ snapshots: dependencies: typescript: 6.0.3 + textlint-plugin-mdx@1.1.0(typescript@6.0.3): + dependencies: + typescript: 6.0.3 + textlint-rule-helper@2.3.1: dependencies: '@textlint/ast-node-types': 13.4.1 structured-source: 4.0.0 unist-util-visit: 2.0.3 + textlint-rule-helper@2.5.0: + dependencies: + '@textlint/ast-node-types': 15.8.0 + structured-source: 4.0.0 + unist-util-visit: 2.0.3 + textlint-rule-ja-nakaguro-or-halfwidth-space-between-katakana@2.4.3: dependencies: textlint-rule-helper: 2.3.1 + textlint-rule-ja-nakaguro-or-halfwidth-space-between-katakana@3.0.3: + dependencies: + textlint-rule-helper: 2.5.0 + textlint-rule-ja-no-space-around-parentheses@2.4.2: dependencies: match-index: 1.0.3 textlint-rule-helper: 2.3.1 + textlint-rule-ja-no-space-around-parentheses@3.0.3: + dependencies: + textlint-rule-helper: 2.5.0 + + textlint-rule-ja-no-space-around-slash@3.0.3: + dependencies: + textlint-rule-helper: 2.5.0 + textlint-rule-ja-no-space-between-full-width@2.4.2: dependencies: match-index: 1.0.3 regx: 1.0.4 textlint-rule-helper: 2.3.1 + textlint-rule-ja-no-space-between-full-width@3.0.3: + dependencies: + regx: 1.0.4 + textlint-rule-helper: 2.5.0 + textlint-rule-ja-space-after-exclamation@2.4.2: dependencies: match-index: 1.0.3 textlint-rule-helper: 2.3.1 + textlint-rule-ja-space-after-exclamation@3.0.3: + dependencies: + textlint-rule-helper: 2.5.0 + textlint-rule-ja-space-after-question@2.4.2: dependencies: match-index: 1.0.3 textlint-rule-helper: 2.3.1 + textlint-rule-ja-space-after-question@3.0.3: + dependencies: + textlint-rule-helper: 2.5.0 + textlint-rule-ja-space-around-code@2.4.2: dependencies: match-index: 1.0.3 textlint-rule-helper: 2.3.1 + textlint-rule-ja-space-around-code@3.0.3: + dependencies: + textlint-rule-helper: 2.5.0 + + textlint-rule-ja-space-around-emphasis@3.0.3: + dependencies: + textlint-rule-helper: 2.5.0 + textlint-rule-ja-space-around-link@2.4.2: dependencies: match-index: 1.0.3 textlint-rule-helper: 2.3.1 + textlint-rule-ja-space-around-link@3.0.3: + dependencies: + textlint-rule-helper: 2.5.0 + + textlint-rule-ja-space-around-strong@3.0.3: + dependencies: + textlint-rule-helper: 2.5.0 + textlint-rule-ja-space-between-half-and-full-width@2.4.2: dependencies: '@textlint/regexp-string-matcher': 2.0.2 match-index: 1.0.3 textlint-rule-helper: 2.3.1 + textlint-rule-ja-space-between-half-and-full-width@3.0.3: + dependencies: + '@textlint/regexp-string-matcher': 2.0.2 + textlint-rule-helper: 2.5.0 + textlint-rule-preset-ja-spacing@2.4.3: dependencies: textlint-rule-ja-nakaguro-or-halfwidth-space-between-katakana: 2.4.3 @@ -7906,6 +8011,20 @@ snapshots: textlint-rule-ja-space-around-link: 2.4.2 textlint-rule-ja-space-between-half-and-full-width: 2.4.2 + textlint-rule-preset-ja-spacing@3.0.3: + dependencies: + textlint-rule-ja-nakaguro-or-halfwidth-space-between-katakana: 3.0.3 + textlint-rule-ja-no-space-around-parentheses: 3.0.3 + textlint-rule-ja-no-space-around-slash: 3.0.3 + textlint-rule-ja-no-space-between-full-width: 3.0.3 + textlint-rule-ja-space-after-exclamation: 3.0.3 + textlint-rule-ja-space-after-question: 3.0.3 + textlint-rule-ja-space-around-code: 3.0.3 + textlint-rule-ja-space-around-emphasis: 3.0.3 + textlint-rule-ja-space-around-link: 3.0.3 + textlint-rule-ja-space-around-strong: 3.0.3 + textlint-rule-ja-space-between-half-and-full-width: 3.0.3 + textlint@14.7.2: dependencies: '@textlint/ast-node-types': 14.8.4 diff --git a/src/content/docs/ja/guides/actions.mdx b/src/content/docs/ja/guides/actions.mdx index cecf1049e30da..636d4bbf6d3fc 100644 --- a/src/content/docs/ja/guides/actions.mdx +++ b/src/content/docs/ja/guides/actions.mdx @@ -630,9 +630,9 @@ export const onRequest = defineMiddleware(async (context, next) => { }); ``` -HTMLフォームの結果を永続化するための一般的な手法は、 [POST / Redirect / GET パターン](https://en.wikipedia.org/wiki/Post/Redirect/Get) です。このリダイレクトにより、ページ更新時の「フォーム再送信の確認」ダイアログがなくなり、アクションの結果をユーザーセッション全体で永続化できるようになります。 +HTMLフォームの結果を永続化するための一般的な手法は、[POST/Redirect/GETパターン](https://en.wikipedia.org/wiki/Post/Redirect/Get)です。このリダイレクトにより、ページ更新時の「フォーム再送信の確認」ダイアログがなくなり、アクションの結果をユーザーセッション全体で永続化できるようになります。 -この例では、[Netlify サーバーアダプター](/ja/guides/integrations-guide/netlify/) がインストールされている状態で、Netlify Blobを使用したセッションストレージを利用して、すべてのフォーム送信にPOST / Redirect / GETパターンを適用しています。アクションの結果はセッションストアに書き込まれ、リダイレクト後にセッションIDを使用して取得されます: +この例では、[Netlifyサーバーアダプター](/ja/guides/integrations-guide/netlify/)がインストールされている状態で、Netlify Blobを使用したセッションストレージを利用して、すべてのフォーム送信にPOST/Redirect/GETパターンを適用しています。アクションの結果はセッションストアに書き込まれ、リダイレクト後にセッションIDを使用して取得されます: ```ts title="src/middleware.ts" import { defineMiddleware } from 'astro:middleware';