Skip to content

Commit

Permalink
fix lint errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Oct 2, 2024
1 parent 292a5bf commit fbf3321
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion packages/router/ambient.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable no-var */
/* eslint-disable no-var */
/// <reference types="react/experimental" />

declare global {
Expand Down
5 changes: 1 addition & 4 deletions packages/testing/src/web/MockRouter.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import type React from 'react'

import { flattenAll } from '@redwoodjs/router/dist/react-util'
// Bypass the `main` field in `package.json` because we alias `@redwoodjs/router`
// for jest and Storybook. Not doing so would cause an infinite loop.
// See: ./packages/testing/config/jest/web/jest-preset.js
// @ts-ignore
import { isValidRoute } from '@redwoodjs/router/dist/route-validators'
import type { RouterProps } from '@redwoodjs/router/dist/router'
import { flattenAll } from '@redwoodjs/router/dist/react-util'
import { replaceParams } from '@redwoodjs/router/dist/util'
// @ts-ignore
export * from '@redwoodjs/router/dist/index'

export const routes: { [routeName: string]: () => string } = {}
Expand Down

0 comments on commit fbf3321

Please sign in to comment.