Giter Club home page Giter Club logo

Comments (4)

azu avatar azu commented on May 29, 2024 2

@attakei https://github.com/textlint-ja/textlint-rule-no-doubled-joshi/releases/tag/3.5.2 で修正してみました。 #23

npm i textlint-rule-preset-japanese

で中に入ってるtextlint-rule-no-doubled-joshiもアップデートできると思います。

npm ls textlint-rule-no-doubled-joshi
[email protected] /Users/azu/.ghq/gitlab.com/attakei-sandbox/textlint-rst-demo
└─┬ [email protected]
  └── [email protected]

で確認できます。

頂いた再現リポジトリは次のようになりました。

❯ npx textlint demo-*.rst

/Users/azu/.ghq/gitlab.com/attakei-sandbox/textlint-rst-demo/demo-1.rst
  1:22  error  一文に二回以上利用されている助詞 "は" がみつかりました。  japanese/no-doubled-joshi

✖ 1 problem (1 error, 0 warnings)

from textlint-rule-no-doubled-joshi.

attakei avatar attakei commented on May 29, 2024 1
  • textlint-plugin-rst
  • textlint-rule-preset-japanese

を利用している状況下で、以下の用なreSTファイルに対して、textlintコマンドを実行しています。

今まで「サイトはNetlify」「スライドはGitLab Pages」といった配信分けをしていたのですが、
「 ``/slides`` にビルドしたスライドを置きたい」という動機のものと、こんな構成を検討しています。

* 最初にtextlintで文法チェック
* ドキュメントを別にビルドしてarticle化
* 複数articleを束ねてFirebaseへデプロイ

結果として以下のエラーが出力されています。

 7:0  error  一文に二回以上利用されている助詞 "は" がみつかりました。  japanese/no-doubled-joshi

✖ 1 problem (1 error, 0 warnings)

状況再現等に使ったファイル・環境等は、 https://gitlab.com/attakei-sandbox/textlint-rst-demo/ に保存しています。 https://gitlab.com/attakei-sandbox/textlint-rst-demo/-/jobs よりエラーの様子が確認できます

from textlint-rule-no-doubled-joshi.

azu avatar azu commented on May 29, 2024

詳細ありがとうございます!

from textlint-rule-no-doubled-joshi.

attakei avatar attakei commented on May 29, 2024

こちらのリポジトリでもpackage-lock.json更新後に再実行で確認できました。
ありがとうございました。

↓エビデンス兼ねて、こちらにGitLab-CIでの実行パイプラインを置かせていただきます
https://gitlab.com/attakei-sandbox/textlint-rst-demo/pipelines/69597801

from textlint-rule-no-doubled-joshi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.