Skip to main content
SVGO is a linter for SVG. You can enable the SVGO linter with:
trunk check enable svgo

Auto Enabling

SVGO will be auto-enabled if any SVG files are present.

Settings

SVGO supports the following config files:
  • svgo.config.js
  • svgo.config.mjs
  • svgo.config.cjs
You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info. Trunk Code Quality provides a default svgo.config.js if your project does not already have one.