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 /.eslintrc.js | |
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>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 5 |
1 files changed, 5 insertions, 0 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 |