-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FEAT]] Option to assume strict mode
Why? 1) Some JavaScript compilers (e.g. Babel) add the "use strict" directive, so it isn't needed that it is present in the code. 2) In node.js you can use the --use_strict flag, which runs the code using strict mode. The `strict` option has now five possible values: - true / func - there must be a `"use strict";` directive at function level - global - there must be a `"use strict";` directive at global level - implied - JSHint checks the code as if there is the `"use strict";` directive - false - disable warnings about strict mode The `globalstrict` option is now deprecated, it should be used `strict: global` Close #924
- Loading branch information
1 parent
da66f70
commit 8de8247
Showing
4 changed files
with
88 additions
and
41 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
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