Skip to content

Commit 214c608

Browse files
vsemozhetbyttargos
authored andcommitted
tools: lint doc code examples in strict mode
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]>
1 parent 04eed23 commit 214c608

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.eslintrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ module.exports = {
4040
],
4141
parserOptions: { sourceType: 'module' },
4242
},
43+
{
44+
files: ['**/*.md'],
45+
parserOptions: { ecmaFeatures: { impliedStrict: true } },
46+
rules: { strict: 'off' },
47+
},
4348
],
4449
rules: {
4550
// ESLint built-in rules

doc/.eslintrc.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ rules:
55
no-restricted-properties: off
66
no-undef: off
77
no-unused-vars: off
8-
strict: off
98
symbol-description: off
109

1110
# add new ECMAScript features gradually

0 commit comments

Comments
 (0)