
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
textlint-rule-preset-smarthr
Advanced tools
SmartHRらしい文書を書くための、textlintルールプリセットを提供します。
Install with pnpm:
pnpm install textlint-rule-preset-smarthr
Via .textlintrc
(Recommended)
textlint --rule preset-smarthr README.md
ソースコードをビルドして、lib
フォルダに公開します。
TypeScriptのソースコードはsrc/
フォルダに書くことができます。
pnpm run build
test
フォルダ内のテストコードを実行します。
testの詳細はtextlint-testerを参照してください。
pnpm test
すべてのルールを有効化して使う場合は、次のように設定してください。
{
"rules": {
"preset-smarthr": true
}
}
デフォルトでは、次のような設定になっています。個別にルールを有効・無効化することも可能です。
{
"rules": {
"preset-smarthr": {
"prh-rules": true,
"ja-no-mixed-period": true,
"no-hankaku-kana": true,
"@textlint-rule/no-unmatched-pair": true,
"sentence-length": {
"max": 120
},
"no-doubled-conjunctive-particle-ga": true,
"no-double-negative-ja": true,
"ja-no-abusage": true,
"ja-no-redundant-expression": true,
"no-mixed-zenkaku-and-hankaku-alphabet": true,
"ja-keishikimeishi": {
"detection_hou_kata" : false,
"detection_ue" : false
},
"ja-hiragana-fukushi": true,
"ja-hiragana-hojodoushi": true,
"ja-hiragana-daimeishi": true,
"ja-no-space-around-parentheses": true,
"ja-no-space-between-full-width": true,
"ja-space-between-half-and-full-width": {
"space": "never"
},
"ja-space-after-exclamation": true,
"ja-space-after-question": true,
"ja-space-around-code": false,
"no-nfd": true
}
}
}
補足1: textlint-rule-preset-ja-spacing
のルールプリセットを分解して設定しています。
表記ゆれ修正用の辞書の設定にはtextlint-rule-prh
を使っています。
対応用語はdict/
フォルダに入っている.yml
を確認してください。
MIT
FAQs
SmartHRらしい文書を書くための、textlintルールプリセットを提供します。
The npm package textlint-rule-preset-smarthr receives a total of 8,659 weekly downloads. As such, textlint-rule-preset-smarthr popularity was classified as popular.
We found that textlint-rule-preset-smarthr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 25 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.