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

Commit facf53b

Browse files
committed
update to use code patterns, change option skip-import to skipImport
1 parent 04c4973 commit facf53b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/schematics/angular/pipe/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import { addDeclarationToModule, addExportToModule } from '../utility/ast-utils';
8+
import {addDeclarationToModule, addExportToModule} from '../utility/ast-utils';
99
import {InsertChange} from '../utility/change';
1010

1111
import {
@@ -20,7 +20,7 @@ import {
2020
noop,
2121
normalizePath,
2222
template,
23-
url,
23+
url
2424
} from '@angular-devkit/schematics';
2525
import * as stringUtils from '../strings';
2626

@@ -30,7 +30,7 @@ import 'rxjs/add/operator/merge';
3030

3131
function addDeclarationToNgModule(options: any): Rule {
3232
return (host: Tree) => {
33-
if (options['skip-import']) {
33+
if (options.skipImport) {
3434
return host;
3535
}
3636

@@ -55,7 +55,7 @@ function addDeclarationToNgModule(options: any): Rule {
5555
}
5656

5757
if (!modulePath) {
58-
throw new Error('Could not find an NgModule for the new pipe. Use the skip-import '
58+
throw new Error('Could not find an NgModule for the new pipe. Use the skipImport '
5959
+ 'option to skip importing pipes in NgModule.');
6060
}
6161

packages/schematics/angular/pipe/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"default": true,
2626
"description": "Specifies if a spec file is generated."
2727
},
28-
"skip-import": {
28+
"skipImport": {
2929
"type": "boolean",
3030
"default": false,
3131
"description": "Allows for skipping the module import."

0 commit comments

Comments
 (0)