Permalink
Browse files

[[FIX]] Prevent regression in `enforceall`

Ensure that a recent change to option organization does not effect the
behavior of the `enforceall` option. Update the documentation to more
accurately describe the behavior of `enforceall`.
  • Loading branch information...
jugglinmike committed May 19, 2015
1 parent e47168f commit 6afcde407b759b3a9b52a1892daaefdee515cea4
Showing with 16 additions and 7 deletions.
  1. +9 −6 src/options.js
  2. +7 −1 tests/unit/fixtures/enforceall.js
@@ -284,12 +284,14 @@ exports.bool = {
varstmt: false,

/**
* This option is a short hand for the most strict JSHint configuration. It
* enables all enforcing options and disables all relaxing options.
* This option is a short hand for the most strict JSHint configuration as
* available in JSHint version 2.6.3. It enables all enforcing options and
* disables all relaxing options that were defined in that release.
*
* @deprecated The option automatically opts users in to new features which
* can lead to unexpected warnings/errors in when upgrading
* between minor versions of JSHint.
* @deprecated The option cannot be maintained without automatically opting
* users in to new features. This can lead to unexpected
* warnings/errors in when upgrading between minor versions of
* JSHint.
*/
enforceall : false
},
@@ -965,5 +967,6 @@ exports.removed = {
// Add options here which should not be automatically enforced by
// `enforceall`.
exports.noenforceall = {
varstmt: true
varstmt: true,
strict: true
};
@@ -1 +1,7 @@
var someVar = obj[ "key" ] || 0
var someVar = obj[ "key" ] || 0

function f() {
function g() {

}
}

0 comments on commit 6afcde4

Please sign in to comment.