
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@luewell/prettier-plugin-tailwindcss
Advanced tools
A Prettier plugin for sorting Tailwind CSS classes.
A Prettier plugin for Tailwind CSS v3.0+ that automatically sorts classes based on our recommended class order.
To get started, just install prettier-plugin-tailwindcss as a dev-dependency:
npm install -D prettier prettier-plugin-tailwindcss
This plugin follows Prettier’s autoloading convention, so as long as you’ve got Prettier set up in your project, it’ll start working automatically as soon as it’s installed.
Note that plugin autoloading is not supported when using certain package managers, such as pnpm or Yarn PnP. In this case you may need to add the plugin to your Prettier config explicitly:
// prettier.config.js
module.exports = {
plugins: [require('prettier-plugin-tailwindcss')],
}
To ensure that the class sorting is taking into consideration any of your project's Tailwind customizations, it needs access to your Tailwind configuration file (tailwind.config.js).
By default the plugin will look for this file in the same directory as your Prettier configuration file. However, if your Tailwind configuration is somewhere else, you can specify this using the tailwindConfig option in your Prettier configuration.
Note that paths are resolved relative to the Prettier configuration file.
// prettier.config.js
module.exports = {
tailwindConfig: './styles/tailwind.config.js',
}
If a local configuration file cannot be found the plugin will fallback to the default Tailwind configuration.
To make this plugin work we had to use private Prettier APIs that can only be used by a single plugin at once. This means this plugin is incompatible with other Prettier plugins that are using the same APIs.
The most popular example we know of is prettier-plugin-svelte, which can't be installed at the same time as the Tailwind CSS plugin.
To work around this, we've bundled prettier-plugin-svelte directly into prettier-plugin-tailwindcss, so if you'd like to use this plugin with Svelte, just uninstall prettier-plugin-svelte and everything should work as expected.
If you discover any other incompatibilities, please share them in this issue and hopefully we can figure out a way to make it work.
FAQs
A Prettier plugin for sorting Tailwind CSS classes.
The npm package @luewell/prettier-plugin-tailwindcss receives a total of 2 weekly downloads. As such, @luewell/prettier-plugin-tailwindcss popularity was classified as not popular.
We found that @luewell/prettier-plugin-tailwindcss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.