Skip to content

Commit

Permalink
build(ts): disable ESLint import/no-unresolved rules for those instances
Browse files Browse the repository at this point in the history
where VS Code doesn't complain but somehow GitHub Actions keep failing
  • Loading branch information
zainfathoni committed Jun 12, 2022
1 parent 2e9eada commit e1e16f8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/model/activities.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable-next-line import/no-unresolved */
import database from '../data/senarai-db.json'

export type Activities = Activity[]
Expand All @@ -19,4 +20,4 @@ export type Activity = {
readonly image?: string
}

export const activities = database[0].data as unknown as Activities
export const activities = database[0].data as Activities
15 changes: 13 additions & 2 deletions app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import type { MetaFunction, LinksFunction } from '@remix-run/deno'
import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'
import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration,
} from '@remix-run/react'
import * as React from 'react'

/* eslint-disable-next-line import/no-unresolved */
import styles from './tailwind.css'

export const links: LinksFunction = () => [{ rel: 'stylesheet', href: styles }]
Expand Down Expand Up @@ -34,7 +42,10 @@ export default function App() {
<head>
<Meta />
<Links />
<script async src="https://www.googletagmanager.com/gtag/js?id=G-47CSFLV9JK"></script>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-47CSFLV9JK"
></script>
<script
dangerouslySetInnerHTML={{
__html: `window.dataLayer = window.dataLayer || [];
Expand Down
4 changes: 2 additions & 2 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare module '*.css' {
const classes: { readonly [key: string]: string }
export default classes
const value: string
export default value
}

declare module '*.json' {
Expand Down

0 comments on commit e1e16f8

Please sign in to comment.