[TIMOB-25362] TiAPI: Move KitchenSink-v2 to use ES6
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | High |
| Status | Closed |
| Resolution | Done |
| Resolution Date | 2018-02-22T15:00:38.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 7.1.0 |
| Components | Android, iOS, Windows |
| Labels | n/a |
| Reporter | Hans Knöchel |
| Assignee | Hans Knöchel |
| Created | 2017-10-02T14:23:22.000+0000 |
| Updated | 2018-02-22T15:00:58.000+0000 |
Description
Now that Alloy uses Babel to transpile ES6 code, we should update [kitchensink-v2](https://github.com/appcelerator/kitchensink-v2) to use ES6 as well. It is our most important sample-project and should reflect the latest technologies we provide.
Changes to consider
- Change
var to let / const
- Use arrow-syntax (() => instead of function() callback). Maybe even use promises?
- Use classes instead of functions?
- Add linting of possible?
Resolved as part of https://github.com/appcelerator/kitchensink-v2/pull/28. Once 7.1.0 is released, the PR will be merged.