Skip to content

Commit 1326be5

Browse files
committed
Fix typos in jsx-no-literals docs
1 parent a7d75cf commit 1326be5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/jsx-no-literals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
In JSX when using a literal string you can wrap it in a JSX container `{'TEXT'}`.
44
This rules requies that you wrap all literal strings.
5-
Prevents any odd artifacts of highlighters if you unwrapped string contains a enclsoing character like `'` in contractions and enforces consistency.
5+
Prevents any odd artifacts of highlighters if your unwrapped string contains an enclosing character like `'` in contractions and enforces consistency.
66

77
## Rule Details
88

@@ -12,7 +12,7 @@ The following patterns are considered warnings:
1212
var Hello = <div>test</div>;
1313
```
1414

15-
The following patterns are not considered:
15+
The following patterns are not considered warnings:
1616

1717
```javascript
1818
var Hello = <div>{'test'}</div>;

0 commit comments

Comments
 (0)