Skip to content

Commit

Permalink
fix(nx): set the right linter in react-express preset
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Aug 29, 2019
1 parent 644047b commit e79731b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/workspace/src/schematics/preset/preset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ describe('preset', () => {
expect(
tree.exists('/libs/api-interfaces/src/lib/api-interfaces.ts')
).toBe(true);
expect(tree.exists('/apps/proj/.eslintrc')).toBe(true);
expect(tree.exists('/apps/api/.eslintrc')).toBe(true);
expect(tree.exists('/libs/api-interfaces/.eslintrc')).toBe(true);
});

it('should work with unnormalized names', async () => {
Expand Down
9 changes: 7 additions & 2 deletions packages/workspace/src/schematics/preset/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,16 @@ function createPreset(options: Schema): Rule {
'application',
{
name: 'api',
frontendProject: options.name
frontendProject: options.name,
linter
},
{ interactive: false }
),
schematic('library', { name: 'api-interfaces' }, { interactive: false }),
schematic(
'library',
{ name: 'api-interfaces', linter },
{ interactive: false }
),
setDefaultCollection('@nrwl/react'),
connectReactAndExpress(options)
]);
Expand Down

0 comments on commit e79731b

Please sign in to comment.