# Class: NoRedundantDepsRule

@boll/rules-coreGlobalsNoRedundantDepsRule

# Class: NoRedundantDepsRule

NoRedundantDeps ensures that dependencies are not declared if they are already specified as peerDeps.

# Hierarchy

  • NoRedundantDepsRule

# Implements

  • PackageRule

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new NoRedundantDepsRule(logger: Logger): NoRedundantDepsRule

Defined in no-redundant-deps.ts:9

Parameters:

Name Type
logger Logger

Returns: NoRedundantDepsRule

# Properties

# Private logger

logger: Logger

Defined in no-redundant-deps.ts:10

# Accessors

# name

get name(): string

Defined in no-redundant-deps.ts:12

Returns: string

# Methods

# check

check(file: FileContext): Promise‹Result[]›

Defined in no-redundant-deps.ts:16

Parameters:

Name Type
file FileContext

Returns: Promise‹Result[]›