95 lines
1.1 KiB
Markdown
95 lines
1.1 KiB
Markdown
# Interface: FormatterConfig
|
|
|
|
## Extended by
|
|
|
|
- [`UserConfig`](UserConfig.md)
|
|
|
|
## Properties
|
|
|
|
### semicolons
|
|
|
|
> **semicolons**: `boolean`
|
|
|
|
Configures Prettier [code formatter](https://livecodes.io/docs/features/code-format) to use semi-colons.
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
true
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:838
|
|
|
|
***
|
|
|
|
### singleQuote
|
|
|
|
> **singleQuote**: `boolean`
|
|
|
|
Configures Prettier [code formatter](https://livecodes.io/docs/features/code-format) to use single quotes instead of double quotes.
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
false
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:843
|
|
|
|
***
|
|
|
|
### tabSize
|
|
|
|
> **tabSize**: `number`
|
|
|
|
The number of spaces per indentation-level.
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
2
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:832
|
|
|
|
***
|
|
|
|
### trailingComma
|
|
|
|
> **trailingComma**: `boolean`
|
|
|
|
Configures Prettier [code formatter](https://livecodes.io/docs/features/code-format) to use [trailing commas](https://prettier.io/docs/en/options.html#trailing-commas).
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
true
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:849
|
|
|
|
***
|
|
|
|
### useTabs
|
|
|
|
> **useTabs**: `boolean`
|
|
|
|
If `true`, lines are indented with tabs instead of spaces.
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
false
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:826 |