Skip to content

Commit

Permalink
Docs: add .md to link(for github users) (#9529)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Oct 28, 2017
1 parent 9deb1b1 commit 9cf4ebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/strict.md
Expand Up @@ -42,7 +42,7 @@ In **ECMAScript** modules, which always have strict mode semantics, the directiv

This rule requires or disallows strict mode directives.

This rule disallows strict mode directives, no matter which option is specified, if ESLint configuration specifies either of the following as [parser options](../user-guide/configuring#specifying-parser-options):
This rule disallows strict mode directives, no matter which option is specified, if ESLint configuration specifies either of the following as [parser options](/docs/user-guide/configuring.md#specifying-parser-options):

* `"sourceType": "module"` that is, files are **ECMAScript** modules
* `"impliedStrict": true` property in the `ecmaFeatures` object
Expand All @@ -66,8 +66,8 @@ This rule has a string option:

The `"safe"` option corresponds to the `"global"` option if ESLint considers a file to be a **Node.js** or **CommonJS** module because the configuration specifies either of the following:

* `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)
* `node` or `commonjs` [environments](/docs/user-guide/configuring.md#specifying-environments)
* `"globalReturn": true` property in the `ecmaFeatures` object of [parser options](/docs/user-guide/configuring.md#specifying-parser-options)

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.

Expand Down

0 comments on commit 9cf4ebe

Please sign in to comment.