@nx/linter

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 @nx/linter by running the following commands if @nx/linter package is not installed:

npm i --save-dev @nx/linter

Nx 15 and lower use @nrwl/ instead of @nx/

yarn add --dev @nx/linter

Nx 15 and lower use @nrwl/ instead of @nx/

Lint

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

nx lint my-app

nx lint my-lib

Utils

ESLint plugin

Read about our dedicated ESLint plugin - eslint-plugin-nx.

Package reference

Here is a list of all the executors and generators available from this package.

Guides

Executors

  • eslint

    Run ESLint on a project.

Generators