Add .jshintrc, .jshintignore and update .gitignore

This commit is contained in:
Siebrand Mazeland
2013-04-26 16:39:06 +02:00
parent 387ca09455
commit 12c1290deb
3 changed files with 43 additions and 0 deletions

40
.jshintrc Normal file
View File

@@ -0,0 +1,40 @@
{
/* Common */
// Enforcing
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonew": true,
"quotmark": "single",
"trailing": true,
"undef": true,
"unused": true,
// Legacy
"onevar": true,
/* Local */
// Enforcing
"bitwise": true,
"forin": false,
"regexp": false,
"strict": true,
// Relaxing
"laxbreak": true,
"smarttabs": true,
"multistr": true,
// Environment
"browser": true,
"predef": [
"_",
"jQuery",
"QUnit"
]
}