Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

disabledIds in browser mode #110

@sylvainblot

Description

@sylvainblot

Hi Guys,

That would be great to be able to disable errors in browser mode, I've done a small hack to achieve that, I'm open for suggestions in order to create a nice PR.

in html :

<script>
var disabledIdListGlobal = ["W002"];
</script>
<script type="text/javascript" src="/js/bootlint.js"></script>

in bootlint.js :

- exports.showLintReportForCurrentDocument([]);
+ var disabledIdList = [];
+ if (typeof disabledIdListGlobal !== "undefined") {
+ disabledIdList = disabledIdListGlobal;
+ };
+ exports.showLintReportForCurrentDocument(disabledIdList);

Regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions