* fix: rewrite relative URLs when syncing to GitHub discussion Relative URLs back to supabse.com won't work in GitHub discussions, so rewrite them back to absolute URLs starting with https://supabase.com * fix: replace all supabase urls with relative urls * chore: add linting for relative urls * chore: bump linter version * Prettier --------- Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
24 lines
992 B
TOML
24 lines
992 B
TOML
ignore_patterns = ["**/_*.mdx"]
|
|
|
|
# Heading should be sentence case
|
|
Rule001HeadingCase = "include('supa-mdx-lint/Rule001HeadingCase.toml')"
|
|
|
|
# Check spelling
|
|
# Error message: "Word not found in dictionary"
|
|
Rule003Spelling = "include('supa-mdx-lint/Rule003Spelling.toml')"
|
|
|
|
[Rule002AdmonitionTypes]
|
|
# Allowed admonition types are:
|
|
admonition_types = ["note", "tip", "caution", "deprecation", "danger"]
|
|
|
|
[Rule004ExcludeWords]
|
|
rules.filler = "include('supa-mdx-lint/Rule004ExcludeWords/filler.toml')"
|
|
rules.first_person = "include('supa-mdx-lint/Rule004ExcludeWords/first_person.toml')"
|
|
rules.gender_neutral = "include('supa-mdx-lint/Rule004ExcludeWords/gender_neutral.toml')"
|
|
rules.inclusive_wording = "include('supa-mdx-lint/Rule004ExcludeWords/inclusive_wording.toml')"
|
|
rules.preferred_usage = "include('supa-mdx-lint/Rule004ExcludeWords/preferred_usage.toml')"
|
|
rules.slang = "include('supa-mdx-lint/Rule004ExcludeWords/slang.toml')"
|
|
|
|
[Rule006NoAbsoluteUrls]
|
|
base_url = "https://supabase.com"
|