Skip to content

Instantly share code, notes, and snippets.

@tonylukasavage
Created June 24, 2014 13:27
Show Gist options
  • Save tonylukasavage/27e4886cdea3a27406d6 to your computer and use it in GitHub Desktop.
Save tonylukasavage/27e4886cdea3a27406d6 to your computer and use it in GitHub Desktop.
generic .jshintrc for ti, alloy, node.js, mocha
{
"browser": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"expr": true,
"immed": true,
"indent": 4,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
"nonew": true,
"undef": true,
"unused": false,
"trailing": true,
"loopfunc": true,
"proto": true,
"node": true,
"-W104": true,
"-W068": true,
"globals": {
"alert": false,
"task": false,
"Ti": false,
"Titanium": false,
"mocha": false,
"describe": false,
"it": false,
"before": false,
"beforeEach": false,
"after": false,
"afterEach": false,
"$": false
}
}
@FokkeZB
Copy link

FokkeZB commented Jul 1, 2014

Forked: https://gist.github.com/FokkeZB/8798af5e4c064f837abd

  • adds some of missing _, OS_* and other globals
  • disables globalstrict since it's of little use doing this in your Alloy controller

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