Good afternoon I have a…

less than 1 minute read

Good afternoon! I have a question regarding onlyDependOnLibsWithTags for .eslintrc – how can I force the evaluation of these constraints at build time (nx build), in addition to linting?

Responses:

I don’t believe you can enforce them at build time.

Correct me if I am wrong everyone else but I have not seen something like that in Nx as it is specifically leveraging eslint or tslint which is just static checking.

Is there a nx build command that lints and then builds? or do you have to always call them separately?

I want to treat linting as a build error to enforce resolution – maybe there is a better way

No, but you can use run-commands for that

https://nx.dev/angular/plugins_workspace_builders/run-commands

Can build out your own pipeline of commands to use.

okay, great – thanks for the help!

Updated: