From a2574db3d672cce1ab81b548790065b84c5228fb Mon Sep 17 00:00:00 2001 From: Charis Lam <26616127+charislam@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:06:18 -0500 Subject: [PATCH] docs: add readme --- README.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1c7b5b0 --- /dev/null +++ b/README.md @@ -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] + +Arguments: + (Glob of) files or directories to lint + +Options: + -c, --config Sets a custom config file + -f, --fix Auto-fix any fixable errors + --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 +```