Urara-Blog/node_modules/.pnpm-store/v3/files/48/92a4b9c393cf1be5faecbce7a788dc4356999e4cfcaa635e38bff9d03b243f0201450406eb4c4d1278fb9a1945270e538b01e9080e5e5476436bdef5f598e1
2022-08-14 01:14:53 +08:00

32 lines
829 B
Text

---
description: 'Enforce the consistent use of either backticks, double, or single quotes.'
---
> 🛑 This file is source code, not the primary documentation location! 🛑
>
> See **https://typescript-eslint.io/rules/quotes** for documentation.
## Rule Details
This rule extends the base [`eslint/quotes`](https://eslint.org/docs/rules/quotes) rule.
It adds support for TypeScript features which allow quoted names, but not backtick quoted names.
## How to Use
```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"quotes": "off",
"@typescript-eslint/quotes": ["error"]
}
```
## Options
See [`eslint/quotes` options](https://eslint.org/docs/rules/quotes#options).
<sup>
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/quotes.md)
</sup>