Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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