Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/grunt-bootlint.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfreezy <marek.viger@gmail.com>2015-08-27 20:55:43 +0300
committerfreezy <marek.viger@gmail.com>2015-08-27 20:55:43 +0300
commitbec72c2d4d7fa20fcacad9be4846fb9c7e4aef9e (patch)
tree3fc11c94b54c226fc7307f7a84d4c8a108c55ec9 /README.md
parente9e57f8606baa53743e1e54cfa88f187e744000d (diff)
Relaxerror can be defined as object of error IDs and filepath masks
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 17 insertions, 2 deletions
diff --git a/README.md b/README.md
index ae196f3..4648a59 100644
--- a/README.md
+++ b/README.md
@@ -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