Closed makiRails closed 1 year ago
バグ報告ありがとうございます。
再現できるテストケースを作れてませんが、おそらく https://github.com/textlint-ja/textlint-rule-no-dropping-i/releases/tag/v2.0.1 で修正しました。
npm update @textlint-ja/textlint-rule-no-dropping-i@^2.0.1
返信が遅くなり恐縮です。 再現環境でv2.0.1が問題なく動作することを確認しました。 ご対応いただきありがとうございます。
表題の事象があったため、エラーの Stack trace を報告します。
空の配列に対して reduce を行う際は初期値を与える必要があるようです。 以下のようにしたところエラーは出なくなり、そのままローカルで使用させていただいております。
no-dropping-i.js
恐れ入りますが入力に使ったファイルは公開できる文章ではなく、提示できません。 空の検出があること自体が想定外かどうか、根本的なところを作者の方でご判断いただければ幸いです。