Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add settings.json linter documentation #3368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions runtime/plugins/linter/help/linter.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ following filetypes and linters:
* **swift**: swiftc (MacOS and Linux only)
* **yaml**: yamllint

You can easily enable linting in your `settings.json` file:
Copy link
Contributor

@Andriamanitra Andriamanitra Jul 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also mention the set linter on|off command which is the easier way to do this.


```json
{
"linter": true
}
```

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`
command is executed, micro will run the corresponding utility in the
Expand Down