Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesNakayama authored and mergify[bot] committed Oct 18, 2024
1 parent 51d9592 commit 3cd6df4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/components/building-blocks/embedded-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useEffect, useRef, useState } from 'react'
import { matchIntegration } from '#app/integrations/integrations.ts'
import { Icon } from '../ui/icon.tsx'


interface OEmbedResponse {
html: string
// Add other properties if needed
Expand Down
2 changes: 1 addition & 1 deletion app/integrations/hn.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import createError from 'http-errors'
import moment from 'moment'
import sanitizeHtml from 'sanitize-html'
import invariant from 'tiny-invariant'
import hn from './hn.ts'
Expand All @@ -7,7 +8,6 @@ import {
type OEmbedResponse,
errorResponse,
} from './integrations.common.ts'
import moment from 'moment'

interface HackerNewsItem {
by?: string
Expand Down
4 changes: 2 additions & 2 deletions app/integrations/integrations.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type ServerIntegration } from '#app/integrations/integrations.common.ts'
import hn from '#app/integrations/hn.server.ts'
import { type ServerIntegration } from '#app/integrations/integrations.common.ts'
import twitter from '#app/integrations/twitter.server.ts'

export const integrations: ServerIntegration[] = [twitter, hn]
Expand All @@ -8,7 +8,7 @@ export const matchIntegration = (
url: string,
): { integration: ServerIntegration; id: string } | undefined => {
for (const integration of integrations) {
console.log("Have integration", integration)
console.log('Have integration', integration)
const id = integration.parseUrl(url)
if (id !== undefined) {
return { integration, id }
Expand Down

0 comments on commit 3cd6df4

Please sign in to comment.