This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disable when no .htmlhintrc file is found (#172)
* Add config option to disable linter-htmlhint when not .htmlhintrc found The formattig is taken from the linter-eslint (https://github.com/AtomLinter/linter-eslint) package. * Add config watcher for no .htmlhintrc, don't lint without config Add a configuration watcher for the new disableWhenNoHtmhintConfig options (same as in linter-eslint). And prevent the linter from doing anything if no ruleset is found and the disableWhenNoHtmlhintConfig is set to `true`. Also added top level divider comments to lib/index.js, similar to src/main.js over at linter-eslint. * Add unit tests for disable option Added two unit tests for the new 'disable when no .htmlhintrc file is found' options. One to see if a default configuration is used when no .htmlhintrc file is present and the option IS NOT set, and one to see if the file is not linted if the option IS set.
- Loading branch information
1 parent
db39e4a
commit 0e2bb0d
Showing
3 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters