Splits long className attributes to make them more readable
Subscribe to my Newsletter if you want to get notified about other cool projects and updates.
Example
The following code
becomes
Usage as a cli
npm i -g split-classnames # split classnames on all js files in the src directory split-classnames --dry --max 30 'src/**'
Usage as an eslint plugin
Install the plugin:
npm i -D eslint-plugin-split-classnames
Add the plugin to your eslint config:
Leave a comment