We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42970c commit 1855a85Copy full SHA for 1855a85
README.md
@@ -28,6 +28,29 @@ $ pug-lint [options] <file ...>
28
* `-c, --config <path>`: [configuration file](#configuration-file) path
29
* `-r, --reporter <reporter>`: error reporter; console - default, inline
30
31
+#### Lint multiples files in npm script
32
+
33
+```json
34
+{
35
+ "scripts": {
36
+ "lint:pug": "git ls-files 'src/**/*.pug' | xargs pug-lint",
37
+ }
38
+}
39
+```
40
41
+#### Integrate with [lint-staged](https://www.npmjs.com/package/lint-staged)
42
43
44
45
+ "lint-staged": {
46
+ "{src}/**/*.pug": [
47
+ "pug-lint",
48
+ "git add"
49
+ ]
50
51
52
53
54
## Editor integration
55
56
### Sublime Text 3
0 commit comments