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.


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 Linter Configs for more info. Trunk check provides a default svgo.config.js if your project does not already have one.

Last updated