江戸一番のジャスタウェイ職人のブログ

江戸一番のジャスタウェイ職人

利用規約とプライバシーポリシーをtextlintでチェックするようにしました

qiita.com

欲張っていろんな rule を指定したので初っ端のインストールコマンドが

npm install -D textlint textlint-plugin-html textlint-rule-common-misspellings textlint-rule-general-novel-style-ja textlint-rule-incremental-headers textlint-rule-max-appearence-count-of-words textlint-rule-max-length-of-title textlint-rule-no-double-negative-ja textlint-rule-no-doubled-conjunction textlint-rule-no-doubled-conjunctive-particle-ga textlint-rule-no-doubled-joshi textlint-rule-no-dropping-the-ra textlint-rule-no-hankaku-kana textlint-rule-no-mix-dearu-desumasu textlint-rule-no-nfd textlint-rule-no-todo textlint-rule-sjsj textlint-rule-spellcheck-tech-word textlint-rule-spellchecker

とえらい長いコマンドになったのですが無事導入できました。

nodejs を travis でやるのが初めてで最初インストールできない rule があったのですが、公式のドキュメントにあるように .travis.yml を調整して事なきを得ました、やりましたね。

Building a Node.js project - Travis CI

.travis.yml

sudo: false
language: node_js
node_js: "stable"
script:
  - npm run textlint
env:
  - CXX=g++-4.8
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8

github.com