Motivation
Allow to control spacing after { and before } in object type - { a: string, b: number } notation
In https://github.com/webpack/webpack/ we prefer to write object notation with space after { and before }
Example:
/** @type {{ a: string, b: number }} */
const myObj = { a: "string", b: 1 };
To align with prettier default formatting for objects
Current behavior
No option
Desired behavior
Adding spaces
Alternatives considered
No alternatives, right now we need to disable typeBracketSpacing
Motivation
Allow to control spacing after
{and before}in object type -{ a: string, b: number }notationIn https://github.com/webpack/webpack/ we prefer to write object notation with space after
{and before}Example:
To align with prettier default formatting for objects
Current behavior
No option
Desired behavior
Adding spaces
Alternatives considered
No alternatives, right now we need to disable
typeBracketSpacing