Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-use-before-define #2

Closed
Akkuma opened this issue Aug 17, 2015 · 1 comment
Closed

no-use-before-define #2

Akkuma opened this issue Aug 17, 2015 · 1 comment

Comments

@Akkuma
Copy link

Akkuma commented Aug 17, 2015

http://eslint.org/docs/rules/no-use-before-define

  • They don’t use the nofuncs option, which might be something we want as it is often useful.

Proposed:

'no-use-before-define': [2, 'nofunc'],

Result

//Can now also write code like this
module.exports = {
  a: a,
  b: b,
  c: c
};

function a() {}
function b() {}
function c() {}

function test(data) {
  return internal;

  function internal(a, b, c) {
  }
}
@nzack
Copy link

nzack commented Aug 18, 2015

Use proposal.

@Akkuma Akkuma closed this as completed Aug 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants