prettier-plugin-classnames
prettier-plugin-classnames copied to clipboard
A Prettier plugin that wraps verbose class name based on the `printWidth` option.
## Can I use this plugin with `prettier-plugin-tailwindcss`? Of course! However, there are a few notes. 1. Languages that can be used with `prettier-plugin-tailwindcss` are limited to: - JavaScript -...
Refs: [prettier-plugin-brace-style#21](https://github.com/ony3000/prettier-plugin-brace-style/issues/21)
Thanks for the awesome plugin! It really is a must have. ## Dependency information ```json "prettier": "^3.3.2", "prettier-plugin-classnames": "^0.7.0", "prettier-plugin-merge": "^0.7.0", "prettier-plugin-tailwindcss": "^0.6.5", "tailwindcss": "^3.4.4", ``` ## Steps to reproduce...
I am using cn (clsw, twMerge) - this means I have class lists inside plain string variables. Would be nice we could target the formatting for certain string variables: `...
## Dependency information In a svelte file using TypeScript, when there is any type annotation within the tag, the formatter does not break tailwindcss class line properly. ## Steps to...
## Is your feature request related to a problem? Please describe In Vue JSX, if `class` appears on multiple lines without using backticks, a module resolution error will occur, and...
### Current Behavior When `maxLength` is set to 120 in the plugin configuration, it does not break lines for long class strings as expected. ### Expected Behavior The plugin should...