➡️ Extendable Stylelint configuration, part of the
yikoyu/unconfig project.
ℹ️ This configuration package require these tools to use locally on your device(s):
Latest Node.js LTS (Long-Term Support) version
- One of Node.js package managers:
- Latest
Stylelint version
👣 Follow the steps below:
-
Install it with the
Node.js package manager of your choice (in our case, we use
pnpm).
pnpm install --save-dev stylelint @yikoyu/stylelint-config
-
If using pnpm, please add configuration to the
.npmrc
file.public-hoist-pattern[]=*stylelint* public-hoist-pattern[]=postcss*
-
Create a
stylelint configuration file -
stylelint.config.(js|cjs|.mjs)
. -
Extend this module package configuration.
import { yikoyu } from '@yikoyu/stylelint-config' export default yikoyu()
📖 For the Stylelint CLI usage, please refer to its
documentation.
⚙️ This configuration module for Stylelint loads configurations and plugins options conditionally.
Configurations | Version | Loading condition(s) |
---|---|---|
stylelint-config-recess-order | order as dependency |
|
stylelint-config-recommended-vue | vue as dependency |
|
stylelint-config-standard | NO sass as dependency |
|
stylelint-config-standard-scss | sass as dependency |
⚖️ For more information, please refer to the License section at the root of the yikoyu/unconfig monorepo.