Skip to content

Commit

Permalink
- lint:fix
Browse files Browse the repository at this point in the history
- update faustwp/cli to valid version 3.0.2
  • Loading branch information
jasonbahl committed Aug 21, 2024
1 parent 69d5ae0 commit f69d6df
Show file tree
Hide file tree
Showing 36 changed files with 86 additions and 49 deletions.
1 change: 1 addition & 0 deletions components/Button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import clsx from 'clsx'

import Link from 'next/link'

const styles = {
Expand Down
6 changes: 4 additions & 2 deletions components/DocsSidebarNavigation.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { gql } from '@apollo/client';
import clsx from 'clsx';
import Link from 'next/link';
import { useState } from 'react';

import { gql } from '@apollo/client';
import Link from 'next/link';


DocsSidebarNavigation.fragment = gql`
fragment DocsSidebarNavigationFragment on RootQuery {
docsSidebarMenuItems: menuItems(
Expand Down
6 changes: 4 additions & 2 deletions components/FeatureTabsLeft.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import clsx from 'clsx'
import { useEffect, useState } from 'react'

import { gql } from '@apollo/client'
import { Tab } from '@headlessui/react'
import clsx from 'clsx'
import Image from 'next/image'
import { useEffect, useState } from 'react'


import { Container } from '@/components/Container'

Expand Down
3 changes: 2 additions & 1 deletion components/FeatureTabsTop.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import clsx from 'clsx';

import { gql } from '@apollo/client';
import { Tab } from '@headlessui/react';
import clsx from 'clsx';
import Image from 'next/image';

import { Container } from '@/components/Container';
Expand Down
3 changes: 2 additions & 1 deletion components/Fence.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Highlight, { defaultProps } from 'prism-react-renderer'
import { Fragment } from 'react'

import Highlight, { defaultProps } from 'prism-react-renderer'

export function Fence({ children, language }) {
return (
<Highlight
Expand Down
6 changes: 4 additions & 2 deletions components/FooterNavigation.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { gql } from '@apollo/client'
import clsx from 'clsx'
import Link from 'next/link'
import * as React from 'react'

import { gql } from '@apollo/client'
import Link from 'next/link'


import styles from '@/styles/footer-navigation.module.css';

export function FooterNavigation({ navigation }) {
Expand Down
6 changes: 4 additions & 2 deletions components/HomepageLayoutsLayoutsHeroLayout.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { gql } from '@apollo/client'
import clsx from 'clsx'
import Highlight, { defaultProps } from 'prism-react-renderer'
import { Fragment } from 'react'

import { gql } from '@apollo/client'
import Highlight, { defaultProps } from 'prism-react-renderer'


import { Button } from '@/components/Button'


Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { gql } from '@apollo/client'
import clsx from 'clsx'
import { useEffect, useMemo, useRef, useState } from 'react'

import { gql } from '@apollo/client'
import { useInView } from 'framer-motion'
import Image from 'next/image'
import Link from 'next/link'
import { useEffect, useMemo, useRef, useState } from 'react'


import { Container } from '@/components/Container'

Expand Down
6 changes: 4 additions & 2 deletions components/Layout.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import clsx from 'clsx'
import { useCallback, useEffect, useState } from 'react'

import { gql } from '@apollo/client'
import { flatListToHierarchical, useFaustQuery } from '@faustwp/core'
import clsx from 'clsx'
import Link from 'next/link'
import { useCallback, useEffect, useState } from 'react'


import EditPost from './EditPost'

Expand Down
5 changes: 3 additions & 2 deletions components/MiniGraphiQL.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { createGraphiQLFetcher } from '@graphiql/toolkit';
import { useTheme } from 'next-themes';
import PropTypes from 'prop-types';
import React, { useEffect, useState } from 'react';

import { createGraphiQLFetcher } from '@graphiql/toolkit';
import { useTheme } from 'next-themes';

const MiniGraphiQLClient = ({ initialQuery, initialVariables, endpoint, readOnly }) => {
const [GraphiQL, setGraphiQL] = useState(null);
const { theme, resolvedTheme } = useTheme();
Expand Down
3 changes: 2 additions & 1 deletion components/MobileNavigation.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { useEffect, useState } from 'react'

import { Dialog } from '@headlessui/react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'

import { DocsSidebarNavigation } from '@/components/DocsSidebarNavigation'
import { Logo } from '@/components/Logo'
Expand Down
3 changes: 2 additions & 1 deletion components/PrimaryNavigation.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from 'react'

import { gql } from '@apollo/client'
import Link from 'next/link'
import * as React from 'react'

import {
NavigationMenu,
Expand Down
5 changes: 3 additions & 2 deletions components/Search.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { DocSearchModal } from "@docsearch/react";
import clsx from 'clsx'
import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";

import { DocSearchModal } from "@docsearch/react";
import Head from 'next/head'
import Link from 'next/link'
import { useRouter } from "next/router";
import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
import { createPortal } from "react-dom";

import { SearchIcon } from '@/components/icons/SearchIcon';
Expand Down
3 changes: 2 additions & 1 deletion components/SiteHeader.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import clsx from 'clsx'
import Link from 'next/link'
import { useEffect, useState } from 'react'

import Link from 'next/link'

import { GitHubIcon } from '@/components/icons/GitHubIcon'
import { WordPressIcon } from '@/components/icons/WordPressIcon'
import { Logo } from '@/components/Logo'
Expand Down
3 changes: 2 additions & 1 deletion components/ThemeProvider.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"use client"

import { ThemeProvider as NextThemesProvider } from "next-themes"
import * as React from "react"

import { ThemeProvider as NextThemesProvider } from "next-themes"

export function ThemeProvider({ children, ...props }) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>
}
3 changes: 2 additions & 1 deletion components/ThemeSelector.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"use client"

import * as React from "react"

import { MoonIcon, SunIcon } from "@radix-ui/react-icons"
import { useTheme } from "next-themes"
import * as React from "react"

import { Button } from "@/components/ui/button"
import {
Expand Down
3 changes: 2 additions & 1 deletion components/ui/accordion.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"use client"

import * as React from "react"

import * as AccordionPrimitive from "@radix-ui/react-accordion"
import { ChevronDownIcon } from "@radix-ui/react-icons"
import * as React from "react"

import { cn } from "@/lib/utils"

Expand Down
3 changes: 2 additions & 1 deletion components/ui/button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Slot } from '@radix-ui/react-slot'
import { VariantProps, cva } from 'class-variance-authority'
import * as React from 'react'

import { Slot } from '@radix-ui/react-slot'

import { cn } from '@/lib/utils'

const buttonVariants = cva(
Expand Down
3 changes: 2 additions & 1 deletion components/ui/context-menu.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from "react"

import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"
import { Check, ChevronRight, Circle } from "lucide-react"
import * as React from "react"

import { cn } from "@/lib/utils"

Expand Down
3 changes: 2 additions & 1 deletion components/ui/dropdown-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"use client"

import * as React from "react"

import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
import {
CheckIcon,
ChevronRightIcon,
DotFilledIcon,
} from "@radix-ui/react-icons"
import * as React from "react"

import { cn } from "@/lib/utils"

Expand Down
3 changes: 2 additions & 1 deletion components/ui/label.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use client'

import * as LabelPrimitive from '@radix-ui/react-label'
import { VariantProps, cva } from 'class-variance-authority'
import * as React from 'react'

import * as LabelPrimitive from '@radix-ui/react-label'

import { cn } from '@/lib/utils'

const labelVariants = cva(
Expand Down
6 changes: 4 additions & 2 deletions components/ui/navigation-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'
import { cva } from 'class-variance-authority'
import { ChevronDown } from 'lucide-react'
import * as React from 'react'

import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'
import { ChevronDown } from 'lucide-react'


import { cn } from '@/lib/utils'

const NavigationMenu = React.forwardRef<
Expand Down
3 changes: 2 additions & 1 deletion components/ui/popover.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"use client"

import * as PopoverPrimitive from "@radix-ui/react-popover"
import * as React from "react"

import * as PopoverPrimitive from "@radix-ui/react-popover"

import { cn } from "@/lib/utils"

const Popover = PopoverPrimitive.Root
Expand Down
3 changes: 2 additions & 1 deletion components/ui/separator.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use client'

import * as SeparatorPrimitive from '@radix-ui/react-separator'
import * as React from 'react'

import * as SeparatorPrimitive from '@radix-ui/react-separator'

import { cn } from '@/lib/utils'

const Separator = React.forwardRef<
Expand Down
3 changes: 2 additions & 1 deletion components/ui/tabs.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use client'

import * as TabsPrimitive from '@radix-ui/react-tabs'
import * as React from 'react'

import * as TabsPrimitive from '@radix-ui/react-tabs'

import { cn } from '@/lib/utils'

const Tabs = TabsPrimitive.Root
Expand Down
3 changes: 2 additions & 1 deletion components/ui/tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"use client"

import * as TabsPrimitive from "@radix-ui/react-tabs"
import * as React from "react"

import * as TabsPrimitive from "@radix-ui/react-tabs"

import { cn } from "@/lib/utils"

const Tabs = TabsPrimitive.Root
Expand Down
1 change: 1 addition & 0 deletions lib/highlightCode.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import clsx from 'clsx';

import { useTheme } from 'next-themes';
import Highlight, { defaultProps } from 'prism-react-renderer';
import Prism from 'prism-react-renderer/prism';
Expand Down
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@docsearch/css": "^3.5.2",
"@docsearch/react": "^3.5.2",
"@faustwp/blocks": "^4.0.0",
"@faustwp/cli": "^3.0.3",
"@faustwp/cli": "^3.0.2",
"@faustwp/core": "^3.0.3",
"@graphiql/react": "^0.20.2",
"@graphiql/toolkit": "^0.9.1",
Expand Down Expand Up @@ -53,7 +53,7 @@
"focus-visible": "^5.2.0",
"framer-motion": "7.8.1",
"glob": "^11.0.0",
"glob-promise": "^6.0.7",
"glob-promise": "^8.0.3",
"graphiql": "^3.0.9",
"graphql": "^16.6.0",
"graphql-ws": "^5.14.2",
Expand Down Expand Up @@ -109,9 +109,5 @@
"prettier-plugin-tailwindcss": "^0.5.5",
"typescript": "^5.5.4"
},
"packageManager": "[email protected]",
"resolutions": {
"@faustwp/cli": "portal:/Users/jason.bahl/Sites/libs/faustjs/packages/faustwp-cli",
"@faustwp/core": "portal:/Users/jason.bahl/Sites/libs/faustjs/packages/faustwp-core"
}
"packageManager": "[email protected]"
}
3 changes: 2 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import '@/faust.config'
import React from 'react'

import { WordPressBlocksProvider } from '@faustwp/blocks'
import { FaustProvider } from '@faustwp/core'
import Head from 'next/head'
import React from 'react'

import 'focus-visible'
import '@/styles/tailwind.css'
Expand Down
3 changes: 2 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import defaultTheme from 'tailwindcss/defaultTheme';

import aspectRatio from '@tailwindcss/aspect-ratio';
import typography from '@tailwindcss/typography';
import defaultTheme from 'tailwindcss/defaultTheme';

const tailwindConfig = {
content: [
Expand Down
3 changes: 2 additions & 1 deletion wp-blocks/AcfFieldTypeConfigurationBlock.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { gql } from '@apollo/client';
import React, { useState, useEffect } from 'react';

import { gql } from '@apollo/client';

import { Card, CardHeader } from '@/components/ui/card';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
import { HighlightCode } from '@/lib/highlightCode';
Expand Down
3 changes: 2 additions & 1 deletion wp-blocks/AcfFieldTypeSettingsBlock.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { gql } from '@apollo/client';
import React, { useState } from 'react';

import { gql } from '@apollo/client';

import { Button } from "@/components/ui/button";
import { Card, CardFooter, CardHeader } from "@/components/ui/card";

Expand Down
3 changes: 2 additions & 1 deletion wp-blocks/AcfGraphqlQuery.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';

import { gql } from '@apollo/client';
import { getGraphqlEndpoint } from '@faustwp/core';
import dynamic from 'next/dynamic';
import React from 'react';

const MiniGraphiQL = dynamic(
() => import('@/components/MiniGraphiQL'),
Expand Down
3 changes: 2 additions & 1 deletion wp-blocks/CoreCode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { CoreBlocks } from '@faustwp/blocks'
import slugify from '@sindresorhus/slugify'

import { CoreBlocks } from '@faustwp/blocks'
const { CoreCode: FaustCoreCode } = CoreBlocks

export function CoreCode(props) {
Expand Down
3 changes: 2 additions & 1 deletion wp-blocks/CoreHeading.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { CoreBlocks } from '@faustwp/blocks'
import slugify from '@sindresorhus/slugify'

import { CoreBlocks } from '@faustwp/blocks'
const { CoreHeading: FaustCoreHeading } = CoreBlocks

export function CoreHeading(props) {
Expand Down
2 changes: 1 addition & 1 deletion wp-blocks/CoreQuote.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CoreBlocks } from "@faustwp/blocks";
import {gql} from "@apollo/client";
import { CoreBlocks } from "@faustwp/blocks";
const { CoreQuote: FaustCoreQuote } = CoreBlocks;

export function CoreQuote(props) {
Expand Down

0 comments on commit f69d6df

Please sign in to comment.