Skip to content

Commit

Permalink
fix(nx): set the default linter in presets
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Jul 30, 2019
1 parent 448233b commit fbb3dc6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/workspace/src/schematics/preset/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
Expand Down

0 comments on commit fbb3dc6

Please sign in to comment.