Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

build: update tslint rules to remove usage of whitelist in comments #1297

Merged
merged 1 commit into from
Sep 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/tslint-rules/noRxjsPatchImportsRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ERROR_MESSAGE = 'Uses of RxJS patch imports are forbidden.';

/**
* Rule that prevents uses of RxJS patch imports (e.g. `import 'rxjs/add/operator/map').
* Supports whitelisting via `"no-patch-imports": [true, "\.spec\.ts$"]`.
* Supports allowing usage in specific files via `"no-patch-imports": [true, "\.spec\.ts$"]`.
*/
export class Rule extends Lint.Rules.AbstractRule {
apply(sourceFile: ts.SourceFile) {
Expand Down
2 changes: 1 addition & 1 deletion tools/tslint-rules/noViewEncapsulationRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ERROR_MESSAGE = 'Components must turn off view encapsulation.';

/**
* Rule that enforces that view encapsulation is turned off on all components.
* Files can be whitelisted via `"no-view-encapsulation": [true, "\.spec\.ts$"]`.
* Supports allowing usage in specific files via `"no-view-encapsulation": [true, "\.spec\.ts$"]`.
*/
export class Rule extends Lint.Rules.AbstractRule {
apply(sourceFile: ts.SourceFile) {
Expand Down
2 changes: 1 addition & 1 deletion tools/tslint-rules/validateDecoratorsRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as minimatch from 'minimatch';

/**
* Rule that enforces certain decorator properties to be defined and to match a pattern.
* Supports whitelisting via the third argument. E.g.
* Supports allowing usage in specific files via the third argument. E.g.
*
* ```
* "validate-decorators": [true, {
Expand Down