mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-20 18:49:13 +08:00
32 lines
829 B
Text
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>
|