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

Commit 381b7c5

Browse files
build: update tslint rules to remove usage of whitelist in coments (#1297)
Remove usage of the term whitelist in commenting for noRxjsPatchImportsRule, noViewEncapsulationRule and validateDecoratorRule.
1 parent 3bca8ea commit 381b7c5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/tslint-rules/noRxjsPatchImportsRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ERROR_MESSAGE = 'Uses of RxJS patch imports are forbidden.';
77

88
/**
99
* Rule that prevents uses of RxJS patch imports (e.g. `import 'rxjs/add/operator/map').
10-
* Supports whitelisting via `"no-patch-imports": [true, "\.spec\.ts$"]`.
10+
* Supports allowing usage in specific files via `"no-patch-imports": [true, "\.spec\.ts$"]`.
1111
*/
1212
export class Rule extends Lint.Rules.AbstractRule {
1313
apply(sourceFile: ts.SourceFile) {

tools/tslint-rules/noViewEncapsulationRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const ERROR_MESSAGE = 'Components must turn off view encapsulation.';
99

1010
/**
1111
* Rule that enforces that view encapsulation is turned off on all components.
12-
* Files can be whitelisted via `"no-view-encapsulation": [true, "\.spec\.ts$"]`.
12+
* Supports allowing usage in specific files via `"no-view-encapsulation": [true, "\.spec\.ts$"]`.
1313
*/
1414
export class Rule extends Lint.Rules.AbstractRule {
1515
apply(sourceFile: ts.SourceFile) {

tools/tslint-rules/validateDecoratorsRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as minimatch from 'minimatch';
55

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

0 commit comments

Comments
 (0)