# Class: ESLintPreferConstRule

@boll/rules-external-toolsGlobalsESLintPreferConstRule

# Class: ESLintPreferConstRule

ESLintPreferConstRule will esnure that the prefer-const ESLint rule is enabled on all source files and that the rule is enabled as an error.

# Hierarchy

  • ESLintPreferConstRule

# Implements

  • PackageRule

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new ESLintPreferConstRule(logger: Logger): ESLintPreferConstRule

Defined in eslint-prefer-const-rule.ts:12

Parameters:

Name Type
logger Logger

Returns: ESLintPreferConstRule

# Properties

# configLoader

configLoader: ESLintRules

Defined in eslint-prefer-const-rule.ts:12


# Private logger

logger: Logger

Defined in eslint-prefer-const-rule.ts:13

# Accessors

# name

get name(): string

Defined in eslint-prefer-const-rule.ts:17

Returns: string

# Methods

# check

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

Defined in eslint-prefer-const-rule.ts:21

Parameters:

Name Type
file FileContext

Returns: Promise‹Result[]›