chore: Add eslint rule for no-shadow (#6658)

* chore: Add eslint rule for no-shadow

* fix
This commit is contained in:
Tom Moor
2024-03-09 14:04:27 -07:00
committed by GitHub
parent fc37070ac8
commit fe4c2fb7d6
18 changed files with 52 additions and 48 deletions

View File

@@ -56,9 +56,9 @@ export default function markdownItCheckbox(md: MarkdownIt): void {
// work backwards through the tokens and find text that looks like a checkbox
for (let i = tokens.length - 1; i > 0; i--) {
const matches = looksLikeChecklist(tokens, i);
if (matches) {
const value = matches[1];
const matchesChecklist = looksLikeChecklist(tokens, i);
if (matchesChecklist) {
const value = matchesChecklist[1];
const checked = value.toLowerCase() === "x";
// convert surrounding list tokens