You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing CRA5, prettier started reporting errors for class names which aren't sorted. Upon inspection, I found this to be caused by the install of prettier-plugin-tailwindcss. This lib is undesirable as it alters the default Prettier config, and because it's installed as a plugin unconfigurable.
In addition, this library is unlicensed, so using it is suspicious legally.
In addition, this library is uglified, so its published code can hardly be reviewed and may be harmful.
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
I searched the entire repo for mentions of the plugin, and did not find anything relevant.
Environment
Environment Info:
current version of create-react-app: 5.0.0
running from /Users/martijnhols/.npm/_npx/c67e74de0542c87c/node_modules/create-react-app
Fixesfacebook#12044
Installing tailwindcss comes with a bunch of junk most people don't need, and at least prettier-plugin-tailwindcss but possibly more subdependecies are unlicensed which makes usage troublesome.
Fixesfacebook#12044
Installing tailwindcss comes with a bunch of junk most people don't need, and at least prettier-plugin-tailwindcss but possibly more subdependecies are unlicensed which makes usage troublesome.
MartijnHols
added a commit
to MartijnHols/create-react-app
that referenced
this issue
Feb 10, 2022
Fixesfacebook#12044
Installing tailwindcss comes with a bunch of junk most people don't need, and at least prettier-plugin-tailwindcss but possibly more subdependecies are unlicensed which makes usage troublesome.
Describe the bug
After installing CRA5, prettier started reporting errors for class names which aren't sorted. Upon inspection, I found this to be caused by the install of prettier-plugin-tailwindcss. This lib is undesirable as it alters the default Prettier config, and because it's installed as a plugin unconfigurable.
In addition, this library is unlicensed, so using it is suspicious legally.
In addition, this library is uglified, so its published code can hardly be reviewed and may be harmful.
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
I searched the entire repo for mentions of the plugin, and did not find anything relevant.
Environment
Environment Info:
current version of create-react-app: 5.0.0
running from /Users/martijnhols/.npm/_npx/c67e74de0542c87c/node_modules/create-react-app
System:
OS: macOS 11.6.2
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Binaries:
Node: 16.10.0 - ~/.nvm/versions/node/v16.10.0/bin/node
Yarn: 1.22.17 - ~/.yarn/bin/yarn
npm: 7.24.0 - ~/.nvm/versions/node/v16.10.0/bin/npm
Browsers:
Chrome: 98.0.4758.80
Edge: Not Found
Firefox: 88.0
Safari: 15.2
npmPackages:
react: ^17.0.2 => 17.0.2
react-dom: ^17.0.2 => 17.0.2
react-scripts: ^5.0.0 => 5.0.0
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
prettier
table table-condensed
which is already sorted as desiredExpected behavior
I would expect CRA5 not to alter default Prettier config.
Actual behavior
The
prettier-plugin-tailwindcss
plugin is installed and alters Prettier config.The text was updated successfully, but these errors were encountered: