Skip to content

Commit

Permalink
build: update tslint rules to remove usage of whitelist in coments (a…
Browse files Browse the repository at this point in the history
…ngular#1297)

Remove usage of the term whitelist in commenting for noRxjsPatchImportsRule,
noViewEncapsulationRule and validateDecoratorRule.
  • Loading branch information
josephperrott authored Sep 21, 2020
1 parent 3bca8ea commit 381b7c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 381b7c5

Please sign in to comment.