Closed9

最高のZenn執筆環境を作る

TocyukiTocyuki

このあたりDockerに追加しておこう

 npm install -g textlint
 npm install -g textlint-rule-preset-ja-technical-writing
 npm install -g textlint-rule-no-dropping-the-ra
 npm install -g textlint-rule-no-mix-dearu-desumasu

https://maku.blog/p/3veuap5/

TocyukiTocyuki

textlint-filter-rule-commentsも追加してみたけど、以下記述でエラーが出るなぁ。なんでだろ。
https://github.com/textlint/textlint-filter-rule-comments

<!-- textlint-disable -->

This is ignored text by rule.
Disables all rules between comments

<!-- textlint-enable -->
Creating zenn_npx_run ... done
✖ Error
shouldIgnore is not a function
at /contents/articles/050e408742dc0522f752.md

✖ Stack trace
TypeError: shouldIgnore is not a function
at /contents/articles/050e408742dc0522f752.md
    at /usr/local/lib/node_modules/textlint-filter-rule-comments/lib/textlint-filter-rule-comments.js:65:13
    at Array.forEach (<anonymous>)
    at undefined (/usr/local/lib/node_modules/textlint-filter-rule-comments/lib/textlint-filter-rule-comments.js:63:26)
    at /usr/local/lib/node_modules/textlint/node_modules/@textlint/kernel/lib/task/promise-event-emitter.js:26:36
    at Array.forEach (<anonymous>)
    at RuleTypeEmitter.PromiseEventEmitter.emit (/usr/local/lib/node_modules/textlint/node_modules/@textlint/kernel/lib/task/promise-event-emitter.js:25:38)
    at Controller.leave (/usr/local/lib/node_modules/textlint/node_modules/@textlint/kernel/lib/task/textlint-core-task.js:161:51)
    at Controller.__execute (/usr/local/lib/node_modules/textlint/node_modules/@textlint/ast-traverse/lib/index.js:46:31)
    at Controller.traverse (/usr/local/lib/node_modules/textlint/node_modules/@textlint/ast-traverse/lib/index.js:110:28)
    at TextLintCoreTask.startTraverser (/usr/local/lib/node_modules/textlint/node_modules/@textlint/kernel/lib/task/textlint-core-task.js:149:28)
このスクラップは2024/01/08にクローズされました