diff --git a/.eslintrc.js b/.eslintrc.js index 7d99f25..dddb1de 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,7 +3,7 @@ module.exports = { "browser": true, "es2021": true }, - "extends": "standard-with-typescript", + "extends": ["standard-with-typescript", "prettier"], "parserOptions": { "ecmaVersion": "latest", "sourceType": "module" diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..9ad9a45 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "singleQuote": true, + "semi": true, + "useTabs": false, + "tabWidth": 2, + "trailingComma": "all", + "printWidth": 80, + "bracketSpacing": true, + "arrowParens": "always", + "endOfLine": "auto" +} diff --git a/package.json b/package.json index f79041d..983fa0b 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "dependencies": { "@commitlint/cli": "^18.4.3", "@commitlint/config-conventional": "^18.4.3", + "eslint-config-prettier": "^9.1.0", "next": "14.0.3", "react": "^18", "react-dom": "^18" diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 98e32d3..6362ecf 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -2,7 +2,7 @@ import { Inter } from 'next/font/google' const inter = Inter({ subsets: ['latin'] }) -export default function Home (): JSX.Element { +export default function Home(): JSX.Element { return (