Stylelint
Stylelint is a CSS linting tool.
Probably worth checking to see first if there is a specific ESLint tool to achieve what you want with this. Here's an example for @emotion
Getting started
Initialise your stylelint config with:
shell
npm init stylelint
Optionally, you may want to rename the default JSON config to MJS:
stylelint.config.mjs
// This is the default config, but in JS.
const config = {
extends: ['stylelint-config-standard'],
};
export default config;
See Getting started | Stylelint
After this, add .stylelintcache/
to your .gitignore
.