File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 88to check your English styles with [ btford/write-good] ( https://github.com/btford/write-good ) .
99
1010## Installation
11+
1112```
1213$ npm install textlint-rule-write-good
1314```
1415
1516## Usage
17+
1618```
1719$ npm install textlint textlint-rule-write-good
1820$ textlint --rule textlint-rule-write-good some-text-to-proofread.txt
1921```
2022
2123## Options
24+
2225You can disable each types of checks via ` .textlintrc ` .
2326
2427```
@@ -35,6 +38,7 @@ You can disable each types of checks via `.textlintrc`.
3538For available check types, see [ btford/write-good#checks] ( https://github.com/btford/write-good#checks )
3639
3740## Tests
41+
3842```
3943npm test
4044```
Original file line number Diff line number Diff line change @@ -2,12 +2,7 @@ import { RuleHelper } from 'textlint-rule-helper';
22import writeGood from 'write-good' ;
33
44function reporter ( context , options = { } ) {
5- const {
6- Syntax,
7- getSource,
8- report,
9- RuleError,
10- } = context ;
5+ const { Syntax, getSource, report, RuleError } = context ;
116 const helper = new RuleHelper ( context ) ;
127
138 return {
@@ -20,10 +15,7 @@ function reporter(context, options = {}) {
2015 const suggestions = writeGood ( text , options ) ;
2116
2217 suggestions . forEach ( ( suggestion ) => {
23- const {
24- index,
25- reason : message ,
26- } = suggestion ;
18+ const { index, reason : message } = suggestion ;
2719
2820 report ( node , new RuleError ( message , { index } ) ) ;
2921 } ) ;
You can’t perform that action at this time.
0 commit comments