Skip to content

Instantly share code, notes, and snippets.

@Gerst20051
Forked from artanisdesign/jshint_setup.md
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gerst20051/24f032a08975418bb586 to your computer and use it in GitHub Desktop.
Save Gerst20051/24f032a08975418bb586 to your computer and use it in GitHub Desktop.

Install JSHint Plugin:

In Studio:

After successfull install, right click on your project:

  • Properties: you should have a JSHint option in the menu.

Enable JSHint for these files and folders, add Files matching: *.js

  • in folders app/
  • including all subfolders.

Open the JSHint menu - Configuration, and enable project specific config with these settings

(if you only using app studio for Tidev, you can do it globally in preferences)

Setup for using spaces as indention:

Appcelerator/Titanium Studio - Preferences - Studio - Editors - Javascript

Indention section: Use spaces - Tab Size: 4

Auto indent : true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment