Closed danse closed 11 years ago
Thanks but the generated package comes with a JSHint config that allows this. You should be using that.
Function hoisting is a feature of the language and in this case helps to expose early in the file that you're exporting a specific function as a flight component.
After generating a package i see that the
return
statement in the component is before the component function definition. This is also the style used in general in flight documentation.I would ask to invert the order, though, because using a function before declaring it raises an error on some linters.