Skip to content

Commit

Permalink
chore: updat eslint rules + add font style
Browse files Browse the repository at this point in the history
  • Loading branch information
marktlinn committed Aug 27, 2023
1 parent 8270542 commit 9b68f49
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
33 changes: 32 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,37 @@
"react/destructuring-assignment": [2, "always"],
"react/button-has-type": 2,
"react/no-array-index-key": 2,
"import/order": 2
"import/order": 2,
"semi": [2, "always"],
"quotes": [2, "double"],
"prefer-destructuring": [
2,
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": false
}
},
{
"enforceForRenamedProperties": false
}
],
"object-curly-spacing": [2, "always"],
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "always"],
"space-infix-ops": 2,
"arrow-spacing": [2, { "before": true, "after": true }],
"no-unused-vars": [2, { "args": "all", "argsIgnorePattern": "_" }],
"guard-for-in": 2,
"no-await-in-loop": 2,
"indent": [2, 2],
"object-curly-newline": [2, { "minProperties": 4, "consistent": true }],
"brace-style": 2,
"no-multiple-empty-lines": 2,
"eol-last": [2, "always"]
}
}
2 changes: 0 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ jobs:
message: |
Preview URL ${{ steps.preview-deploy.outputs.URL }}
comment_tag: execution


3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ coverage
**/out/*
next-env.d.ts
next.config.js
*.md
*.md
.github/**
10 changes: 9 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
import "./globals.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { StoreProvider } from "@/components";

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

// If loading a variable font, you don't need to specify the font weight
const inter = Inter({
weight: ["400", "500", "600", "700"],
subsets: ["latin"],
display: "swap",
});

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<html lang="en" className={inter.className}>
<body>
<StoreProvider>{children}</StoreProvider>
</body>
Expand Down

0 comments on commit 9b68f49

Please sign in to comment.