Skip to content

Conversation

ota-meshi
Copy link
Member

@ota-meshi ota-meshi commented Nov 21, 2022

This PR adds support for more typescript syntax to indent rules.

// Type parameters given to call expression, and new expressions
foo<T>(arg)
// ^^^
new Foo<T>(arg)
//     ^^^

// Instantiation expression
const ErrorMap = Map<string, Error>
//               ^^^^^^^^^^^^^^^^^^

// Satisfies operator
var a = {} satisfies Foo
//         ^^^^^^^^^

// Accessor property
class Foo {
  accessor foo;
//^^^^^^^^^^^^
}

Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
@ota-meshi ota-meshi merged commit e42f737 into master Dec 25, 2022
@ota-meshi ota-meshi deleted the indent-ts branch December 25, 2022 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants