-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b69c63
commit 9847d11
Showing
33 changed files
with
263 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"presets": ["@babel/preset-react"], | ||
"presets": ["@babel/preset-react"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"presets": ["@babel/preset-react"], | ||
"presets": ["@babel/preset-react"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
var test: { | ||
data: { | ||
trueKey: boolean, | ||
falseKey: boolean, | ||
trueKey: boolean; | ||
falseKey: boolean; | ||
subKey: { | ||
subProp: number | ||
} | ||
} | ||
subProp: number; | ||
}; | ||
}; | ||
} = { | ||
data: { | ||
trueKey: true, | ||
falseKey: false, | ||
subKey: { | ||
subProp: 1 | ||
} | ||
} | ||
} | ||
subProp: 1, | ||
}, | ||
}, | ||
}; | ||
|
||
export default test | ||
export default test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import data from "./data.babel" | ||
import data from './data.babel'; | ||
|
||
const React = { | ||
createElement(Component: () => any) { | ||
return Component() | ||
} | ||
} | ||
return Component(); | ||
}, | ||
}; | ||
|
||
// Test harmony arrow functions. | ||
const Component = () => { | ||
var trueKey: boolean = true | ||
var falseKey: boolean = false | ||
var subKey = { subProp: 1 } | ||
var trueKey: boolean = true; | ||
var falseKey: boolean = false; | ||
var subKey = { subProp: 1 }; | ||
|
||
// Test harmony object short notation. | ||
return { data: { trueKey, falseKey, subKey } } | ||
} | ||
return { data: { trueKey, falseKey, subKey } }; | ||
}; | ||
|
||
// Test TSX syntax. | ||
export default <Component {...data} /> | ||
export default <Component {...data} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
Test Fixture | ||
============ | ||
# Test Fixture | ||
|
||
module.exports = | ||
data: | ||
trueKey: true | ||
falseKey: false | ||
subKey: | ||
subProp: 1 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
class Foo { | ||
#x = 1 | ||
#y = 2 | ||
#x = 1; | ||
#y = 2; | ||
} | ||
|
||
export default { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
class Foo { | ||
#x: number = 1 | ||
#y: number = 2 | ||
#x: number = 1; | ||
#y: number = 2; | ||
} | ||
|
||
export default { | ||
|
Oops, something went wrong.