Skip to content

Commit

Permalink
[docs-infra] Improve Vale config
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 17, 2024
1 parent 98a08c9 commit b579513
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ StylesPath = .github/styles
MinAlertLevel = warning

# The docs/mui-vale.zip is generated by `pnpm docs:zipRules`
Packages = Google,docs/mui-vale.zip
Packages = Google, docs/mui-vale.zip

[*.md]
# Ignore code injections that start with {{...
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ You may not need to use hooks unless you find that you're limited by the customi

:::info
The following features can be used with both components and hooks.
For the sake of simplicity, demos and code snippets primarily feature components.
For the sake of simplicity, demos, and code snippets primarily feature components.
:::

### Badge content
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/button/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Do not add the `ref` parameter to the button element manually, as the correct re

:::info
The following features can be used with both components and hooks.
For the sake of simplicity, demos and code snippets primarily feature components.
For the sake of simplicity, demos, and code snippets primarily feature components.
:::

### Custom elements
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/form-control/form-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Learn more about controlled and uncontrolled components in the [React documentat

:::info
The following features can be used with both components and hooks.
For the sake of simplicity, demos and code snippets primarily feature components.
For the sake of simplicity, demos, and code snippets primarily feature components.
:::

### Accessing the form control state
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/input/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ The demo below shows how to use the `useInput` hook to create a custom input com

:::info
The following features can be used with both components and hooks.
For the sake of simplicity, demos and code snippets primarily feature components.
For the sake of simplicity, demos, and code snippets primarily feature components.
:::

### Adornments
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/menu/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ The `useMenuItemContextStabilizer` hook ensures that the context value changes o

:::info
The following features can be used with both components and hooks.
For the sake of simplicity, demos and code snippets primarily feature components.
For the sake of simplicity, demos, and code snippets primarily feature components.
:::

### Wrapping Menu Items
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/select/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ The `useOptionContextStabilizer` hook ensures that the context value changes onl

:::info
The following features can be used with both components and hooks.
For the sake of simplicity, demos and code snippets primarily feature components.
For the sake of simplicity, demos, and code snippets primarily feature components.
:::

### Selected value appearance
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/snackbar/snackbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ You may not need to use hooks unless you find that you're limited by the customi

:::info
The following features can be used with both components and hooks.
For the sake of simplicity, demos and code snippets primarily feature components.
For the sake of simplicity, demos, and code snippets primarily feature components.
:::

### Transitions
Expand Down
Binary file modified docs/mui-vale.zip
Binary file not shown.
5 changes: 3 additions & 2 deletions docs/mui-vale/styles/MUI/CorrectReferenceAllCases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ ignorecase: true
# swap maps tokens in form of bad: good
# for more information: https://vale.sh/docs/topics/styles/#substitution
swap:
api: API
' api': API
typescript: TypeScript
ts: TypeScript
' ts': TypeScript
' js': JavaScript
javascript: JavaScript
' css ': CSS
' html ': HTML
Expand Down

0 comments on commit b579513

Please sign in to comment.