Skip to content

Commit

Permalink
fix(core): add missing lint info to library generator (nrwl#9627)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored and sidmonta committed Apr 2, 2022
1 parent 1380b49 commit 7505ec5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/workspace/src/generators/library/files/lib/README.md
Expand Up @@ -6,5 +6,9 @@ This library was generated with [Nx](https://nx.dev).
## Running unit tests

Run `<%= cliCommand %> test <%= name %>` to execute the unit tests via [Jest](https://jestjs.io).
<% } %><% if (hasLinter) { %>

## Running lint

Run `<%= cliCommand %> lint <%= name %>` to execute the lint via [ESLint](https://eslint.org/).
<% } %>
1 change: 1 addition & 0 deletions packages/workspace/src/generators/library/library.ts
Expand Up @@ -144,6 +144,7 @@ function createFiles(tree: Tree, options: NormalizedSchema) {
offsetFromRoot: rootOffset,
rootTsConfigPath: getRelativePathToRootTsConfig(tree, options.projectRoot),
hasUnitTestRunner: options.unitTestRunner !== 'none',
hasLinter: options.linter !== 'none',
});

if (options.unitTestRunner === 'none') {
Expand Down

0 comments on commit 7505ec5

Please sign in to comment.