Merge remote-tracking branch 'remotes/upstream/main' into next
# Conflicts: # docs/browser.md # package.json # scripts/release/release.js # src/language-js/parse/postprocess/index.js # src/language-js/parse/postprocess/typescript.js # src/language-js/parse/typescript.js # src/language-js/print/type-parameters.js # tests/format/js/export-star/__snapshots__/jsfmt.spec.js.snap # tests/format/js/export-star/jsfmt.spec.js # tests/format/js/export/__snapshots__/jsfmt.spec.js.snap # tests/format/js/export/jsfmt.spec.js # tests/format/misc/typescript-only/__snapshots__/jsfmt.spec.js.snap # tests/format/typescript/decorators/jsfmt.spec.js # tests/format/typescript/export/jsfmt.spec.js # yarn.lock
This commit is contained in:
commit
aaffacce2c
12 files changed
+110
-94
No files matched your search
@@ -1,22 +0,0 @@
|
||||
#### Add missing parentheses for decorator (#14393 by @fisker)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```jsx
|
||||
// Input
|
||||
class Person {
|
||||
@(myDecoratorArray[0])
|
||||
greet() {}
|
||||
}
|
||||
|
||||
// Prettier stable
|
||||
class Person {
|
||||
@myDecoratorArray[0]
|
||||
greet() {}
|
||||
}
|
||||
|
||||
// Prettier main
|
||||
class Person {
|
||||
@(myDecoratorArray[0])
|
||||
greet() {}
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user