Skip to content

Commit e6b065c

Browse files
committed
refactor: update types
1 parent 84a1d31 commit e6b065c

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.README/rules/type-formatting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For object properties, specify whether a "semicolon", "comma", "linebreak",
4545
"semicolon-and-linebreak", or "comma-and-linebreak" should be used after
4646
each object property-value pair.
4747

48-
Defaults to `null` which is equivalent to "semicolon".
48+
Defaults to `"comma"`.
4949

5050
### `objectFieldIndent`
5151

docs/rules/type-formatting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ For object properties, specify whether a "semicolon", "comma", "linebreak",
6363
"semicolon-and-linebreak", or "comma-and-linebreak" should be used after
6464
each object property-value pair.
6565

66-
Defaults to `null` which is equivalent to "semicolon".
66+
Defaults to `"comma"`.
6767

6868
<a name="user-content-type-formatting-options-objectfieldindent"></a>
6969
<a name="type-formatting-options-objectfieldindent"></a>

src/rules.d.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -765,16 +765,13 @@ export interface Rules {
765765
genericDot?: boolean;
766766
objectFieldIndent?: string;
767767
objectFieldQuote?: "double" | "single" | null;
768-
objectFieldSeparator?:
769-
| "comma"
770-
| "comma-and-linebreak"
771-
| "linebreak"
772-
| "semicolon"
773-
| "semicolon-and-linebreak"
774-
| null;
768+
objectFieldSeparator?: "comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak";
769+
objectFieldSeparatorTrailingPunctuation?: boolean;
775770
propertyQuotes?: "double" | "single" | null;
776771
separatorForSingleObjectField?: boolean;
777772
stringQuotes?: "double" | "single";
773+
typeBracketSpacing?: string;
774+
unionSpacing?: string;
778775
}
779776
];
780777

0 commit comments

Comments
 (0)