This repo is a reproduction of a bug in prettier-plugin-tailwindcss, where @ianvs/prettier-plugin-sort-imports is not supported despite using the correct plugin ordering.
yarn install
src/main.jsx
- for example, moving underline
before font-bold
yarn format
and verify that the previous ordering is restoredreact-dom
before react
yarn format
and verify that the import order is (incorrectly) not restoredprettier-plugin-tailwindcss
from the plugins array in prettier.config.cjs
prettier.config.js
with a new .prettierrc
file with the following contents:{
"plugins": [
"@ianvs/prettier-plugin-sort-imports",
"prettier-plugin-tailwindcss"
],
"pluginSearchDirs": false,
"singleQuote": true
}