diff --git a/.eslintrc.json b/.eslintrc.json index bffb357a7..669b40043 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,12 @@ { - "extends": "next/core-web-vitals" + "plugins": ["@typescript-eslint"], + "extends": [ + "next/core-web-vitals", + "plugin:@typescript-eslint/recommended", + "prettier" + ], + "rules": { + "@typescript-eslint/no-unused-vars": "warn", + "@typescript-eslint/ban-types": "warn" + } } diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 000000000..2fd08941b --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,7 @@ +{ + "semi": false, + "trailingComma": "es5", + "singleQuote": true, + "tabWidth": 2, + "useTabs": false +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..6ab3a543b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" +} diff --git a/components/Footer/Footer.tsx b/components/Footer/Footer.tsx index 1ec0b2668..41eb5fdb0 100644 --- a/components/Footer/Footer.tsx +++ b/components/Footer/Footer.tsx @@ -1,9 +1,9 @@ import Link from "next/link"; import type { FC } from "react"; -interface FooterProps {} -export const Footer: FC = ({}) => { + +export const Footer: FC = () => { return (