-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
.vale.ini
58 lines (44 loc) · 1.55 KB
/
.vale.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
########################
# ABOUT #
########################
# This file controls the Vale application, specifically what, where, and how it lints.
# Vale config reference: https://vale.sh/docs/topics/config
# INI syntax: https://ini.unknwon.io/docs/intro
########################
# CORE SETTINGS #
########################
StylesPath = "vale/styles"
MinAlertLevel = suggestion
Vocab = Dagster
########################
# FORMAT ASSOCIATIONS #
########################
[formats]
mdx = md
########################
# FORMAT-SPECIFIC #
########################
[*.{md,mdx,rst}]
BasedOnStyles = Dagster, Terms, Vale
; References:
; - https://vale.sh/docs/topics/scoping/#non-standard-markup
; - https://github.com/errata-ai/vale/blob/871dafd1e24500cee9d8ad82b25d42a136bb2103/testdata/fixtures/patterns/_vale#L14
; Pattern : (\\\{[^\n]+\})
; Regex101 : https://regex101.com/r/GOx8Z6/2
; Description : Ignore heading anchor renames
; Description : Ignore code snippets
; Pattern : (`[^\n^`]+`)
; Regex101 : https://regex101.com/r/c5EE6S/1
; Pattern : \[.*\](\(.*\))
; Regex101 : https://regex101.com/r/GOx8Z6/3
; Description : Ignore link HREFs
; Additionally, we include TokenIgnores of `<TabItem>` and `<Tabs>` to strip these HTML elements,
; because when these wrap markdown it causes the markdown linting to fail. For example, code blocks
; within a tab item.
TokenIgnores = (`[^`]*`), \
(\[.*\]\([^)]+\)), \
(\\\{[^}]+\}), \
(<\/?TabItem.*>), \
(<\/?Tabs.*>), \
(</?details>), \
(<summary>.*<\/summary>)