diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-07-01 12:55:49 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-07-06 08:45:34 +0300 |
commit | 0ef04b813346a7eeccdac2830346708488528076 (patch) | |
tree | 5c70e1ae0437ded77880a0f11e6d2bbe2a58fe38 | |
parent | f545ae9589f97de0f403b61b5b3075bbb527309b (diff) | |
download | android-node-v8-0ef04b813346a7eeccdac2830346708488528076.tar.gz android-node-v8-0ef04b813346a7eeccdac2830346708488528076.tar.bz2 android-node-v8-0ef04b813346a7eeccdac2830346708488528076.zip |
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 <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>
-rw-r--r-- | .eslintrc.js | 5 | ||||
-rw-r--r-- | doc/.eslintrc.yaml | 1 |
2 files changed, 5 insertions, 1 deletions
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 |