@prosomo/stylelint-config
v3.0.0
Published
Shared stylelint configurations for Prosomo.
Downloads
5
Readme
@prosomo/stylelint-config
Shared stylelint configurations for Prosomo.
Installation
With pnpm
pnpm add --dev stylelint stylelint-config-prettier stylelint-config-standard @prosomo/stylelint-config
With Yarn
yarn add --dev stylelint stylelint-config-prettier stylelint-config-standard @prosomo/stylelint-config
With npm
npm install --save-dev stylelint stylelint-config-prettier stylelint-config-standard @prosomo/stylelint-config
If you want browserslist support, also install stylelint-no-unsupported-browser-features
and our browserslist config.
Available configs
@prosomo/stylelint-config
@prosomo/stylelint-config/browserslist
Usage
Create a .stylelintrc.cjs
file in the root of your project with the following contents. See the stylelint configuration docs for more details.
/** @type {import("stylelint").Config} */
const config = {
extends: ["@prosomo/stylelint-config"],
};
module.exports = config;
Now you can run stylelint by adding a linting script to your package.json
. See the stylelint CLI docs for more details.
{
"scripts": {
"lint": "stylelint \"src/**/*.css\""
}
}
Run it:
With pnpm
pnpm lint
With Yarn
yarn lint
With npm
npm run lint