Skip to content

Instantly share code, notes, and snippets.

@josephj
Created April 16, 2013 07:26
Show Gist options
  • Save josephj/5394066 to your computer and use it in GitHub Desktop.
Save josephj/5394066 to your computer and use it in GitHub Desktop.
miiiCasa 的 JSHint 設定,還需要再討論。
/**
* JSHint options: http://www.jshint.com/docs/#options
*/
{
"bitwise": true,
//"camelcase": true,
"curly": true, // Disallows curly.
"eqeqeq": true,
"forin": true,
"immed": true,
"indent": 4,
"latedef": false, // TODO: Not so sure what is it.
"newcap": true,
"noarg": true,
"noempty": true,
"nonew": true,
"plusplus": true,
"quotmark": "double",
"undef": true,
"unused": false,
"strict": false, // TODO: Should I enable "use strict" ?
"trailing": true,
"maxparams": 5, // TODO: Need to discuss.
"maxdepth": 2, // TODO: Need to discuss.
// "maxstatements": 1, // TODO: Not sure.
"maxcomplexity": 10, // TODO: Need to discuss.
"maxlen": 150,
"debug": false,
"laxcomma": false,
"scripturl": false,
"smarttabs": false,
"sub": false,
"supernew": false,
"regexp": true,
"browser": true,
"yui": true,
"white": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment