Skip to content

Commit 8f7b0d7

Browse files
committed
chore: lint
1 parent d39dee5 commit 8f7b0d7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
ignore-workspace-root-check=true
2+
shamefully-hoist=true

packages/shikiji/src/core/renderer-html.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function renderToHtml(lines: ThemedToken[][], options: HtmlRendererOption
2222
const optionsByLineNumber = groupBy(options.lineOptions ?? [], option => option.line)
2323
const userElements = options.elements || {}
2424

25-
function h(type: string = '', props = {}, children: string[]): string {
25+
function h(type = '', props = {}, children: string[]): string {
2626
// @ts-expect-error don't check
2727
const element = userElements[type] || defaultElements[type]
2828
if (element) {

0 commit comments

Comments
 (0)