From eb0c9937e01fd696007b836600906cfaea0d6c38 Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Sun, 21 Apr 2024 18:44:29 -0700 Subject: [PATCH] eslint fixes --- .prettierignore | 8 ++++---- .../src/components/CommunityContributors/index.js | 1 - .../src/components/CommunityHeader/index.js | 1 - .../src/components/CommunityHowToContribute/index.js | 1 - .../src/components/CommunityLinks/index.js | 1 - .../src/components/HomepageExamples/index.js | 2 +- .../src/components/HomepageFeatures/index.js | 1 - .../lexical-website/src/components/ImageSwitcher/index.js | 1 - packages/lexical-website/src/pages/community/index.js | 1 - packages/lexical-website/src/pages/docs/error/index.js | 2 +- packages/lexical-website/src/pages/index.js | 1 - 11 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.prettierignore b/.prettierignore index 0832734b4f9..d260e98abc6 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,9 +1,9 @@ # NOTE: In general this should be kept in sync with .eslintignore -packages/**/dist/** -packages/**/build/** -packages/**/npm/** -packages/**/config/** +**/dist/** +**/build/** +**/npm/** +**/config/** packages/**/.wxt/** packages/playwright packages/playwright-core diff --git a/packages/lexical-website/src/components/CommunityContributors/index.js b/packages/lexical-website/src/components/CommunityContributors/index.js index 722cfce3ad4..09b8497a619 100644 --- a/packages/lexical-website/src/components/CommunityContributors/index.js +++ b/packages/lexical-website/src/components/CommunityContributors/index.js @@ -7,7 +7,6 @@ */ import Translate from '@docusaurus/Translate'; -import React from 'react'; const CONTRIBUTORS = [ { diff --git a/packages/lexical-website/src/components/CommunityHeader/index.js b/packages/lexical-website/src/components/CommunityHeader/index.js index 8b57f1e99f3..79d3e2ca1b7 100644 --- a/packages/lexical-website/src/components/CommunityHeader/index.js +++ b/packages/lexical-website/src/components/CommunityHeader/index.js @@ -8,7 +8,6 @@ import Translate from '@docusaurus/Translate'; import CommunityHeaderSvg from '@site/static/img/community-header.svg'; -import React from 'react'; export default function CommunityHeader() { return ( diff --git a/packages/lexical-website/src/components/CommunityHowToContribute/index.js b/packages/lexical-website/src/components/CommunityHowToContribute/index.js index eb3b49551de..ee3c7a813e0 100644 --- a/packages/lexical-website/src/components/CommunityHowToContribute/index.js +++ b/packages/lexical-website/src/components/CommunityHowToContribute/index.js @@ -8,7 +8,6 @@ import Link from '@docusaurus/Link'; import Translate from '@docusaurus/Translate'; -import React from 'react'; export default function CommunityHowToContribute() { return ( diff --git a/packages/lexical-website/src/components/CommunityLinks/index.js b/packages/lexical-website/src/components/CommunityLinks/index.js index 300c5ba0897..be45c120163 100644 --- a/packages/lexical-website/src/components/CommunityLinks/index.js +++ b/packages/lexical-website/src/components/CommunityLinks/index.js @@ -8,7 +8,6 @@ import Link from '@docusaurus/Link'; import Translate from '@docusaurus/Translate'; -import React from 'react'; import ImageSwitcher from '../ImageSwitcher'; diff --git a/packages/lexical-website/src/components/HomepageExamples/index.js b/packages/lexical-website/src/components/HomepageExamples/index.js index 5e008c11501..38436d3960d 100644 --- a/packages/lexical-website/src/components/HomepageExamples/index.js +++ b/packages/lexical-website/src/components/HomepageExamples/index.js @@ -8,7 +8,7 @@ import Link from '@docusaurus/Link'; import * as Tabs from '@radix-ui/react-tabs'; -import React, {useState} from 'react'; +import {useState} from 'react'; const EXAMPLES = [ { diff --git a/packages/lexical-website/src/components/HomepageFeatures/index.js b/packages/lexical-website/src/components/HomepageFeatures/index.js index 06b14f18335..b8f1112759c 100644 --- a/packages/lexical-website/src/components/HomepageFeatures/index.js +++ b/packages/lexical-website/src/components/HomepageFeatures/index.js @@ -7,7 +7,6 @@ */ import Translate from '@docusaurus/Translate'; -import React from 'react'; const FeatureList = [ { diff --git a/packages/lexical-website/src/components/ImageSwitcher/index.js b/packages/lexical-website/src/components/ImageSwitcher/index.js index e4d20a86773..a3f75384b60 100644 --- a/packages/lexical-website/src/components/ImageSwitcher/index.js +++ b/packages/lexical-website/src/components/ImageSwitcher/index.js @@ -7,7 +7,6 @@ */ import {useColorMode} from '@docusaurus/theme-common'; -import React from 'react'; export default function ImageSwitcher({light, dark}) { const Light = light; diff --git a/packages/lexical-website/src/pages/community/index.js b/packages/lexical-website/src/pages/community/index.js index a5c4fff27c1..f11afc72556 100644 --- a/packages/lexical-website/src/pages/community/index.js +++ b/packages/lexical-website/src/pages/community/index.js @@ -12,7 +12,6 @@ import CommunityHeader from '@site/src/components/CommunityHeader'; import CommunityHowToContribute from '@site/src/components/CommunityHowToContribute'; import CommunityLinks from '@site/src/components/CommunityLinks'; import Layout from '@theme/Layout'; -import React from 'react'; export default function Community() { const {siteConfig} = useDocusaurusContext(); diff --git a/packages/lexical-website/src/pages/docs/error/index.js b/packages/lexical-website/src/pages/docs/error/index.js index 1e3405b3dd5..3c07c403462 100644 --- a/packages/lexical-website/src/pages/docs/error/index.js +++ b/packages/lexical-website/src/pages/docs/error/index.js @@ -9,7 +9,7 @@ import BrowserOnly from '@docusaurus/BrowserOnly'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; -import React, {useMemo} from 'react'; +import {useMemo} from 'react'; import codes from '../../../../../../scripts/error-codes/codes.json'; diff --git a/packages/lexical-website/src/pages/index.js b/packages/lexical-website/src/pages/index.js index 06dae073fca..9d4e60d8c64 100644 --- a/packages/lexical-website/src/pages/index.js +++ b/packages/lexical-website/src/pages/index.js @@ -14,7 +14,6 @@ import HomepageExamples from '@site/src/components/HomepageExamples'; import HomepageFeatures from '@site/src/components/HomepageFeatures'; import Layout from '@theme/Layout'; import {inject} from '@vercel/analytics'; -import React from 'react'; // activate analytics inject();