-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from KoheiNishino/feature/set_up_eslint_and_p…
…rettier Feature/set up eslint and prettier
- Loading branch information
Showing
30 changed files
with
1,935 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.next/ | ||
node_modules/ | ||
coverage/ | ||
__snapshots__/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"extends": [ | ||
"airbnb", | ||
"plugin:@typescript-eslint/recommended", | ||
"next/core-web-vitals", | ||
"prettier" | ||
], | ||
"plugins": ["import", "unused-imports"], | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"unused-imports/no-unused-imports": "warn", | ||
"import/extensions": "off", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
["parent", "sibling"], | ||
"object", | ||
"type", | ||
"index" | ||
], | ||
"newlines-between": "always", | ||
"pathGroupsExcludedImportTypes": ["builtin"], | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
} | ||
} | ||
], | ||
"react/jsx-filename-extension": [ | ||
"error", | ||
{ | ||
"extensions": [".jsx", ".tsx"] | ||
} | ||
], | ||
"react/function-component-definition": [ | ||
"error", | ||
{ "namedComponents": "arrow-function" } | ||
], | ||
"react/require-default-props": "off", | ||
"jsx-a11y/anchor-is-valid": [ | ||
"error", | ||
{ | ||
"components": ["Link"], | ||
"specialLink": ["hrefLeft", "hrefRight"], | ||
"aspects": ["invalidHref", "preferButton"] | ||
} | ||
], | ||
"react/jsx-no-useless-fragment": ["error", { "allowExpressions": true }], | ||
"react/jsx-props-no-spreading": "off" | ||
}, | ||
"overrides": [], | ||
"ignorePatterns": ["node_modules"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Ignore artifacts: | ||
build | ||
coverage | ||
|
||
# Ignore all HTML files: | ||
*.html | ||
*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"bracketSpacing": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"name": "", | ||
"short_name": "", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
"name": "", | ||
"short_name": "", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
import Link from 'next/link' | ||
|
||
import { BLOG_RELEASE_YEAR } from '@/lib/constants' | ||
|
||
const Footer = () => { | ||
return ( | ||
<footer className="text-secondary border-t border-solid border-opacity-10"> | ||
<div className="flex flex-col items-center"> | ||
<div className="text-sm md:text-lg py-5"> | ||
<Link href="/policy"> | ||
<a className="hover:underline" >Privacy Policy</a> | ||
</Link> | ||
</div> | ||
<div className="text-sm md:text-lg pb-5"> | ||
© {BLOG_RELEASE_YEAR} Kohei Nishino | ||
</div> | ||
const Footer = () => ( | ||
<footer className="text-secondary border-t border-solid border-opacity-10"> | ||
<div className="flex flex-col items-center"> | ||
<div className="text-sm md:text-lg py-5"> | ||
<Link href="/policy"> | ||
<a className="hover:underline">Privacy Policy</a> | ||
</Link> | ||
</div> | ||
<div className="text-sm md:text-lg pb-5"> | ||
© {BLOG_RELEASE_YEAR} Kohei Nishino | ||
</div> | ||
</footer> | ||
) | ||
} | ||
</div> | ||
</footer> | ||
) | ||
|
||
export default Footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Script from 'next/script' | ||
|
||
import { GA_TRACKING_ID } from '@/lib/gtag' | ||
|
||
const GoogleAnalytics = () => ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import Link from 'next/link' | ||
|
||
import { BLOG_TITLE } from '@/lib/constants' | ||
|
||
const Header = () => { | ||
return ( | ||
<h2 className="text-2xl md:text-4xl font-bold tracking-tight md:tracking-tighter leading-tight mb-16 mt-8 mx-auto text-center sm:text-left"> | ||
<Link href="/"> | ||
<a>{BLOG_TITLE}</a> | ||
</Link> | ||
</h2> | ||
) | ||
} | ||
const Header = () => ( | ||
<h2 className="text-2xl md:text-4xl font-bold tracking-tight md:tracking-tighter leading-tight mb-16 mt-8 mx-auto text-center sm:text-left"> | ||
<Link href="/"> | ||
<a>{BLOG_TITLE}</a> | ||
</Link> | ||
</h2> | ||
) | ||
|
||
export default Header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,5 @@ | |
} | ||
|
||
.markdown p { | ||
@apply whitespace-pre-wrap | ||
@apply whitespace-pre-wrap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,42 @@ | ||
import Head from 'next/head' | ||
|
||
import { BLOG_TITLE, BLOG_DESCRIPTION, BLOG_URL } from '@/lib/constants' | ||
|
||
const Meta = () => { | ||
return ( | ||
<Head> | ||
<title>{BLOG_TITLE}</title> | ||
<meta name="description" content={BLOG_DESCRIPTION} /> | ||
<meta property="og:url" content={BLOG_URL} /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content={BLOG_TITLE} /> | ||
<meta property="og:description" content={BLOG_DESCRIPTION} /> | ||
<meta property="og:site_name" content={BLOG_TITLE} /> | ||
<meta property="og:image" content={`${BLOG_URL}assets/og-image.jpeg`} /> | ||
<meta name="msapplication-TileColor" content="#000" /> | ||
<meta name="msapplication-config" content="/favicon/browserconfig.xml" /> | ||
<meta name="theme-color" content="#000" /> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png" /> | ||
<link rel="manifest" href="/favicon/site.webmanifest" /> | ||
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#000" /> | ||
<link rel="shortcut icon" href="/favicon/favicon.ico" /> | ||
<link rel="alternate" type="application/rss+xml" href="/feed.xml" /> | ||
</Head> | ||
) | ||
} | ||
const Meta = () => ( | ||
<Head> | ||
<title>{BLOG_TITLE}</title> | ||
<meta name="description" content={BLOG_DESCRIPTION} /> | ||
<meta property="og:url" content={BLOG_URL} /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content={BLOG_TITLE} /> | ||
<meta property="og:description" content={BLOG_DESCRIPTION} /> | ||
<meta property="og:site_name" content={BLOG_TITLE} /> | ||
<meta property="og:image" content={`${BLOG_URL}assets/og-image.jpeg`} /> | ||
<meta name="msapplication-TileColor" content="#000" /> | ||
<meta name="msapplication-config" content="/favicon/browserconfig.xml" /> | ||
<meta name="theme-color" content="#000" /> | ||
<link | ||
rel="apple-touch-icon" | ||
sizes="180x180" | ||
href="/favicon/apple-touch-icon.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="32x32" | ||
href="/favicon/favicon-32x32.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="16x16" | ||
href="/favicon/favicon-16x16.png" | ||
/> | ||
<link rel="manifest" href="/favicon/site.webmanifest" /> | ||
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#000" /> | ||
<link rel="shortcut icon" href="/favicon/favicon.ico" /> | ||
<link rel="alternate" type="application/rss+xml" href="/feed.xml" /> | ||
</Head> | ||
) | ||
|
||
export default Meta |
Oops, something went wrong.
7e61bac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextjs-blog – ./
nextjs-blog-koheinishino.vercel.app
nextjs-blog-git-main-koheinishino.vercel.app
www.koheinishino.com
koheinishino.com