From fbb3dc63fa97d6cd7c59ca4cd0f06206c2b35e15 Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Tue, 30 Jul 2019 02:33:27 -0400 Subject: [PATCH] fix(nx): set the default linter in presets --- .../workspace/src/schematics/preset/preset.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/workspace/src/schematics/preset/preset.ts b/packages/workspace/src/schematics/preset/preset.ts index 3ba291ad2616f..0d5e4c9e70bdc 100644 --- a/packages/workspace/src/schematics/preset/preset.ts +++ b/packages/workspace/src/schematics/preset/preset.ts @@ -250,11 +250,16 @@ function setDefaultLinter(linter: string) { if (!json.schematics) { json.schematics = {}; } - json.schematics['@nrwl/workspace'] = { linter }; - json.schematics['@nrwl/cypress'] = { linter }; - json.schematics['@nrwl/react'] = { linter }; - json.schematics['@nrwl/web'] = { linter }; - json.schematics['@nrwl/node'] = { linter }; + json.schematics['@nrwl/workspace'] = { library: { linter } }; + json.schematics['@nrwl/cypress'] = { 'cypress-project': { linter } }; + json.schematics['@nrwl/react'] = { + application: { linter }, + library: { linter } + }; + json.schematics['@nrwl/web'] = { application: { linter } }; + json.schematics['@nrwl/node'] = { application: { linter } }; + json.schematics['@nrwl/nest'] = { application: { linter } }; + json.schematics['@nrwl/workspace'] = { application: { linter } }; return json; }); }