Auto Suggestion and JSLint warnings with Node.js #6376

Closed
sharat opened this Issue Jan 6, 2014 · 1 comment

2 participants

@sharat
  1. What's the best way to get auto suggestion with built in node modules?
  2. How can I avoid warnings like 'require' is not defined before using it etc.?
@njx
Adobe Systems Incorporated member
  1. I don't believe we currently have code hinting for node-style require yet (Tern supports it but I don't think it works in Brackets for some reason - perhaps we just have to turn it on). Even if we turned that on, though, we would have to do some extra work to have it include the built-in node APIs (though it's also possible that Tern has that as well). I'm going to mark this "move to backlog" for this feature.

  2. For now, you'd have to include the jslint options in a comment at the top of each file (you probably want /*jslint node: true */ to get all the standard node globals). In the next release we'll have a project settings file that you can use to set jslint options globally across an entire folder.

@sharat sharat closed this Oct 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment