-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Merge remote-tracking branch 'origin/master' into feature/acc…
…ordion_a11y
- Loading branch information
Showing
210 changed files
with
1,013 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
StylesPath = .vale | ||
|
||
MinAlertLevel = suggestion | ||
|
||
IgnoredScopes = link, code | ||
|
||
[formats] | ||
mdx = md | ||
|
||
[*.md] | ||
BasedOnStyles = DevDocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
message: "Consider removing the '%s' article from the heading for readability." | ||
extends: existence | ||
ignorecase: true | ||
action: | ||
name: remove | ||
scope: | ||
- heading | ||
level: suggestion | ||
tokens: | ||
- a | ||
- an | ||
- the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Recommends using contracted forms of verbs with 'not' | ||
extends: substitution | ||
message: "It's okay to use the contracted form '%s' instead of '%s'." | ||
level: suggestion | ||
ignorecase: true | ||
action: | ||
name: replace | ||
swap: | ||
are not: aren't | ||
cannot: can't | ||
could not: couldn't | ||
did not: didn't | ||
do not: don't | ||
does not: doesn't | ||
has not: hasn't | ||
have not: haven't | ||
how is: how's | ||
is not: isn't | ||
it is: it's | ||
should not: shouldn't | ||
that is: that's | ||
they are: they're | ||
was not: wasn't | ||
we are: we're | ||
we have: we've | ||
were not: weren't | ||
what is: what's | ||
when is: when's | ||
where is: where's | ||
will not: won't |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends: existence | ||
message: "Use the '<Month> DD, YYYY' format, not '%s'." | ||
ignorecase: true | ||
level: error | ||
nonword: true | ||
tokens: | ||
- '\d{1,2}(?:\.|/)\d{1,2}(?:\.|/)\d{4}' | ||
- '\d{1,2} (?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)|May|Jun(?:e)|Jul(?:y)|Aug(?:ust)|Sep(?:tember)?|Oct(?:ober)|Nov(?:ember)?|Dec(?:ember)?) \d{4}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Suggests to remove an extra space | ||
extends: existence | ||
message: "Remove the extra space in '%s'." | ||
level: error | ||
nonword: true | ||
tokens: | ||
- '[\w.?!,\(\)\-":] {2,}[\w.?!,\(\)\-":]' | ||
- '[\w.?!,\(\)\-":]. {2,}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Suggests gender-neutral pronouns | ||
extends: substitution | ||
message: "Use gender-neutral pronouns when you talk about any person. Use '%s' instead of '%s'." | ||
level: error | ||
ignorecase: true | ||
# nonword: true | ||
action: | ||
name: replace | ||
swap: | ||
he: they | ||
him: them | ||
his: their | ||
she: they | ||
her: their | ||
hers: theirs | ||
s/he: they | ||
he/she: they | ||
she/he: they | ||
he or she: they | ||
she or he: they | ||
# Temporarily off. When it's on and the `nonword` option is `true`, Vale finds `he` and `his` in `the` and `this`. | ||
# '\B\(s\)he\b': they |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Checks that there are no H4–H6 headings | ||
extends: existence | ||
message: "Avoid using H4–H6 headings. Consider refactoring the information or splitting it into several pages." | ||
# Vale doesn't ignore this rule when H4 headings are marked as exceptions. | ||
# Change the level back to "error" when this bug is fixed. | ||
level: warning | ||
scope: raw | ||
raw: | ||
- '(?<=\n)#{4,}\s.*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Recommends to avoid unnecessary value judgments in technical docs | ||
extends: existence | ||
message: "Avoid using '%s' in technical documentation." | ||
ignorecase: true | ||
action: | ||
name: remove | ||
level: warning | ||
tokens: | ||
- '\b(?:eas(?:y|ily)|simpl(?:e|y)|obvious(?:ly)?)\b' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Checks that there are no Latin terms and abbreviations | ||
extends: substitution | ||
message: "Avoid Latin words and expressions. Use '%s' instead of '%s'." | ||
ignorecase: true | ||
level: error | ||
nonword: true | ||
action: | ||
name: replace | ||
swap: | ||
# Regular spellchecker adds a comma after e.g./i.e. | ||
'\b(?:eg|e\.g\.)': for example|such as | ||
'\b(?:ie|i\.e\.)': that's|namely|specifically |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends: substitution | ||
message: "Use '%s' instead of '%s'. For branch names, use code font." | ||
level: error | ||
ignorecase: true | ||
action: | ||
name: replace | ||
swap: | ||
master: primary|main|controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Checks that links have meaningful text | ||
|
||
extends: existence | ||
message: "Use meaningful link text rather than '%s'." | ||
level: error | ||
scope: raw | ||
nonword: true | ||
ignorecase: true | ||
tokens: | ||
- \[here\]\(.*\) | ||
- \[this\]\(.*\) | ||
- \[this page\]\(.*\) | ||
- \[this link\]\(.*\) | ||
- \[link\]\(.*\) | ||
- \[click here\]\(.*\) | ||
- \[click this\]\(.*\) | ||
- \[click that\]\(.*\) |
Oops, something went wrong.