GeezerVison is showing github.com — tools: update eslint-plugin-markdown configuration · hernanc/node@934d3f0
File treeExpand file treeCollapse file tree Open diff view settings tools/node_modules/eslint
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .eslintrc.js +10-6Lines changed: 10 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -53,12 +53,12 @@ module.exports = { | 53 | 53 | overrides: [ | 54 | 54 | { | 55 | 55 | files: [ | 56 | | - 'doc/api/esm.md', | 57 | | - 'doc/api/fs.md', | 58 | | - 'doc/api/module.md', | 59 | | - 'doc/api/modules.md', | 60 | | - 'doc/api/packages.md', | 61 | | - 'doc/api/wasi.md', | | 56 | + 'doc/api/esm.md/*.js', | | 57 | + 'doc/api/fs.md/*.js', | | 58 | + 'doc/api/module.md/*.js', | | 59 | + 'doc/api/modules.md/*.js', | | 60 | + 'doc/api/packages.md/*.js', | | 61 | + 'doc/api/wasi.md/*.js', | 62 | 62 | 'test/es-module/test-esm-type-flag.js', | 63 | 63 | 'test/es-module/test-esm-type-flag-alias.js', | 64 | 64 | '*.mjs', | @@ -68,6 +68,10 @@ module.exports = { | 68 | 68 | }, | 69 | 69 | { | 70 | 70 | files: ['**/*.md'], | | 71 | + processor: 'markdown/markdown', | | 72 | + }, | | 73 | + { | | 74 | + files: ['**/*.md/*.js'], | 71 | 75 | parserOptions: { ecmaFeatures: { impliedStrict: true } }, | 72 | 76 | rules: { strict: 'off' }, | 73 | 77 | }, | |
Collapse file Copy file name to clipboardExpand all lines: Makefile +2-4Lines changed: 2 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1209,7 +1209,7 @@ lint-md: lint-js-doc | tools/.mdlintstamp | 1209 | 1209 | LINT_JS_TARGETS = .eslintrc.js benchmark doc lib test tools | 1210 | 1210 |
| 1211 | 1211 | run-lint-js = tools/node_modules/eslint/bin/eslint.js --cache \ | 1212 | | - --report-unused-disable-directives --ext=$(EXTENSIONS) $(LINT_JS_TARGETS) | | 1212 | + --report-unused-disable-directives $(LINT_JS_TARGETS) | 1213 | 1213 | run-lint-js-fix = $(run-lint-js) --fix | 1214 | 1214 |
| 1215 | 1215 | .PHONY: lint-js-fix | @@ -1220,8 +1220,6 @@ lint-js-fix: | 1220 | 1220 | .PHONY: lint-js-doc | 1221 | 1221 | # Note that on the CI `lint-js-ci` is run instead. | 1222 | 1222 | # Lints the JavaScript code with eslint. | 1223 | | -lint-js lint-js-fix: EXTENSIONS=.js,.mjs,.md | 1224 | | -lint-js-doc: EXTENSIONS=.md | 1225 | 1223 | lint-js lint-js-doc: | 1226 | 1224 | @if [ "$(shell $(node_use_openssl))" != "true" ]; then \ | 1227 | 1225 | echo "Skipping $@ (no crypto)"; \ | @@ -1234,7 +1232,7 @@ jslint: lint-js | 1234 | 1232 | $(warning Please use lint-js instead of jslint) | 1235 | 1233 |
| 1236 | 1234 | run-lint-js-ci = tools/node_modules/eslint/bin/eslint.js \ | 1237 | | - --report-unused-disable-directives --ext=.js,.mjs,.md -f tap \ | | 1235 | + --report-unused-disable-directives -f tap \ | 1238 | 1236 | -o test-eslint.tap $(LINT_JS_TARGETS) | 1239 | 1237 |
| 1240 | 1238 | .PHONY: lint-js-ci | |
|