During development, Bit lints your components using the bit lint. That command provides a standard dev experience for linting any kind of component, whether it is a NodeJS modules, a React component or anything else.
Bit lints all components in the workspace regardless to the configured env and therefor linter, with a single command.
bit lint
Use the --changed flag to lint only new and modified components. Use bit status to learn
which components are either new or modified.
bit lint --changed
The Linter can be configured in the workspace.jsonc configuration file.
Determines whether to automatically fix issues found.
For example:
{ "teambit.defender/linter": { "fixTypes": ["problem", "suggestion", "layout'] } }
Determines the files to lint by their extension.
For example:
{ "teambit.defender/linter": { "extensionFormats": ["*.ts", "*.tsx"] } }