pub struct ToolingCredit {
pub reason: String,
pub plugin: Option<String>,
pub config: Option<PathBuf>,
pub reference: Option<String>,
}Expand description
Why the unused devDependency check counts a dependency as used tooling although no source file imports it.
Fields§
§reason: StringThe evidence: plugin-config when the plugin that declares the
dependency found its own config file, plugin-reference when a
package.json script, a CI workflow or a git hook runs one of that
plugin’s packages, ambient-types for a type package that declares
globals, types-target when the project declares or imports the
package that a @types/ package types, types-config when a config
file, such as a tsconfig types entry, names the type package,
known-tooling for a library from the tooling catalogue,
known-tooling-config when a command-line tool from the catalogue has
its own config file, and own-peer when the same manifest lists the
devDependency in peerDependencies. The set is open.
plugin: Option<String>The plugin that declares the dependency as tooling.
config: Option<PathBuf>The config file found, relative to the project root, for
plugin-config and known-tooling-config. A package.json path when
the config is a package.json key. For own-peer, the manifest that
lists the dependency.
reference: Option<String>The package that a script, CI workflow or git hook runs, for
plugin-reference, or the package that a @types/ package types,
for types-target.
Trait Implementations§
Source§impl Clone for ToolingCredit
impl Clone for ToolingCredit
Source§impl Debug for ToolingCredit
impl Debug for ToolingCredit
impl Eq for ToolingCredit
Source§impl PartialEq for ToolingCredit
impl PartialEq for ToolingCredit
Source§impl Serialize for ToolingCredit
impl Serialize for ToolingCredit
impl StructuralPartialEq for ToolingCredit
Auto Trait Implementations§
impl Freeze for ToolingCredit
impl RefUnwindSafe for ToolingCredit
impl Send for ToolingCredit
impl Sync for ToolingCredit
impl Unpin for ToolingCredit
impl UnsafeUnpin for ToolingCredit
impl UnwindSafe for ToolingCredit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.