To complement the DeepSource JavaScript analyzer, we have added support for the popular code formatters in the JS ecosystem:
-
StandardJS: invokes
standard --fix
on changed JS and JSX files. -
Prettier: invokes
prettier --write
on changed.js
files. It also formats JSX, TypeScript, CSS and many other file formats.
To enable these transformers on your repository, add the following snippet to your .deepsource.toml
:
[[transformers]]
name = "standardjs"
enabled = true
and
[[transformers]]
name = "prettier"
enabled = true
More details can be found in the docs for Prettier and StandardJS.