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:
authorZac Echola <zac.echola@so.mnscu.edu>2014-08-19 23:02:14 +0400
committerZac Echola <zac.echola@so.mnscu.edu>2014-08-19 23:02:14 +0400
commita4320a1c559b1720dfcae46703f260780cc9a237 (patch)
tree9c5738124e24cd74c5996eb7ac0eae8134aa056c /README.md
parentae31bb28f74b306437ca6cb34662935c3910434e (diff)
Adding error relaxation.
Closes #4
Diffstat (limited to 'README.md')
-rw-r--r--README.md37
1 files changed, 36 insertions, 1 deletions
diff --git a/README.md b/README.md
index 33dcf73..84e145f 100644
--- a/README.md
+++ b/README.md
@@ -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