Installation
Stylelint is a tool to lint CSS and CSS like files.
To get started install stylelint and stylelint-config-standard-scss packages:
Configuration
Create .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 .stylelintrc.json content to the following:
Additional tools
Add npm script to your package.json to lint all css files in your project:
To enable linting in your editor, install stylelint VSCode extension.