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

docs: add readme #29

Merged
merged 1 commit into from
Nov 14, 2024
Merged
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
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# supa-mdx-lint

Work in progress.

An MDX linter meant to enforce the Supabase Docs style guide.

## Usage

```
Usage: supa-mdx-lint [OPTIONS] <TARGET>

Arguments:
<TARGET> (Glob of) files or directories to lint

Options:
-c, --config <FILE> Sets a custom config file
-f, --fix Auto-fix any fixable errors
--format <FORMAT> Output format [default: simple]
-d, --debug Turn debugging information on
-s, --silent Do not write anything to the output
-h, --help Print help
-V, --version Print version
```

## Configuration

The default configuration file is `supa-mdx-lint.config.toml`, relative to the
root of your working directory. You can point to a different config file using
the `--config` option.

Use the config file to define ignore patterns:

```
ignore_patterns = []
```

Or configure rule-specific settings:

```
[Rule001HeadingCase]
may_uppercase = []
```

Or configure rule error levels:

```
[Rule001HeadingCase]
level = "warn"
```

Or turn rules off entirely:

```
Rule001HeadingCase = false
```