{"library":"prettier-plugin-classnames","title":"prettier-plugin-classnames","description":"Prettier plugin (v0.10.1, active) that wraps long class name strings to fit within printWidth, supporting JSX, Vue, Angular, Svelte, Astro, CSS, SCSS, Less, and template literals. Requires Prettier ^3, Node >=18. Offers options like customAttributes, customFunctions, endingPosition, and a dedicated classnamesPrintWidth. Differentiates by handling class names across many languages and frameworks, with experimental optimizations and support for oxc and babel-ts parsers.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-classnames"],"cli":null},"imports":["In Prettier config, add 'prettier-plugin-classnames' to plugins array (e.g., { plugins: ['prettier-plugin-classnames'] })","module.exports = { plugins: ['prettier-plugin-classnames'] }","export default { plugins: ['prettier-plugin-classnames'] }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install -D prettier prettier-plugin-classnames\n\n// .prettierrc.json\n{\n  \"plugins\": [\"prettier-plugin-classnames\"],\n  \"printWidth\": 80\n}","lang":"json","description":"Installs the package and configures Prettier to use the plugin. After running prettier, long class name strings will be wrapped.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}