@textlint-rule/textlint-rule-google-sentence-spacing
v0.1.2
Published
Reference: https://developers.google.com/style/sentence-spacing
Downloads
3,126
Keywords
Readme
@textlint-rule/textlint-rule-google-sentence-spacing
Reference: Spaces between sentences | Google Developer Documentation Style Guide | Google Developers
Example
OK:
sentence is 1. sentence 2. sentence 3.
> sentence is 1. sentence 2.
This is ` obj.code = 1; `.
[ . . . link is ok . . . ](http://example.com)
# Allow first and last spaces
sentence is 1. sentence 2. sentence 3.
sentence is 1. sentence 2. sentence 3.
sentence is 1. sentence 2. sentence 3.
NG:
There are two sentence. But have two space.
sentence is 1. sentence 2. sentence 3.
Install
Install with npm:
npm install @textlint-rule/textlint-rule-google-sentence-spacing
Usage
Via .textlintrc
(Recommended)
{
"rules": {
"@textlint-rule/google-sentence-spacing": true
}
}
Via CLI
textlint --rule @textlint-rule/google-sentence-spacing README.md
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test
:
npm i -d && npm test
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
License
MIT © azu