@prosomo/stylelint-config
v3.0.0
Published
Shared stylelint configurations for Prosomo.
Readme
@prosomo/stylelint-config
Shared stylelint configurations for Prosomo.
Installation
With pnpm
pnpm add --dev stylelint stylelint-config-prettier stylelint-config-standard @prosomo/stylelint-configWith Yarn
yarn add --dev stylelint stylelint-config-prettier stylelint-config-standard @prosomo/stylelint-configWith npm
npm install --save-dev stylelint stylelint-config-prettier stylelint-config-standard @prosomo/stylelint-configIf 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 lintWith Yarn
yarn lintWith npm
npm run lint