Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tai2 committed Jan 27, 2024
1 parent 8a48e12 commit eca2b3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/decor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
replaceDocumentParameters,
replaceTemplateParameters,
} from './replace_parameters.ts'
import assets from './assets.json' assert { type: 'json' }
import assets from './assets.json' with { type: 'json' }

async function renderDefaultTemplate(options: { output?: string }) {
let file, writableStream
Expand Down
2 changes: 1 addition & 1 deletion src/extract_template_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assertEquals, assertThrows } from './deps/std/assert.ts'
import { DOMParser, HTMLDocument } from './deps/deno-dom.ts'
import { extractPartialTemplate, extractTemplate } from './extract_template.ts'
import assets from './assets.json' assert { type: 'json' }
import assets from './assets.json' with { type: 'json' }

function parseDefaultTemplate(): HTMLDocument {
return new DOMParser().parseFromString(assets.defaultTemplate, 'text/html')!
Expand Down
2 changes: 1 addition & 1 deletion src/render_html_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DOMParser } from './deps/deno-dom.ts'
import { extractTemplate } from './extract_template.ts'
import { templateRenderer } from './template_renderer.ts'
import { renderHtml } from './render_html.ts'
import assets from './assets.json' assert { type: 'json' }
import assets from './assets.json' with { type: 'json' }

Deno.test(
'`renderHtml` receives a markdown content and renders it as a HTML',
Expand Down

0 comments on commit eca2b3b

Please sign in to comment.