-
Notifications
You must be signed in to change notification settings - Fork 31
prettierd does not work prettier-plugin-package #921
Copy link
Copy link
Open
Description
I installed prettier-plugin-package already:
{
"dependencies": {
"@tailwindcss/postcss": "^4.1.11",
"next": "^15.4.6",
"postcss": "^8.5.6",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tailwindcss": "^4.1.11"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"devDependencies": {
"@eslint/js": "^9.33.0",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/node": "24.2.1",
"@types/react": "19.1.9",
"eslint": "^9.33.0",
"eslint-config-next": "15.4.6",
"eslint-plugin-react": "^7.37.5",
"globals": "^16.3.0",
"prettier-plugin-package": "^2.0.0",
"typescript": "5.9.2",
"typescript-eslint": "^8.39.0"
}
}
prettier works well, while prettierd does not:
~/P/ci master ✚3≢3* cat package.json | prettierd a.json
{
"dependencies": {
"@tailwindcss/postcss": "^4.1.11",
"next": "^15.4.6",
"postcss": "^8.5.6",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tailwindcss": "^4.1.11"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"devDependencies": {
"@eslint/js": "^9.33.0",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/node": "24.2.1",
"@types/react": "19.1.9",
"eslint": "^9.33.0",
"eslint-config-next": "15.4.6",
"eslint-plugin-react": "^7.37.5",
"globals": "^16.3.0",
"prettier-plugin-package": "^2.0.0",
"typescript": "5.9.2",
"typescript-eslint": "^8.39.0"
}
}
~/P/ci master ✚3≢3* prettier package.json
{
"scripts": {
"build": "next build",
"dev": "next dev",
"lint": "next lint",
"start": "next start"
},
"dependencies": {
"@tailwindcss/postcss": "^4.1.11",
"next": "^15.4.6",
"postcss": "^8.5.6",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tailwindcss": "^4.1.11"
},
"devDependencies": {
"@eslint/js": "^9.33.0",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/node": "24.2.1",
"@types/react": "19.1.9",
"eslint": "^9.33.0",
"eslint-config-next": "15.4.6",
"eslint-plugin-react": "^7.37.5",
"globals": "^16.3.0",
"prettier-plugin-package": "^2.0.0",
"typescript": "5.9.2",
"typescript-eslint": "^8.39.0"
}
}
Because prettierd does not sort top-levels keys as expected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels