From 939d4ec957412addd1af322d49ca65a16486ea63 Mon Sep 17 00:00:00 2001 From: Garrett Stevens Date: Thu, 29 Aug 2024 16:26:59 -0600 Subject: [PATCH] Lint fixes --- .../src/OntologyManager/OntologyStore/fulltext.ts | 1 - packages/website/babel.config.js | 1 + .../website/src/components/HomepageFeatures/index.tsx | 9 ++++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/jbrowse-plugin-apollo/src/OntologyManager/OntologyStore/fulltext.ts b/packages/jbrowse-plugin-apollo/src/OntologyManager/OntologyStore/fulltext.ts index 2ccddae6d..0f5500c58 100644 --- a/packages/jbrowse-plugin-apollo/src/OntologyManager/OntologyStore/fulltext.ts +++ b/packages/jbrowse-plugin-apollo/src/OntologyManager/OntologyStore/fulltext.ts @@ -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' diff --git a/packages/website/babel.config.js b/packages/website/babel.config.js index 675264818..bbfa5de3c 100755 --- a/packages/website/babel.config.js +++ b/packages/website/babel.config.js @@ -1,3 +1,4 @@ +/* eslint-disable no-undef */ module.exports = { presets: [require.resolve('@docusaurus/core/lib/babel/preset')], } diff --git a/packages/website/src/components/HomepageFeatures/index.tsx b/packages/website/src/components/HomepageFeatures/index.tsx index f221211ec..6b9c9c9ad 100755 --- a/packages/website/src/components/HomepageFeatures/index.tsx +++ b/packages/website/src/components/HomepageFeatures/index.tsx @@ -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> description: JSX.Element @@ -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: ( <> @@ -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: ( <> @@ -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: ( <> @@ -41,7 +44,7 @@ const FeatureList: FeatureItem[] = [ }, ] -function Feature({ title, Svg, description }: FeatureItem) { +function Feature({ Svg, description, title }: FeatureItem) { return (