diff --git a/.eslintrc.json b/.eslintrc.json index bffb357..4d765f2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,3 @@ { - "extends": "next/core-web-vitals" + "extends": ["next/core-web-vitals", "prettier"] } diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..7019544 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,9 @@ +.next +.cache +package-lock.json +public +node_modules +next-env.d.ts +next.config.ts +bun.lockb +pnpm-lock-bk.yaml \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..f5a575d --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "trailingComma": "es5", + "semi": true, + "tabWidth": 2, + "singleQuote": true, + "jsxSingleQuote": true, + "plugins": ["prettier-plugin-tailwindcss"] +} diff --git a/package.json b/package.json index dff2b12..1b890ee 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,9 @@ } }, "devDependencies": { - "@netlify/plugin-nextjs": "^4.40.1" + "@netlify/plugin-nextjs": "^4.40.1", + "eslint-config-prettier": "^9.0.0", + "prettier": "^3.0.3", + "prettier-plugin-tailwindcss": "^0.5.6" } }