Skip to content

Commit 76021e9

Browse files
committed
Prettify
1 parent 7526505 commit 76021e9

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

ReadMe.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@
88
to 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+
2225
You can disable each types of checks via `.textlintrc`.
2326

2427
```
@@ -35,6 +38,7 @@ You can disable each types of checks via `.textlintrc`.
3538
For available check types, see [btford/write-good#checks](https://github.com/btford/write-good#checks)
3639

3740
## Tests
41+
3842
```
3943
npm test
4044
```

src/write-good.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ import { RuleHelper } from 'textlint-rule-helper';
22
import writeGood from 'write-good';
33

44
function 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
});

0 commit comments

Comments
 (0)