Skip to content

Instantly share code, notes, and snippets.

@kongou-ae
Last active July 3, 2019 14:17
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 kongou-ae/f52955a9ba87d70d8e3d68f6a46ee874 to your computer and use it in GitHub Desktop.
Save kongou-ae/f52955a9ba87d70d8e3d68f6a46ee874 to your computer and use it in GitHub Desktop.
$ErrorActionPreference = "stop"
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
iex (New-Object net.webclient).downloadstring('https://get.scoop.sh')
scoop install nodejs
scoop install yarn
mkdir $HOME\documents\textlint
cd $HOME\documents\textlint
yarn init
yarn add textlint
yarn add textlint-rule-preset-ja-technical-writing
# textlint-rule-ja-no-abusage@1.2.2
# textlint-rule-ja-no-mixed-period@2.1.1
# textlint-rule-ja-no-redundant-expression@2.0.0
# textlint-rule-ja-no-successive-word@1.1.0
# textlint-rule-ja-no-weak-phrase@1.0.4
# textlint-rule-max-comma@1.0.4
# textlint-rule-max-kanji-continuous-len@1.1.1
# textlint-rule-max-ten@2.0.3
# textlint-rule-no-double-negative-ja@1.0.5
# textlint-rule-no-doubled-conjunction@1.0.2
# textlint-rule-no-doubled-conjunctive-particle-ga@1.1.0
# textlint-rule-no-doubled-joshi@3.5.1
# textlint-rule-no-dropping-the-ra@1.1.2
# textlint-rule-no-exclamation-question-mark@1.0.2
# textlint-rule-no-hankaku-kana@1.0.2
# textlint-rule-no-mix-dearu-desumasu@3.0.3
# textlint-rule-no-nfd@1.0.1
# textlint-rule-preset-ja-technical-writing@3.1.2
# textlint-rule-preset-jtf-style@2.3.3
# textlint-rule-prh@5.2.1
# textlint-rule-sentence-length@2.1.1
yarn add textlint-rule-prefer-tari-tari
yarn add textlint-rule-no-mixed-zenkaku-and-hankaku-alphabet
textlint --init
Invoke-WebRequest -Uri https://raw.githubusercontent.com/prh/rules/master/media/WEB%2BDB_PRESS.yml -OutFile $HOME\documents\textlint\WEBBDB_PRESS.yml
$textlintrc = @"
{
"filters": {},
"rules": {
"no-mixed-zenkaku-and-hankaku-alphabet": true,
"prefer-tari-tari": true,
"preset-ja-technical-writing": true,
"prh": {
"rulePaths": [
"WEBBDB_PRESS.yml"
]
}
}
}
"@
$textlintrc | Out-File .\.textlintrc -Force -Encoding utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment