Skip to content

Instantly share code, notes, and snippets.

@kongou-ae
Last active July 3, 2019 14:17
Show Gist options
  • 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
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
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