LoginSignup
9

More than 3 years have passed since last update.

textlintで文書チェックしながらMarkdownを書く

Last updated at Posted at 2017-01-04

AtomでMarkdownのテキストを書くときにtextlintでチェックしながらするといい感じだった。

環境構築

textlintのインストール

プロジェクトファイル直下に移動し、npmからtextlintをインストールする。

textlintのインストール
$ npm install --save-dev textlint

今回はJTF日本語標準スタイルガイド(翻訳用)に適しているかチェックする。
JTF日本語標準スタイルガイドのプラグインをインストールする。

JTF日本語標準スタイルガイドプラグインをインストール
$ npm install --save-dev textlint-rule-preset-jtf-style

設定ファイルの.textlintrcを以下のように記述し、textlintをインストールしたディレクトリの直下におく。

.textlintrc
{
    "rules": {
        "preset-jtf-style": true
    }
}

これでtextlintの設定はOK。

Atomの環境構築

AtomのパッケージLinterlinter-textlintをインストール。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9