dev-resources.site
for different kinds of informations.
Setup Prettier Pada Nextjs Tailwind Project
Published at
8/1/2024
Categories
tailwindcss
nextjs
prettier
eslint
Author
saepulmalik27
Author
13 person written this
saepulmalik27
open
Biasanya ketika saya membuat project saya selalu menggunalan auto formater, untuk membuat code saya terformat dengan baik. formater yang biasa saya gunakan adalah Prettier, dan berikut ini langkah langkah setup Prettier pada Project Nextjs tailwind
- Install Package
npm install -D prettier eslint-config-prettier eslint-plugin-prettier prettier-plugin-tailwindcss
- Tambahkan Script ini pada file
.eslintrc.json
{
"extends": ["next/core-web-vitals", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier":[ "warn",
{
"endOfLine": "auto"
}]
}
}
- tambahkan file
.prettierrc.json
di root project kemudian tambahkan masukan format prettier yang dibutuhkan, contoh :
{
"trailingComma": "es5",
"semi": true,
"tabWidth": 2,
"singleQuote": true,
"jsxSingleQuote": true,
"plugins": ["prettier-plugin-tailwindcss"]
}
eslint Article's
30 articles in total
Just use this Next.js Eslint Configuration
read article
3. How to setup Jest in a Next 15 project (+ eslint for testing)
read article
Do me lint! 🙋♂️ An easy way to setup ESLint in any project.
read article
Restricting some syntax with ESLint
read article
Beyond Spellcheck: How Static Analysis Tools Enhance Collaboration in Coding
read article
ESlint 9
read article
How to Fix Common ESLint Errors: Troubleshooting Unknown or Strange Issues
read article
Incrementally fixing lots of ESlint errors in a clean way with ESlint Nibble
read article
Setup Eslint Prettier in a TypeScript project with mongoose ODM
read article
Vue3 + ESLint 9.13.0 + Prettier +TypeScript and VSCode Autoformat on Save
read article
Configurando un proyecto de React para producción
read article
Configurando Prettier, ESLint y Husky en Angular
read article
Eslint Code Insights from Bitbucket pipelines
read article
How to get ESLint 9.11.1 to run in Vue 3
read article
Cómo hacer que ESLint 9.11.1 funcione en Vue 3
read article
Performing Maintenance Task For A Large Codebase
read article
Setup Prettier Pada Nextjs Tailwind Project
currently reading
“Eslint-Summary” — Hack your Eslint Config
read article
Regras customizáveis para Prettier + Eslint em React
read article
Useful VS Code Extensions for JS
read article
ESLint 9 Flat config tutorial
read article
ESLint x Prettier: The Right Way To Start A JavaScript Project
read article
How to Set Up ESLint and Prettier in a TypeScript Project
read article
Customizable rules for Prettier + Eslint in React
read article
How to set up Eslint and prettier
read article
Configure Eslint, Prettier and show eslint warning into running console vite react typescript project
read article
Building Vue3 Component Library from Scratch #11 ESlint + Prettier + Stylelint
read article
Setup Eslint + Prettier for code standardization in React
read article
Setup Eslint + Prettier para padronização de código em React
read article
ESLint Plugin. What was missed in the doc?
read article
Featured ones: