Skip to content

Instantly share code, notes, and snippets.

@MSakamaki
Last active December 30, 2019 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MSakamaki/a3b7cbf57231b6287a19be28534cb50d to your computer and use it in GitHub Desktop.
Save MSakamaki/a3b7cbf57231b6287a19be28534cb50d to your computer and use it in GitHub Desktop.
Textlint settings for yourself

textlint settings

textlint install

npm i -g textlint
npm i -g textlint-rule-preset-japanese
npm i -g textlint-rule-preset-ja-technical-writing
npm i -g textlint-rule-spellcheck-tech-word
npm i -g textlint-rule-preset-ja-spacing

.textlintrc (basic)

{
  "rules": 
  {
    "preset-japanese" : {
      "sentence-length": false,
    },
    "preset-ja-technical-writing": {
      "sentence-length": false,
    },
    "spellcheck-tech-word": true,
    "textlint-rule-preset-ja-spacing": true
  }
}
{
  "rules": 
  {
    "preset-japanese" : {
      "sentence-length": false,
    },
    "preset-ja-technical-writing": {
      "sentence-length": false,
      "ja-no-weak-phrase": false,
      "no-exclamation-question-mark": false
    },
    "spellcheck-tech-word": true,
    "textlint-rule-preset-ja-spacing": true
  }
}

vscode plugin

vscode-textlint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment