diff options
author | Zac Echola <zac.echola@so.mnscu.edu> | 2014-08-19 23:02:14 +0400 |
---|---|---|
committer | Zac Echola <zac.echola@so.mnscu.edu> | 2014-08-19 23:02:14 +0400 |
commit | a4320a1c559b1720dfcae46703f260780cc9a237 (patch) | |
tree | 9c5738124e24cd74c5996eb7ac0eae8134aa056c /README.md | |
parent | ae31bb28f74b306437ca6cb34662935c3910434e (diff) |
Adding error relaxation.
Closes #4
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 37 |
1 files changed, 36 insertions, 1 deletions
@@ -46,12 +46,47 @@ In this example, the default options are used to lint two files for common error ```js grunt.initConfig({ bootlint: { - options: {}, + options: { + stoponerror: false, + relaxerror: [] + }, + files: { + ['test/fixtures/**.html'], + }, + }, +}); +``` + +### Settings + +#### options.stoponerror + +* Type: `Boolean` +* Default: `false` + +Breaks out of grunt task on first error. Use `--force` to force continue. + +#### options.relaxerror + +* Type: `Array` +* Default: `[]` + +Array of bootlint messages (`String`s) to explicitly ignore. + +Example: + +```javascript +grunt.initConfig({ + bootlint: { + options: { + relaxerror: ['Document is missing a DOCTYPE declaration'] + }, files: { ['test/fixtures/**.html'], }, }, }); + ``` ## Contributing |