Skip to content

Commit ea33dff

Browse files
committed
chore: updat eslint rules + add font style
1 parent 4fe0a83 commit ea33dff

File tree

4 files changed

+43
-5
lines changed

4 files changed

+43
-5
lines changed

.eslintrc.json

+32-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,37 @@
3838
"react/destructuring-assignment": [2, "always"],
3939
"react/button-has-type": 2,
4040
"react/no-array-index-key": 2,
41-
"import/order": 2
41+
"import/order": 2,
42+
"semi": [2, "always"],
43+
"quotes": [2, "double"],
44+
"prefer-destructuring": [
45+
2,
46+
{
47+
"VariableDeclarator": {
48+
"array": false,
49+
"object": true
50+
},
51+
"AssignmentExpression": {
52+
"array": true,
53+
"object": false
54+
}
55+
},
56+
{
57+
"enforceForRenamedProperties": false
58+
}
59+
],
60+
"object-curly-spacing": [2, "always"],
61+
"arrow-body-style": [2, "as-needed"],
62+
"arrow-parens": [2, "always"],
63+
"space-infix-ops": 2,
64+
"arrow-spacing": [2, { "before": true, "after": true }],
65+
"no-unused-vars": [2, { "args": "all", "argsIgnorePattern": "_" }],
66+
"guard-for-in": 2,
67+
"no-await-in-loop": 2,
68+
"indent": [2, 2],
69+
"object-curly-newline": [2, { "minProperties": 4, "consistent": true }],
70+
"brace-style": 2,
71+
"no-multiple-empty-lines": 2,
72+
"eol-last": [2, "always"]
4273
}
4374
}

.github/workflows/preview.yml

-2
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@ jobs:
2727
message: |
2828
Preview URL ${{ steps.preview-deploy.outputs.URL }}
2929
comment_tag: execution
30-
31-

.prettierignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ coverage
88
**/out/*
99
next-env.d.ts
1010
next.config.js
11-
*.md
11+
*.md
12+
.github/**

src/app/layout.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
import "./globals.css";
22
import type { Metadata } from "next";
3+
import { Inter } from "next/font/google";
34
import { StoreProvider } from "@/components";
45

56
export const metadata: Metadata = {
67
title: "Create Next App",
78
description: "Generated by create next app",
89
};
910

11+
// If loading a variable font, you don't need to specify the font weight
12+
const inter = Inter({
13+
weight: ["400", "500", "600", "700"],
14+
subsets: ["latin"],
15+
display: "swap",
16+
});
17+
1018
export default function RootLayout({
1119
children,
1220
}: {
1321
children: React.ReactNode;
1422
}) {
1523
return (
16-
<html lang="en">
24+
<html lang="en" className={inter.className}>
1725
<body>
1826
<StoreProvider>{children}</StoreProvider>
1927
</body>

0 commit comments

Comments
 (0)