diff --git a/.prettierignore b/.prettierignore index b3bee9576..14e3dce0c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -19,3 +19,5 @@ npm-debug.log* lerna-debug.log* /**/*.tgz /.github + +playground/.next/ diff --git a/library/src/helpers/specification.ts b/library/src/helpers/specification.ts index 2fb09e48b..fd27be001 100644 --- a/library/src/helpers/specification.ts +++ b/library/src/helpers/specification.ts @@ -85,7 +85,6 @@ export class SpecificationHelpers { */ static serversTags(spec: AsyncAPIDocumentInterface) { const tags: Record = {}; - Object.entries(spec.servers()).forEach(([_, server]) => { if (server.tags().length > 0) { server diff --git a/playground/app/layout.tsx b/playground/app/layout.tsx index 5e7904265..86b72c916 100644 --- a/playground/app/layout.tsx +++ b/playground/app/layout.tsx @@ -1,11 +1,11 @@ -import type { Metadata } from "next"; -import { Inter } from "next/font/google"; -import "./globals.css"; +import { Metadata } from 'next'; +import { Inter } from 'next/font/google'; +import './globals.css'; -const inter = Inter({ subsets: ["latin"] }); +const inter = Inter({ subsets: ['latin'] }); export const metadata: Metadata = { - title: "AsyncAPI React Playground App", + title: 'AsyncAPI React Playground App', }; export default function RootLayout({ diff --git a/playground/components/Navigation.tsx b/playground/components/Navigation.tsx index bdd8ea18f..371c2ed04 100644 --- a/playground/components/Navigation.tsx +++ b/playground/components/Navigation.tsx @@ -9,23 +9,21 @@ import { NavigationHeaderEditorText, } from './styled'; -const NavigationComponent = () => { - return ( - - - - - - AsyncAPI React - - editor - - - - ); -}; +const NavigationComponent = () => ( + + + + + + AsyncAPI React + + editor + + + +); export default NavigationComponent; diff --git a/playground/tailwind.config.ts b/playground/tailwind.config.ts index 35ba2d074..7aeb5d15c 100644 --- a/playground/tailwind.config.ts +++ b/playground/tailwind.config.ts @@ -1,10 +1,10 @@ -import type { Config } from "tailwindcss"; +import { Config } from 'tailwindcss'; const config: Config = { content: [ - "./pages/**/*.{js,ts,jsx,tsx,mdx}", - "./components/**/*.{js,ts,jsx,tsx,mdx}", - "./app/**/*.{js,ts,jsx,tsx,mdx}", + './pages/**/*.{js,ts,jsx,tsx,mdx}', + './components/**/*.{js,ts,jsx,tsx,mdx}', + './app/**/*.{js,ts,jsx,tsx,mdx}', ], theme: { extend: {},