-
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 fail on valid configurations
When interpreting configuration values for strict-mode-related options, do not modify user-specified values. Instead, preserve the values as specified and encapsulate interpretation logic into stateless helper methods on the `state` object. This pattern allows JSHint to consistently issue warnings about invalid configurations by ensuring that at any given time, all option values in the `state` object reflect values explicitly specified by the user. As noted in the in-line documentation, this approach required making explicit certain sub-optimal behaviors which were previously implicit. These concerns would best be addressed in a later patch, distinct from the regression that prompted this changeset.
- Loading branch information
1 parent
200c738
commit 2fb3c24
Showing
3 changed files
with
54 additions
and
13 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