Stylelint Prettier config
LintUse provides a stylelint config for stylelint-prettier.
The config reference stylelint-prettier.
Prerequisites
Install necessary dependencies:
sh
npm install -D stylelint lodash
1
sh
pnpm add -D stylelint lodash
1
sh
yarn add -D stylelint lodash
1
sh
bun add -D stylelint lodash
1
Configuration
js
import { stylelint } from "@ljtang2009/lint-use";
import _ from "lodash";
/** @type {import('stylelint').Config} */
export default {
..._.merge(
stylelint.prettier.default
),
};
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
Configure Stylelint reference Stylelint official configuration.
Usage
sh
npx stylelint "**/*.{css,less,scss}"
1