Skip to content

Commit

Permalink
More instructions for use are added
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Oct 24, 2019
1 parent c42970c commit 1855a85
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,29 @@ $ pug-lint [options] <file ...>
* `-c, --config <path>`: [configuration file](#configuration-file) path
* `-r, --reporter <reporter>`: error reporter; console - default, inline

#### Lint multiples files in npm script

```json
{
"scripts": {
"lint:pug": "git ls-files 'src/**/*.pug' | xargs pug-lint",
}
}
```

#### Integrate with [lint-staged](https://www.npmjs.com/package/lint-staged)

```json
{
"lint-staged": {
"{src}/**/*.pug": [
"pug-lint",
"git add"
]
}
}
```

## Editor integration

### Sublime Text 3
Expand Down

0 comments on commit 1855a85

Please sign in to comment.