Moved jshint config to .jshintrc

pull/4/head
Keivan Beigi 9 years ago
parent a7001ab322
commit 095e92c7dd

@ -8,20 +8,6 @@ var paths = require('./paths.js');
gulp.task('jshint', function () {
return gulp.src([paths.src.scripts, paths.src.exclude.libs])
.pipe(cache('jshint'))
.pipe(jshint({
'-W030': false,
'-W064': false,
'-W097': false, //Use the function form of “use strict”
'-W100': false, //Silently deleted characters (in locales)
'undef': true,
'globals': {
'module': true,
'require': true,
'define': true,
'window': true,
'document': true,
'console': true
}
}))
.pipe(jshint())
.pipe(jshint.reporter(stylish));
});

@ -32,6 +32,7 @@
"gulp-wrap": "0.5.0",
"jshint-stylish": "1.0.0",
"run-sequence": "1.0.2",
"streamqueue": "0.1.1"
"streamqueue": "0.1.1",
"jshint-loader" : "0.8.1"
}
}

@ -0,0 +1,19 @@
{
"-W030": false,
"-W064": false,
"-W097": false,
"-W100": false,
"undef": true,
"curly": true,
"immed": true,
"eqeqeq": true,
"latedef": true,
"globals": {
"module": true,
"require": true,
"define": true,
"window": true,
"document": true,
"console": true
}
}

@ -241,10 +241,6 @@ define(
vent.trigger(vent.Events.SeriesAdded, { series: self.model });
});
promise.fail(function () {
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');
});
},
_rootFoldersUpdated: function () {

@ -1,4 +1,5 @@
var path = require('path');
var stylish = require('jshint-stylish');
module.exports = {
entry : 'main.js',
@ -37,8 +38,19 @@ module.exports = {
'bootstrap.tagsinput' : 'JsLibraries/bootstrap.tagsinput',
'libs' : 'JsLibraries/'
}
}, output : {
},
output : {
filename : '_output/UI/main.js',
sourceMapFilename : '_output/UI/main.map'
}
},
module: {
//this doesn't work yet. wainting for https://github.com/spenceralger/rcloader/issues/5
preLoaders: [
{
test: /\.js$/, // include .js files
loader: "jshint-loader",
exclude: [/JsLibraries/,/node_modules/]
}
]
}
};

Loading…
Cancel
Save