Address new violations of @stylistic/no-extra-parens.

This commit is contained in:
David Anson 2024-10-06 21:03:07 -07:00
parent 4f6b17934a
commit 61a9c2427e
5 changed files with 7 additions and 7 deletions

View file

@ -45,7 +45,7 @@ module.exports = {
"parser": "micromark",
"function": (params, onError) => {
const blockquotes = params.parsers.micromark.tokens
.filter(((token) => token.type === "blockQuote"));
.filter((token) => token.type === "blockQuote");
for (const blockquote of blockquotes) {
const lines = blockquote.endLine - blockquote.startLine + 1;
onError({
@ -70,7 +70,7 @@ module.exports = {
"parser": "markdownit",
"function": (params, onError) => {
const blockquotes = params.parsers.markdownit.tokens
.filter(((token) => token.type === "blockquote_open"));
.filter((token) => token.type === "blockquote_open");
for (const blockquote of blockquotes) {
const [ startIndex, endIndex ] = blockquote.map;
const lines = endIndex - startIndex;