emacs-typescript / typescript.el

TypeScript-support for Emacs
GNU General Public License v3.0
266 stars 79 forks source link

No option to achieve desired formatting #184

Closed coddra closed 1 year ago

coddra commented 1 year ago

I want tide to format my code so, that array literals look like this: [ 0, 1, 2 ] but indexing an array looks like this: someArray[0].

When setting the insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets to t, the second one looks like this: someArray[ 0 ], but when setting it to nil, the first one looks like this: [0, 1, 2]

Please, if you have the time and capacity, make an option to leave brackets unchanged or even better to insert space only at array literals, but not on indexing. Thanks in advance!

Coddra

coddra commented 1 year ago

I sent this to the wrong repository :c