@textlint-rule/textlint-rule-google-sentence-spacing

0.1.2 • Public • Published

@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.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Readme

Keywords

Package Sidebar

Install

npm i @textlint-rule/textlint-rule-google-sentence-spacing

Weekly Downloads

647

Version

0.1.2

License

MIT

Unpacked Size

19.8 kB

Total Files

9

Last publish

Collaborators

  • textlint-user
  • hata6502
  • azu
  • nodaguti
  • 0x6b