Installation
Stylelint is a tool to lint CSS and CSS-like files.
To get started, install the stylelint and stylelint-config-standard-scss packages:
Configuration
Create a .stylelintrc.json file at your project root with the following content:
The rules above are required to make Stylelint work with Mantine components.
Mantine Stylelint config
If you want to have the same Stylelint configuration as Mantine, change the .stylelintrc.json content to the following:
Additional tools
Add an npm script to your package.json to lint all css files in your project:
To enable linting in your editor, install the stylelint VSCode extension.