Add settings.json linter documentation

Add a JSON example of how to enable linting in settings.json
This commit is contained in:
Shaun Mitchell 2024-07-02 13:54:45 -04:00 committed by GitHub
parent dc7759204b
commit 490c4ac8ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,14 @@ following filetypes and linters:
* **swift**: swiftc (MacOS and Linux only) * **swift**: swiftc (MacOS and Linux only)
* **yaml**: yamllint * **yaml**: yamllint
You can easily enable linting in your `settings.json` file:
```json
{
"linter": true
}
```
If the linter plugin is enabled and the file corresponds to one of If the linter plugin is enabled and the file corresponds to one of
these filetypes, each time the buffer is saved, or when the `> lint` these filetypes, each time the buffer is saved, or when the `> lint`
command is executed, micro will run the corresponding utility in the command is executed, micro will run the corresponding utility in the