Using Linters

Use the unified linter CLI, UI and API, to run the different linters your workspace components use.

Run the following to lint all components in your workspace:

$bit
Copiedcopy

Run the following to lint only new or modified components in your workspace:

$bit
Copiedcopy

Run the following to lint a specific component:

$bit
Copiedcopy

Lint and fix detected issues

Run the following to lint and fix detected issues:

$bit
Copiedcopy

Run the following to lint and fix detected issues of a certain type (problem, suggestion, layout):

$bit
Copiedcopy

Lint during build

Run the following to lint during the build process (assuming your build pipeline has a linter task):

$bit
Copiedcopy