Skip to content

Commit

Permalink
Merge pull request #1547 from kidonng/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Oct 22, 2020
2 parents 6558034 + 8d44c73 commit 1de7656
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions README.md
Expand Up @@ -121,25 +121,25 @@ $ standard "src/util/**/*.js" "test/**/*.js"

1. Add it to `package.json`

```json
{
"name": "my-cool-package",
"devDependencies": {
"standard": "*"
},
"scripts": {
"test": "standard && node my-tests.js"
}
}
```
```json
{
"name": "my-cool-package",
"devDependencies": {
"standard": "*"
},
"scripts": {
"test": "standard && node my-tests.js"
}
}
```

2. Style is checked automatically when you run `npm test`

```bash
$ npm test
Error: Use JavaScript Standard Style
lib/torrent.js:950:11: Expected '===' and instead saw '=='.
```
```bash
$ npm test
Error: Use JavaScript Standard Style
lib/torrent.js:950:11: Expected '===' and instead saw '=='.
```

3. Never give style feedback on a pull request again!

Expand Down

0 comments on commit 1de7656

Please sign in to comment.