Next.js Discord

Discord Forum

Disabling Quotations in ES Lint

Answered
WhyFencePost posted this in #help-forum
Open in Discord
I am writing a documentation site, and it sometimes uses quotes in the text. This is always in <p> tags, but it is also always flaged by es lint and refuses to build. Is there any way to disable the check for quotes in thise case. There is an article, but it has a different eslint file, i have a .json one which means I have no idea how to disable this rule.
Answered by !=tgt
<p>
{`

so like "quotes" will not throw an error here
`}
</p>
View full answer

16 Replies

Something like unexpected token “ replace with &quot but like I don’t want to right that every time
Black Turnstone
"react/no-unescaped-entities"

This is the eslint rule you are looking for
ngl for a docs site you should be using markdown
@!=tgt ngl for a docs site you should be using markdown
Black Turnstone
yes you can use mdx it works great
@!=tgt ngl for a docs site you should be using markdown
Yea I should be but it’s not doc’s, it’s an interactive tutorial
oh
i mean you can just replace the qoutes
OR
encase the block in
{``}
so it'd be like
<p>
{`

so like "quotes" will not throw an error here
`}
</p>
Answer
K great thanks
if you got a solution mark it as the answer
how lol