Docs: delete outdated part about decorators (#17662)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
1 parent
0926587a5f
commit
e9045d0fcc
2 files changed
-18
No files matched your search
@@ -138,15 +138,6 @@ class OrderLine {
|
||||
}
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```js
|
||||
@decorator export class Foo {}
|
||||
|
||||
export @decorator class Foo {}
|
||||
```
|
||||
|
||||
### Template literals
|
||||
|
||||
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.
|
||||
|
||||
@@ -138,15 +138,6 @@ class OrderLine {
|
||||
}
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```js
|
||||
@decorator export class Foo {}
|
||||
|
||||
export @decorator class Foo {}
|
||||
```
|
||||
|
||||
### Template literals
|
||||
|
||||
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.
|
||||
|
||||
Reference in new issue
Block a user