Skip to content

Commit

Permalink
Merge pull request #124 from Efim-Kapliy/patch-1
Browse files Browse the repository at this point in the history
feat: add comments for a better user experience for beginners
  • Loading branch information
edvardchen authored May 14, 2024
2 parents a3ae324 + 842dbb0 commit f38a14e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ If `markupOnly` option turn on, only JSX text and strings used as JSX attributes
JSX text:

```jsx
/*eslint i18next/no-literal-string: ["error", { "markupOnly": true }]*/
// incorrect
<div>hello world</div>
<div>{"hello world"}</div>
Expand All @@ -265,6 +266,7 @@ JSX text:
Strings as JSX attribute:

```jsx
/*eslint i18next/no-literal-string: ["error", { "markupOnly": true }]*/
// incorrect
<div foo="foo"></div>
<div foo={"foo"}></div>
Expand Down

0 comments on commit f38a14e

Please sign in to comment.