Skip to content

Commit

Permalink
docs(valid-expect): use valid inline code for mdx rendering (#1352)
Browse files Browse the repository at this point in the history
* Update valid-expect.md

* Update docs/rules/valid-expect.md

Co-authored-by: Gareth Jones <Jones258@Gmail.com>

* Update docs/rules/valid-expect.md

Co-authored-by: Gareth Jones <Jones258@Gmail.com>

---------

Co-authored-by: Gareth Jones <Jones258@Gmail.com>
  • Loading branch information
miimra and G-Rath committed Mar 27, 2023
1 parent 802ed22 commit a57da61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/valid-expect.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This rule is enabled by default.
Enforces to use `await` inside block statements. Using `return` will trigger a
warning. Returning one line statements with arrow functions is _always allowed_.

Examples of **incorrect** code for the { "alwaysAwait": **true** } option:
Examples of **incorrect** code for the `{ "alwaysAwait": true }` option:

```js
// alwaysAwait: true
Expand All @@ -76,7 +76,7 @@ test('test1', async () => {
});
```

Examples of **correct** code for the { "alwaysAwait": **true** } option:
Examples of **correct** code for the `{ "alwaysAwait": true }` option:

```js
// alwaysAwait: true
Expand Down

0 comments on commit a57da61

Please sign in to comment.