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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
vsemozhetbyt authored and targos committed Jul 6, 2018
1 parent 04eed23 commit 214c608
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 214c608

Please sign in to comment.