Skip to content

Commit

Permalink
tools: lint doc code examples in strict mode
Browse files Browse the repository at this point in the history
PR-URL: #21615
Refs: https://github.com/eslint/eslint-plugin-markdown#strict
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
vsemozhetbyt committed Jul 6, 2018
1 parent f545ae9 commit 0ef04b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .eslintrc.js
Expand Up @@ -40,6 +40,11 @@ module.exports = {
],
parserOptions: { sourceType: 'module' },
},
{
files: ['**/*.md'],
parserOptions: { ecmaFeatures: { impliedStrict: true } },
rules: { strict: 'off' },
},
],
rules: {
// ESLint built-in rules
Expand Down
1 change: 0 additions & 1 deletion doc/.eslintrc.yaml
Expand Up @@ -5,7 +5,6 @@ rules:
no-restricted-properties: off
no-undef: off
no-unused-vars: off
strict: off
symbol-description: off

# add new ECMAScript features gradually
Expand Down

0 comments on commit 0ef04b8

Please sign in to comment.