Skip to content

Commit

Permalink
Docs: clarified behavior of globalReturn option (fixes #8953) (#9058)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonmailhiot authored and not-an-aardvark committed Aug 2, 2017
1 parent c2f3553 commit 37158c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/strict.md
Expand Up @@ -69,7 +69,7 @@ The `"safe"` option corresponds to the `"global"` option if ESLint considers a f
* `node` or `commonjs` [environments](../user-guide/configuring#specifying-environments)
* `"globalReturn": true` property in the `ecmaFeatures` object of [parser options](../user-guide/configuring#specifying-parser-options)

Otherwise the `"safe"` option corresponds to the `"function"` option.
Otherwise the `"safe"` option corresponds to the `"function"` option. Note that if `"globalReturn": false` is explicitly specified in the configuration, the `"safe"` option will correspond to the `"function"` option regardless of the specified environment.

### global

Expand Down

0 comments on commit 37158c5

Please sign in to comment.