Closed raketeFlo closed 1 year ago
You must include at least a "lint": {}
in your project.json
to signify that the project should have a lint target.
Example: https://github.com/nrwl/nx/blob/master/packages/nx/project.json#L101
Does that make sense?
Thank you @FrozenPandaz. That worked. I will correct it in your recipes page then and submit a PR, because it is shown without any target in the project.json which is not working.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
I created a targetDefault for lint for all my modules in the nx.json to reduce repetitive configuration as mentioned in your recipes:
I removed the target in the project.json of the app-shell module. When I run
nx run lint cart
I receive the following error:Cannot find configuration for task cart:lint
Expected Behaviour
According to the docs it should run the targetDefault which is defined in the nx.json.
GitHub Repo
https://github.com/JoFlo07/nx-examples
Steps to Reproduce
yarn install
yarn run nx lint cart
Nx Report
Failure Logs
Package Manager Version
yarn v1.22.19
Operating System
Additional Information
No response