File tree 3 files changed +24
-16
lines changed
3 files changed +24
-16
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "editor.formatOnSave" : false ,
3
+ "editor.codeActionsOnSave" : {
4
+ "source.fixAll.eslint" : true
5
+ }
6
+ }
Original file line number Diff line number Diff line change 1
- import '../styles/globals.css'
1
+ import { FC } from 'react' ;
2
+ import { AppProps } from 'next/app' ;
3
+ import '../styles/globals.css' ;
2
4
3
- function MyApp ( { Component, pageProps } ) {
4
- return < Component { ...pageProps } />
5
- }
5
+ const MyApp : FC < AppProps > = ( { Component, pageProps } : AppProps ) => {
6
+ return < Component { ...pageProps } /> ;
7
+ } ;
6
8
7
- export default MyApp
9
+ export default MyApp ;
Original file line number Diff line number Diff line change 1
- import Head from 'next/head'
2
- import styles from '../styles/Home.module.css'
1
+ import { NextPage } from 'next' ;
2
+ import Head from 'next/head' ;
3
+ import styles from '../styles/Home.module.css' ;
3
4
4
- export default function Home ( ) {
5
+ const Home : NextPage = ( ) => {
5
6
return (
6
7
< div className = { styles . container } >
7
8
< Head >
@@ -32,16 +33,14 @@ export default function Home() {
32
33
33
34
< a
34
35
href = "https://github.com/vercel/next.js/tree/master/examples"
35
- className = { styles . card }
36
- >
36
+ className = { styles . card } >
37
37
< h3 > Examples →</ h3 >
38
38
< p > Discover and deploy boilerplate example Next.js projects.</ p >
39
39
</ a >
40
40
41
41
< a
42
42
href = "https://vercel.com/new?utm_source=create-next-app& utm_medium = default - template & utm_campaign = create - next - app "
43
- className = { styles . card }
44
- >
43
+ className = { styles . card } >
45
44
< h3 > Deploy →</ h3 >
46
45
< p >
47
46
Instantly deploy your Next.js site to a public URL with Vercel.
@@ -54,12 +53,13 @@ export default function Home() {
54
53
< a
55
54
href = "https://vercel.com?utm_source=create-next-app& utm_medium = default - template & utm_campaign = create - next - app "
56
55
target = "_blank"
57
- rel = "noopener noreferrer"
58
- >
56
+ rel = "noopener noreferrer" >
59
57
Powered by{ ' ' }
60
58
< img src = "/vercel.svg" alt = "Vercel Logo" className = { styles . logo } />
61
59
</ a >
62
60
</ footer >
63
61
</ div >
64
- )
65
- }
62
+ ) ;
63
+ } ;
64
+
65
+ export default Home ;
You can’t perform that action at this time.
0 commit comments