Update JSHint config.
This commit is contained in:
parent
0b49cf0507
commit
220c0e18ca
10
.jshintrc
10
.jshintrc
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"curly": false,
|
"boss": true,
|
||||||
|
"curly": true,
|
||||||
"eqeqeq": true,
|
"eqeqeq": true,
|
||||||
|
"eqnull": true,
|
||||||
"immed": true,
|
"immed": true,
|
||||||
"latedef": true,
|
"latedef": true,
|
||||||
"newcap": true,
|
"newcap": true,
|
||||||
"noarg": true,
|
"noarg": true,
|
||||||
|
"node": true,
|
||||||
"sub": true,
|
"sub": true,
|
||||||
"undef": true,
|
"undef": true,
|
||||||
"boss": true,
|
"unused": "vars"
|
||||||
"unused": "vars",
|
|
||||||
"eqnull": true,
|
|
||||||
"node": true
|
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,9 @@ module.exports = function(grunt) {
|
|||||||
var file = options.outfile;
|
var file = options.outfile;
|
||||||
|
|
||||||
if (options.host) {
|
if (options.host) {
|
||||||
if (!(/\/$/).test(options.host)) options.host = options.host + '/';
|
if (!(/\/$/).test(options.host)) {
|
||||||
|
options.host = options.host + '/';
|
||||||
|
}
|
||||||
file = options.host + options.outfile;
|
file = options.host + options.outfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user