Skip to content

Commit fc1b581

Browse files
committed
Set up next lint
1 parent 114b31d commit fc1b581

File tree

4 files changed

+304
-572
lines changed

4 files changed

+304
-572
lines changed

.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,11 @@
3333
"@types/node": "^14.14.27",
3434
"@types/node-fetch": "2",
3535
"@types/react": "^17.0.2",
36-
"@typescript-eslint/eslint-plugin": "4.15.0",
37-
"@typescript-eslint/parser": "4.15.0",
3836
"@vercel/build-utils": "^2.15.0",
3937
"@vercel/frameworks": "^0.2.0",
4038
"@vercel/routing-utils": "^1.9.2",
41-
"eslint": "7.19.0",
42-
"eslint-config-airbnb": "18.2.1",
43-
"eslint-config-prettier": "7.2.0",
44-
"eslint-import-resolver-typescript": "2.3.0",
45-
"eslint-plugin-import": "2.22.1",
46-
"eslint-plugin-jsx-a11y": "6.4.1",
47-
"eslint-plugin-react": "7.22.0",
39+
"eslint": "8.12.0",
40+
"eslint-config-next": "12.1.4",
4841
"next": "^12.1.0",
4942
"react": "^17.0.1",
5043
"react-dom": "^17.0.1",

pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function getStaticProps() {
99
return { props: { examples } };
1010
}
1111

12-
export default ({ examples }) => {
12+
export default function Index ({ examples }) {
1313
return (
1414
<div>
1515
<p>Hello from Bash, powered by Vercel!</p>

0 commit comments

Comments
 (0)