Skip to content

Commit

Permalink
docs: remove unexpected 'as const' in incorrect example (#5161)
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jun 10, 2022
1 parent 53d74b6 commit 4a34f1b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,9 @@ Examples of code for this rule with `{ allowDirectConstAssertionInArrowFunctions

```ts
export const func = (value: number) => ({ type: 'X', value });
export const foo = () =>
({
bar: true,
} as const);
export const foo = () => ({
bar: true,
});
export const bar = () => 1;
```

Expand Down

0 comments on commit 4a34f1b

Please sign in to comment.