chore: Add eslint rule for object shorthand (#3955)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user