Add .jshintrc, .jshintignore and update .gitignore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
||||
*~
|
||||
.*.swp
|
||||
.idea
|
||||
*.kate-swp
|
||||
*.bak
|
||||
/node_modules
|
||||
|
||||
2
.jshintignore
Normal file
2
.jshintignore
Normal file
@@ -0,0 +1,2 @@
|
||||
grunt.js
|
||||
src\jquery.uls.data.js
|
||||
40
.jshintrc
Normal file
40
.jshintrc
Normal 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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user