Skip to content

Commit e9045d0

Browse files
icecream17fisker
andauthored
Docs: delete outdated part about decorators (#17662)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
1 parent 0926587 commit e9045d0

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

docs/rationale.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,6 @@ class OrderLine {
138138
}
139139
```
140140

141-
One final thing: TC39 has [not yet decided if decorators come before or after `export`](https://github.com/tc39/proposal-decorators/issues/69). In the meantime, Prettier supports both:
142-
143-
<!-- prettier-ignore -->
144-
```js
145-
@decorator export class Foo {}
146-
147-
export @decorator class Foo {}
148-
```
149-
150141
### Template literals
151142

152143
Template literals can contain interpolations. Deciding whether it's appropriate to insert a linebreak within an interpolation unfortunately depends on the semantic content of the template - for example, introducing a linebreak in the middle of a natural-language sentence is usually undesirable. Since Prettier doesn't have enough information to make this decision itself, it uses a heuristic similar to that used for objects: it will only split an interpolation expression across multiple lines if there was already a linebreak within that interpolation.

website/versioned_docs/version-stable/rationale.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,6 @@ class OrderLine {
138138
}
139139
```
140140

141-
One final thing: TC39 has [not yet decided if decorators come before or after `export`](https://github.com/tc39/proposal-decorators/issues/69). In the meantime, Prettier supports both:
142-
143-
<!-- prettier-ignore -->
144-
```js
145-
@decorator export class Foo {}
146-
147-
export @decorator class Foo {}
148-
```
149-
150141
### Template literals
151142

152143
Template literals can contain interpolations. Deciding whether it's appropriate to insert a linebreak within an interpolation unfortunately depends on the semantic content of the template - for example, introducing a linebreak in the middle of a natural-language sentence is usually undesirable. Since Prettier doesn't have enough information to make this decision itself, it uses a heuristic similar to that used for objects: it will only split an interpolation expression across multiple lines if there was already a linebreak within that interpolation.

0 commit comments

Comments
 (0)