chore: Add eslint rule for object shorthand (#3955)

This commit is contained in:
Tom Moor
2022-08-11 13:18:14 +01:00
committed by GitHub
parent 7eaa8eb961
commit 1d242d44b1
17 changed files with 19 additions and 18 deletions

View File

@@ -174,7 +174,7 @@ export default class Image extends Node {
src: img?.getAttribute("src"),
alt: img?.getAttribute("alt"),
title: img?.getAttribute("title"),
layoutClass: layoutClass,
layoutClass,
};
},
},

View File

@@ -6,7 +6,7 @@ export default function notice(md: MarkdownIt): void {
return customFence(md, "notice", {
marker: ":",
validate: () => true,
render: function (tokens: Token[], idx: number) {
render(tokens: Token[], idx: number) {
const { info } = tokens[idx];
if (tokens[idx].nesting === 1) {