-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Do not accept empty values for directives
Previously, when an directive was specified without a value, JSHint would interpret this as the empty string and apply linting rules accordingly. The empty string is never a valid value for any directive, so the generated warnings were not appropriate. If a directive is specified without a value, trigger an explicit error describing the invalid configuration.
- Loading branch information
1 parent
8f82d0d
commit a5bfefb
Showing
2 changed files
with
61 additions
and
2 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