Skip to content

Commit

Permalink
Update packages/eslint-plugin/docs/rules/prefer-string-starts-ends-wi…
Browse files Browse the repository at this point in the history
…th.md

Co-authored-by: auvred <61150013+auvred@users.noreply.github.com>
  • Loading branch information
JoshuaKGoldberg and auvred committed Feb 23, 2024
1 parent ec8f111 commit 303c250
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -63,7 +63,7 @@ This can be preferable in projects that don't deal with special character encodi

The following code is considered incorrect by default, but is allowed with `allowSingleElementEquality: 'always'`:

```ts
```ts option='{ "allowSingleElementEquality": "always" }' showPlaygroundButton
declare const text: string;

text[0] === 'a';
Expand Down

0 comments on commit 303c250

Please sign in to comment.