nx/docs/shared/linter-plugin.md
Miroslav Jonaš 2df183190f
docs(linter): add overview page (#8794)
* docs(linter): add overview page

* chore(repo): add autogenerated docs
2022-01-31 19:55:05 -05:00

735 B

Linter Plugin

The Linter plugin contains executors, generator, plugin and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.

Setting Up Linter

Installation

In any Nx workspace, you can install @nrwl/linter by running the following commands if @nrwl/linter package is not installed:

npm i --save-dev @nrwl/linter
yarn add --dev @nrwl/linter

Lint

You can lint an application or a library with the following command:

nx lint my-app
nx lint my-lib

Utils