diff --git a/index.js b/index.js index 58ccb924..e6be9fb0 100644 --- a/index.js +++ b/index.js @@ -84,6 +84,6 @@ function isMatched(str) { return matches; } -function commentCheck(){ - console.log("no comment") +function commentCheck() { + console.log("no comment"); } diff --git a/packages/demo-next/next.config.js b/packages/demo-next/next.config.js index 0d607100..da1bb770 100644 --- a/packages/demo-next/next.config.js +++ b/packages/demo-next/next.config.js @@ -1,3 +1,3 @@ module.exports = { reactStrictMode: true, -} +}; diff --git a/packages/demo-next/pages/NavComponent.js b/packages/demo-next/pages/NavComponent.js index 2f65b471..459c2f43 100644 --- a/packages/demo-next/pages/NavComponent.js +++ b/packages/demo-next/pages/NavComponent.js @@ -1,21 +1,21 @@ -import Link from 'next/link' -import styled from 'styled-components' +import Link from "next/link"; +import styled from "styled-components"; import { Head } from "next/document"; /** next-link-passhref */ const RedLink = styled.a` color: red; -` +`; function NavLink({ href, name }) { // Must add passHref to Link return ( {name} - ) + ); } -export default NavLink +export default NavLink; /** next-no-css-tags */ export class NavBar extends Head { @@ -29,8 +29,6 @@ export class NavBar extends Head { } } - - /** no-title-in-document-head */ export class NavMenu { render() { @@ -42,7 +40,6 @@ export class NavMenu { } } - /** no-unwanted-polyfillio */ export class NavCard extends Head { render() { diff --git a/packages/demo-next/pages/TestComponent.js b/packages/demo-next/pages/TestComponent.js index a1d5989d..b46e30a3 100644 --- a/packages/demo-next/pages/TestComponent.js +++ b/packages/demo-next/pages/TestComponent.js @@ -12,7 +12,6 @@ export default Test = () => { ); }; - /** next-google-font-preconnect */ export const TestTwo = () => (
@@ -20,20 +19,19 @@ export const TestTwo = () => (
); - /** no-page-custom-font */ export function IndexPage() { - return ( -
- - - -

Hello world!

-
- ) + return ( +
+ + + +

Hello world!

+
+ ); } /** no-sync-scripts */ @@ -43,6 +41,5 @@ export const Home = () => {
Home Page
- ) -} - + ); +}; diff --git a/packages/demo-next/pages/TextComponent.js b/packages/demo-next/pages/TextComponent.js index 0d5b5ccf..36e1b1ea 100644 --- a/packages/demo-next/pages/TextComponent.js +++ b/packages/demo-next/pages/TextComponent.js @@ -1,15 +1,15 @@ -import Document from "next/document" +import Document from "next/document"; /** next-no-document-import-in-page */ export const Text = () => ( -

- Test - About Us - Landscape picture -

-) +

+ Test + About Us + Landscape picture +

+); diff --git a/packages/demo-next/pages/_app.js b/packages/demo-next/pages/_app.js index 1e1cec92..2fc3e070 100644 --- a/packages/demo-next/pages/_app.js +++ b/packages/demo-next/pages/_app.js @@ -1,7 +1,7 @@ -import '../styles/globals.css' +import "../styles/globals.css"; function MyApp({ Component, pageProps }) { - return + return ; } -export default MyApp +export default MyApp; diff --git a/packages/demo-next/pages/_document.js b/packages/demo-next/pages/_document.js index 44b39477..90d2e4ad 100644 --- a/packages/demo-next/pages/_document.js +++ b/packages/demo-next/pages/_document.js @@ -1,7 +1,6 @@ import Document, { Html, Main, NextScript } from "next/document"; import Head from "next/head"; - /** no-head-import-in-document */ class MyDocument extends Document { render() { diff --git a/packages/demo-next/pages/index.js b/packages/demo-next/pages/index.js index 08145bba..72aadb5c 100644 --- a/packages/demo-next/pages/index.js +++ b/packages/demo-next/pages/index.js @@ -1,6 +1,6 @@ -import Head from 'next/head' -import Image from 'next/image' -import styles from '../styles/Home.module.css' +import Head from "next/head"; +import Image from "next/image"; +import styles from "../styles/Home.module.css"; export default function Home() { return ( @@ -17,7 +17,7 @@ export default function Home() {

- Get started by editing{' '} + Get started by editing{" "} pages/index.js

@@ -58,12 +58,12 @@ export default function Home() { target="_blank" rel="noopener noreferrer" > - Powered by{' '} + Powered by{" "} Vercel Logo - ) + ); } diff --git a/packages/demo-nuxt/README.md b/packages/demo-nuxt/README.md index 44024ec0..042454a6 100644 --- a/packages/demo-nuxt/README.md +++ b/packages/demo-nuxt/README.md @@ -41,7 +41,6 @@ Layouts are a great help when you want to change the look and feel of your Nuxt More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/layouts). - ### `pages` This directory contains your application views and routes. Nuxt will read all the `*.vue` files inside this directory and setup Vue Router automatically. diff --git a/packages/demo-nuxt/components/NuxtLogo.vue b/packages/demo-nuxt/components/NuxtLogo.vue index 970eba0e..f038904c 100644 --- a/packages/demo-nuxt/components/NuxtLogo.vue +++ b/packages/demo-nuxt/components/NuxtLogo.vue @@ -1,6 +1,14 @@ diff --git a/packages/demo-nuxt/components/Tutorial.vue b/packages/demo-nuxt/components/Tutorial.vue index 6440b8fb..4a2491a8 100644 --- a/packages/demo-nuxt/components/Tutorial.vue +++ b/packages/demo-nuxt/components/Tutorial.vue @@ -1,45 +1,115 @@