Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Aug 29, 2024
1 parent 0b1e15b commit 939d4ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable import/no-named-as-default-member */
// jsonpath triggers this rule for some reason. import { query } from 'jsonpath' does not work

import { checkAbortSignal } from '@jbrowse/core/util'
Expand Down
1 change: 1 addition & 0 deletions packages/website/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-undef */
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
}
9 changes: 6 additions & 3 deletions packages/website/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import clsx from 'clsx'
import { clsx } from 'clsx'
import Heading from '@theme/Heading'
import styles from './styles.module.css'

type FeatureItem = {
interface FeatureItem {
title: string
Svg: React.ComponentType<React.ComponentProps<'svg'>>
description: JSX.Element
Expand All @@ -11,6 +11,7 @@ type FeatureItem = {
const FeatureList: FeatureItem[] = [
{
title: 'Easy to Use',
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-member-access
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
description: (
<>
Expand All @@ -21,6 +22,7 @@ const FeatureList: FeatureItem[] = [
},
{
title: 'Focus on What Matters',
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-member-access
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
description: (
<>
Expand All @@ -31,6 +33,7 @@ const FeatureList: FeatureItem[] = [
},
{
title: 'Powered by React',
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-member-access
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
description: (
<>
Expand All @@ -41,7 +44,7 @@ const FeatureList: FeatureItem[] = [
},
]

function Feature({ title, Svg, description }: FeatureItem) {
function Feature({ Svg, description, title }: FeatureItem) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
Expand Down

0 comments on commit 939d4ec

Please sign in to comment.