This package formats your CSS properties primarily by CSS Modules. Giving it a consistence order using modern and logical groupings.
- Install Stylelint:
npm i --save-dev stylelint
- Install this package:
npm i --save-dev stylelint-config-cssmodules-order
- Extend this package in your stylelint config file:
extends: ['stylelint-config-cssmodules-order']
- Optional: Install the Stylelint VSCode extension to show errors in the editor and fix errors with a hotkey.
Note
This package automatically installs stylelint-order
and includes it in your Stylelint's list of plugins so you don't need to add it manually.
If you come across any issues, please report them here.