You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ gulp.task('lint', () => {
17
17
// Options
18
18
}))
19
19
.pipe(lesshint.reporter('reporter-name')) // Leave empty to use the default, "stylish"
20
-
.pipe(lesshint.failOnError()); // Use this to fail the task on lint errors
20
+
.pipe(lesshint.failOnError()) // Use this to fail the task on lint errors
21
+
.pipe(lesshint.failOnWarning()); // Use this to fail the task on lint warnings
21
22
});
22
23
```
23
24
@@ -30,6 +31,8 @@ gulp.task('lint', () => {
30
31
## API
31
32
*`lesshint.failOnError()`
32
33
* Use this to fail the task when there are at least one lint result with a severity of `error`.
34
+
*`lesshint.failOnWarning()`
35
+
* Use this to fail the task when there are at least one lint result with a severity of `warning`.**NOTE**: this does not respect the `maxWarnings` option.
33
36
34
37
## Reporters
35
38
If no reporter name is passed, the default `lesshint-reporter-stylish` will be used which just prints everything with different colors.
0 commit comments