pagarme / javascript-style-guide

:art: Javascript styleguide followed by us here at Pagar.me
MIT License
50 stars 8 forks source link

Modify no-use-before-define #23

Closed itsdaiego closed 6 years ago

itsdaiego commented 6 years ago

closes #21

Description:

Create an exception for this rule, now functions can be used before defined.

Also, I don't know what kind of examples to include since both ways are correct now, for example:

Right:

f();
function f() {}

Right

function f() {}
f();

Any ideas? Thanks!!!