Lint components in the development workspace
$bit lint [component-pattern]
Arguments
Argument | Description | Required |
---|---|---|
component-pattern | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/**, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--changed | -c | lint only new and modified components | boolean |
--fix | -f | automatically fix problems | boolean |
--fix-type | - | specify the types of fixes to apply (problem, suggestion, layout) | string |
--json | -j | return the lint results in json format | boolean |