mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Address new violations of @stylistic/no-extra-parens.
This commit is contained in:
parent
4f6b17934a
commit
61a9c2427e
5 changed files with 7 additions and 7 deletions
|
|
@ -15,7 +15,7 @@ module.exports = {
|
|||
"parser": "markdownit",
|
||||
"function": (params, onError) => {
|
||||
const fences = params.parsers.markdownit.tokens
|
||||
.filter(((token) => token.type === "fence"));
|
||||
.filter((token) => token.type === "fence");
|
||||
for (const fence of fences) {
|
||||
if (languageJavaScript.test(fence.info)) {
|
||||
const results = linter.verify(fence.content, js.configs.recommended);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue