From 00a7991ff28ca612b4c05b7e115f4bdfa1192335 Mon Sep 17 00:00:00 2001 From: Alex Kulagin Date: Tue, 22 Oct 2019 18:05:29 +0500 Subject: [PATCH] feat(schematics): fix linter issues --- projects/core/schematics/ng-add/index.ts | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/projects/core/schematics/ng-add/index.ts b/projects/core/schematics/ng-add/index.ts index 3537ec9..dc3499a 100644 --- a/projects/core/schematics/ng-add/index.ts +++ b/projects/core/schematics/ng-add/index.ts @@ -8,16 +8,13 @@ const packageJson = readFileSync(path.join(__dirname, '..', '..', 'package.json' const version = JSON.parse(packageJson).version; // Just return the tree export function ngAdd(): Rule { - return (tree: Tree, _context: SchematicContext) => { - addPackageJsonDependency( - tree, - { - type: NodeDependencyType.Default, - version: version, - name: '@ngxd/core' - } - ); - _context.addTask(new NodePackageInstallTask()); - return tree; - }; + return (tree: Tree, _context: SchematicContext) => { + addPackageJsonDependency(tree, { + type: NodeDependencyType.Default, + version: version, + name: '@ngxd/core', + }); + _context.addTask(new NodePackageInstallTask()); + return tree; + }; }