@nx/angular:add-linting
Adds linting configuration to an Angular project.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Please do not extend this schema as it is part of Nx internal usage.
Adds linting configuration to an Angular project.
1nx generate add-linting ...
2By default, Nx will search for add-linting in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/angular:add-linting ...
2Show what will be generated without writing to disk:
1nx g add-linting ... --dry-run
2Adds ESLint with Angular-specific rules for an existing project named cool-lib with the prefix cool:
1nx g @nx/angular:add-linting --prefix=cool --projectName=cool-lib --projectRoot=libs/cool-lib
2html-selectorThe prefix to apply to generated selectors.
The name of the project.
The path to the root of the selected project.
falseWhether or not to configure the ESLint parserOptions.project option. We do not do this by default for lint performance reasons.
falseSkip formatting files.
falseDo not add dependencies to package.json.