From 214c608208bf7a94fa41a04af2761f9aa299b0ee Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 1 Jul 2018 12:55:49 +0300 Subject: [PATCH] tools: lint doc code examples in strict mode PR-URL: https://github.com/nodejs/node/pull/21615 Refs: https://github.com/eslint/eslint-plugin-markdown#strict Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto Reviewed-By: Minwoo Jung Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat --- .eslintrc.js | 5 +++++ doc/.eslintrc.yaml | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index c076ba7979a2b9..742f9ea6d38ef9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -40,6 +40,11 @@ module.exports = { ], parserOptions: { sourceType: 'module' }, }, + { + files: ['**/*.md'], + parserOptions: { ecmaFeatures: { impliedStrict: true } }, + rules: { strict: 'off' }, + }, ], rules: { // ESLint built-in rules diff --git a/doc/.eslintrc.yaml b/doc/.eslintrc.yaml index 7b38afec10276a..49c4f4f64736c7 100644 --- a/doc/.eslintrc.yaml +++ b/doc/.eslintrc.yaml @@ -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