Urara-Blog/node_modules/.pnpm-store/v3/files/fb/508b58df365418013ef75eb6df0b50f1401f1ef205c9960b1f99b684df5021a736699113f359af61d1e159a316b4f7373a68e372adba8c754474ce1d82e7be
2022-08-14 01:14:53 +08:00

32 lines
859 B
Text

---
description: 'Enforce consistent spacing inside braces.'
---
> 🛑 This file is source code, not the primary documentation location! 🛑
>
> See **https://typescript-eslint.io/rules/object-curly-spacing** for documentation.
## Rule Details
This rule extends the base [`eslint/object-curly-spacing`](https://eslint.org/docs/rules/object-curly-spacing) rule.
It adds support for TypeScript's object types.
## How to Use
```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"object-curly-spacing": "off",
"@typescript-eslint/object-curly-spacing": ["error"]
}
```
## Options
See [`eslint/object-curly-spacing` options](https://eslint.org/docs/rules/object-curly-spacing#options).
<sup>
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/object-curly-spacing.md)
</sup>