Permalink
Browse files

CodeClimate & ESLint

  • Loading branch information...
maennchen committed Mar 5, 2016
1 parent eb717a7 commit 073e2bab374711a5e4b1ce788e7b81e32cd0cba1
@@ -0,0 +1,6 @@
engines:
eslint:
enabled: true
ratings:
paths:
- "src/**/*"
@@ -0,0 +1,19 @@
{
"extends": "eslint:recommended",
"globals": {
"angular": false,
"module": false,
"inject": false,
"describe": false,
"beforeEach": false,
"afterEach": false,
"expect": false,
"fail": false,
"it": false,
"require": false,
"toObject": false
},
"rules":{
"comma-dangle": [ 0, "always-multiline" ]
}
}
@@ -5,7 +5,8 @@ var gulp = require('gulp')
, jshint = require('gulp-jshint')
, gulpUtil = require('gulp-util')
, angularFilesort = require('gulp-angular-filesort')
, karma = require('karma');
, karma = require('karma')
, eslint = require('gulp-eslint');
gulp.task('default', [
'compress',
@@ -26,6 +27,7 @@ gulp.task('watch', function() {
gulp.task('test', [
'karma',
'jshint',
'eslint',
]);
gulp.task('compress', [
@@ -55,6 +57,12 @@ gulp.task('jshint', function() {
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('eslint', function() {
return gulp.src([__dirname + '/src/**/*.js', __dirname + '/test/**/*.js'])
.pipe(eslint())
.pipe(eslint.format());
});
gulp.task(
'karma',
[
Oops, something went wrong.

0 comments on commit 073e2ba

Please sign in to comment.