Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.31 KB

stylelint.md

File metadata and controls

54 lines (40 loc) · 1.31 KB
description title layout
stylelint is a linter for CSS, SCSS
Trunk | How to run stylelint
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

stylelint

stylelint is a linter for CSS, SCSS.

You can enable the stylelint linter with:

trunk check enable stylelint

Auto Enabling

stylelint will be auto-enabled if any of its config files are present: stylelint.config.js, .stylelintrc.js, stylelint.config.mjs.

Settings

stylelint supports the following config files:

  • stylelint.config.js
  • .stylelintrc.js
  • stylelint.config.mjs
  • .stylelintrc.mjs
  • stylelint.config.cjs
  • .stylelintrc.cjs
  • .stylelintrc.json
  • .stylelintrc.yml
  • .stylelintrc.yaml
  • .stylelintrc

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info.

Links