Stylelint order config
LintUse provides a set of Stylelint config that can be used to order your code.
The config reference stylelint-config-clean-order.
Prerequisites
Install necessary dependencies:
sh
npm install -D stylelint lodash1
sh
pnpm add -D stylelint lodash1
sh
yarn add -D stylelint lodash1
sh
bun add -D stylelint lodash1
Configuration
js
import { stylelint } from "@ljtang2009/lint-use";
import _ from "lodash";
/** @type {import('stylelint').Config} */
export default {
..._.merge(
stylelint.order.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

