Reference: https://developers.google.com/style/dashes
npm install @textlint-rule/textlint-rule-google-dashesReference:
- Dashes | Google Developer Documentation Style Guide | Google Developers
- Ranges of numbers
- punctuation - Em-dash vs colon: "Remind me: what's your name again?" or "Remind me—what's your name again?" - English Language & Usage Stack Exchange
- Dash - Wikipedia
Install with npm:
npm install @textlint-rule/textlint-rule-google-dashes
Via .textlintrc(Recommended)
``json`
{
"rules": {
"@textlint-rule/google-dashes": true
}
}
Via CLI
``
textlint --rule @textlint-rule/google-dashes README.md
- [ ] use colon instead of dash or hyphen
- Currently, support partially
See Releases page.
Install devDependencies and Run npm test:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT © azu