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`
This commit is contained in:
Jonathan Cammisuli 2020-01-23 10:20:30 -05:00 committed by Jason Jean
parent 26d251acb7
commit ff45b7ee44

View File

@ -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;