When I save a file in my NextJS 14 workspace, Prettier does not format the file, like it does in other projects. I got the Prettier plugin installed.
This is my package.json devDependencies:
"devDependencies": { "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", "autoprefixer": "^10.0.1", "eslint": "^8.57.0", "eslint-config-next": "14.1.0", "eslint-config-prettier": "^9.1.0", "postcss": "^8", "prettier": "^3.2.5", "tailwindcss": "^3.3.0", "typescript": "^5" }
This is my .prettierrc:
{ "trailingComma": "all", "singleQuote": true, "printWidth": 100, "useTabs": false, "tabWidth": 2, "endOfLine": "auto" }
This is my .eslintrc
{ "extends": ["next", "prettier"] }
This is my tsconfig.json
{ "compilerOptions": { "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, "noEmit": true, "esModuleInterop": true, "module": "esnext", "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", "incremental": true, "plugins": [ { "name": "next" } ], "paths": { "@/*": ["./*"] } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] }
What could be the reason it does not format on save, like other workspaces do?