To complement the DeepSource JavaScript analyzer, we have added support for the popular code formatters in the JS ecosystem:
-
StandardJS: invokes
standard --fixon changed JS and JSX files. -
Prettier: invokes
prettier --writeon changed.jsfiles. 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.