Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2021-02-28 21:05:42 +0300
committercjihrig <cjihrig@gmail.com>2021-03-03 20:42:26 +0300
commit934d3f05a3ff4ed3755ce4f436f126d376cef87b (patch)
tree5504910c49a65bc663df3ee78e60a98d909bac3e /.eslintrc.js
parentf6b1df222665aa6ec07fd4eeccb704848cbaf2f1 (diff)
tools: update eslint-plugin-markdown configuration
This commit updates the linting setup to work with eslint-plugin-markdown@2.0.0. This also allows the update-eslint script to continue to function properly without changes. PR-URL: https://github.com/nodejs/node/pull/37549 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index a9a1761e6ab..92e00d7c920 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -53,12 +53,12 @@ module.exports = {
overrides: [
{
files: [
- 'doc/api/esm.md',
- 'doc/api/fs.md',
- 'doc/api/module.md',
- 'doc/api/modules.md',
- 'doc/api/packages.md',
- 'doc/api/wasi.md',
+ 'doc/api/esm.md/*.js',
+ 'doc/api/fs.md/*.js',
+ 'doc/api/module.md/*.js',
+ 'doc/api/modules.md/*.js',
+ 'doc/api/packages.md/*.js',
+ 'doc/api/wasi.md/*.js',
'test/es-module/test-esm-type-flag.js',
'test/es-module/test-esm-type-flag-alias.js',
'*.mjs',
@@ -68,6 +68,10 @@ module.exports = {
},
{
files: ['**/*.md'],
+ processor: 'markdown/markdown',
+ },
+ {
+ files: ['**/*.md/*.js'],
parserOptions: { ecmaFeatures: { impliedStrict: true } },
rules: { strict: 'off' },
},