From ff45b7ee4426c896c8bc6f62d71f41999b4fa528 Mon Sep 17 00:00:00 2001 From: Jonathan Cammisuli Date: Thu, 23 Jan 2020 10:20:30 -0500 Subject: [PATCH] fix(core): set default linter for schematics in newly created workspaces (#2364) a default linter is added to the following: `@nrwl/node:library` and `@nrwl/nx-plugin:plugin` --- .../workspace/src/schematics/shared-new/shared-new.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/workspace/src/schematics/shared-new/shared-new.ts b/packages/workspace/src/schematics/shared-new/shared-new.ts index d0527b7353..dd7f9952d5 100644 --- a/packages/workspace/src/schematics/shared-new/shared-new.ts +++ b/packages/workspace/src/schematics/shared-new/shared-new.ts @@ -240,7 +240,13 @@ function setDefaultLinter(linter: string) { application: { linter } }; json.schematics['@nrwl/web'] = { application: { linter } }; - json.schematics['@nrwl/node'] = { application: { linter } }; + json.schematics['@nrwl/node'] = { + application: { linter }, + library: { linter } + }; + json.schematics['@nrwl/nx-plugin'] = { + plugin: { linter } + }; json.schematics['@nrwl/nest'] = { application: { linter } }; json.schematics['@nrwl/express'] = { application: { linter } }; return json;