Skip to content

Instantly share code, notes, and snippets.

@ktakayama
Last active July 19, 2021 03:27
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 ktakayama/c9b4b8015d4151c96c769d6744521fbb to your computer and use it in GitHub Desktop.
Save ktakayama/c9b4b8015d4151c96c769d6744521fbb to your computer and use it in GitHub Desktop.
efm-langserver with textlint
{
"rules": {
"preset-ja-technical-writing": {
"sentence-length": false,
"max-comma": false,
"max-ten": false,
"arabic-kanji-numbers": false,
"ja-no-mixed-period": false,
"no-doubled-joshi": false,
"no-exclamation-question-mark": false,
"ja-no-weak-phrase": false,
"no-unmatched-pair": false,
},
"prefer-tari-tari": true,
"@textlint-ja/textlint-rule-no-insert-dropping-sa": true
},
"plugins": {
"html": {
"extensions": [".ctp",".html"]
}
}
}
{
"languageserver": {
"efm": {
"command": "efm-langserver",
"args": [],
"filetypes": ["markdown","php","html","text"]
}
},
"suggest.asciiCharactersOnly": true
}
version: 2
root-markers:
- .git/
tools:
textlint: &textlint
lint-command: 'textlint -c ~/.textlintrc --format unix --stdin --stdin-filename ${INPUT}'
lint-ignore-exit-code: true
lint-stdin: true
lint-formats:
- '%f:%l:%c: %m'
root-markers:
- .textlintrc
languages:
markdown:
- <<: *textlint
text:
- <<: *textlint
php:
- <<: *textlint
html:
- <<: *textlint
@ktakayama
Copy link
Author

$ brew install efm-langserver
$ npm install -g textlint textlint-rule-prh textlint-rule-preset-jtf-style textlint-rule-preset-ja-technical-writing textlint-plugin-html

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