diff options
author | freezy <marek.viger@gmail.com> | 2015-08-27 20:55:43 +0300 |
---|---|---|
committer | freezy <marek.viger@gmail.com> | 2015-08-27 20:55:43 +0300 |
commit | bec72c2d4d7fa20fcacad9be4846fb9c7e4aef9e (patch) | |
tree | 3fc11c94b54c226fc7307f7a84d4c8a108c55ec9 /README.md | |
parent | e9e57f8606baa53743e1e54cfa88f187e744000d (diff) |
Relaxerror can be defined as object of error IDs and filepath masks
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -87,10 +87,24 @@ Shows all errors and warnings before stopping the task. (Overrides `stoponerror` #### options.relaxerror -* Type: `Array` +* Type: `Array|Object` * Default: `[]` -Array of [bootlint problem ID codes](https://github.com/twbs/bootlint/wiki) (`String`s) to explicitly ignore. +Array of [bootlint problem ID codes][] (`String`s) to explicitly ignore. + +Object of [bootlint problem ID codes][] as **keys** and filepath masks as array **value**. + +##### Example + +``` +relaxerror: { + 'E001': [], + 'W005': [ + 'path/to/file.html', + 'file/path/*.mask' + ] +}, +``` ## Contributing @@ -117,3 +131,4 @@ In lieu of a formal styleguide, take care to maintain the existing coding style. Code released under [the MIT license](https://github.com/twbs/grunt-bootlint/blob/master/LICENSE-MIT). +[bootlint problem ID codes]: https://github.com/twbs/bootlint/wiki |