# cspell

[**cspell**](https://github.com/streetsidesoftware/cspell#readme) is a linter for All.

You can enable the cspell linter with:

```shell
trunk check enable cspell
```

![cspell example output](https://577236045-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F61Ep9MrYBkJa0Yq3zS1s%2Fuploads%2Fgit-blob-cd13b4547e80e87b78471137ff0d3f5f7c5aeb1d%2Fcspell.gif?alt=media)

## Auto Enabling

cspell will never be auto-enabled. It must be enabled manually.

## Settings

cspell supports the following config files:

* `.cspell.json`
* `cspell.json`
* `.cSpell.json`
* `cSpell.json`
* `cspell.config.js`
* `cspell.config.cjs`
* `cspell.config.json`
* `cspell.config.yaml`
* `cspell.config.yml`
* `cspell.yaml`
* `cspell.yml`

You can move these files to `.trunk/configs` and `trunk check` will still find them. See [Moving Linters](https://docs.trunk.io/code-quality/overview/configure-linters#moving-linters) for more info. Trunk Code Quality provides a default `cspell.yaml` if your project does not already have one.

## Links

* [cspell site](https://github.com/streetsidesoftware/cspell#readme)
* cspell Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/cspell)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
