From 0ef04b813346a7eeccdac2830346708488528076 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 1 Jul 2018 12:55:49 +0300 Subject: 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 c076ba7979..742f9ea6d3 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 7b38afec10..49c4f4f647 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 -- cgit v1.2.3