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
[START][2023-09-10 09:23:55] LSP logging initiated | |
[INFO][2023-09-10 09:23:55] .../lua/vim/lsp.lua:1876 "exit_handler" {} | |
[START][2023-09-10 09:24:34] LSP logging initiated | |
[INFO][2023-09-10 09:24:34] .../lua/vim/lsp.lua:1876 "exit_handler" {} | |
[START][2023-09-10 09:24:36] LSP logging initiated | |
[INFO][2023-09-10 09:24:36] .../lua/vim/lsp.lua:1876 "exit_handler" {} | |
[START][2023-09-10 09:24:53] LSP logging initiated | |
[INFO][2023-09-10 09:24:53] .../lua/vim/lsp.lua:1876 "exit_handler" {} | |
[START][2023-09-10 09:24:55] LSP logging initiated | |
[INFO][2023-09-10 09:24:55] .../lua/vim/lsp.lua:1876 "exit_handler" {} |
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
import { GetStaticPaths, GetStaticProps, NextPage } from 'next'; | |
interface Project { | |
title: string; | |
id: number; | |
} | |
interface IPageProps { | |
projects: Project[]; | |
author: string; |
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
const Page = () => { | |
return ( | |
<div> | |
<span>This is just a page.</span> | |
</div> | |
}; | |
export defualt Page; |
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
const eslintConfig = { | |
extends: "next/core-web-vitals", | |
rules: { | |
"react-hooks/exhaustive-deps": "off" | |
} | |
}; | |
module.exports = eslintConfig; |
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
const prettierConfig = { | |
arrowParens: "avoid", | |
singleQuote: false, | |
bracketSpacing: true, | |
endOfLine: "lf", | |
semi: true, | |
tabWidth: 2, | |
useTabs: false, | |
trailingComma: "none" | |
}; |
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
{ | |
"name": "", | |
"description": "", | |
"author": "Cattynip", | |
"version": "0.1.0", | |
"private": true, | |
"scripts": { | |
"format": "next lint && yarn eslint . --fix && yarn prettier --write . && npx prisma format" | |
}, | |
"dependencies": { |
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
interface IComponentProps { | |
name: string; | |
id: number; | |
} | |
const Component = ({name, id}: IComponentProps) => { | |
return ( | |
<div> | |
<span>Hello World!</span> | |
<p>Nice to meet you, {name}.</p> |