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-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,9 +99,11 @@ In a browser environment, the following public APIs are available:
99
99
*`reporter` is a *reporter* function (see above for a definition). It will be called repeatedly with each lint problem as an argument.
100
100
*`disabledIds` is an array of string linter IDs to disable
101
101
* Returns nothing (i.e. `undefined`)
102
-
*`bootlint.showLintReportForCurrentDocument(disabledIds)`: Lints the HTML of the current document and reports the linting results to the user.
103
-
* If there are any lint warnings, one general notification message will be `window.alert()`-ed to the user. Each warning will be output individually using `console.warn()`.
102
+
*`bootlint.showLintReportForCurrentDocument(disabledIds, alertOpts)`: Lints the HTML of the current document and reports the linting results to the user. Each warning will be output individually using `console.warn()`.
104
103
*`disabledIds` is an array of string linter IDs to disable
104
+
*`alertOpts` is an optional options object with the following properties:
105
+
*`hasProblems` (type: `boolean`; default: `true`) - `window.alert()` a single general notification message to the user if there are any lint problems?
106
+
*`problemFree` (type: `boolean`; default: `true`) - `window.alert()` a notification message to the user if the document has no lint problems?
0 commit comments