fallow-core 2.39.0

Core analysis engine for the fallow TypeScript/JavaScript codebase analyzer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! SVGO plugin.
//!
//! Detects SVGO projects and marks config files as always used.

use super::Plugin;

const ENABLERS: &[&str] = &["svgo"];

const ALWAYS_USED: &[&str] = &["svgo.config.{js,cjs,mjs,ts}"];

const TOOLING_DEPENDENCIES: &[&str] = &["svgo"];

define_plugin! {
    struct SvgoPlugin => "svgo",
    enablers: ENABLERS,
    always_used: ALWAYS_USED,
    tooling_dependencies: TOOLING_DEPENDENCIES,
}