fix flow-strip-types/flow-comments removing entire ClassProperty (#4587)
This commit is contained in:
committed by
Daniel Tschinder
parent
5ea57d5e9c
commit
8709899b42
@@ -0,0 +1,5 @@
|
||||
class X {
|
||||
foo = 2
|
||||
bar: number = 3
|
||||
baz: ?string
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class X {
|
||||
foo = 2;
|
||||
bar /*: number*/ = 3;
|
||||
baz /*: ?string*/;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
"transform-flow-comments",
|
||||
"syntax-class-properties"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user