Skip to content

Commit

Permalink
chore(lint): add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanrsmith committed Aug 23, 2015
1 parent 1cc8134 commit e86f9ce
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./node_modules/aurelia-tools/.eslintrc",
"rules": {
"no-new-func": 0
}
}
8 changes: 4 additions & 4 deletions build/tasks/lint.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var gulp = require('gulp');
var paths = require('../paths');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var eslint = require('gulp-eslint');

gulp.task('lint', function() {
return gulp.src(paths.source)
.pipe(jshint())
.pipe(jshint.reporter(stylish));
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failOnError());
});
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@
}
},
"devDependencies": {
"aurelia-tools": "^0.1.6",
"aurelia-tools": "^0.1.11",
"babel-dts-generator": "^0.2.5",
"babel-eslint": "^4.0.5",
"conventional-changelog": "0.0.11",
"del": "^1.1.0",
"gulp": "^3.8.10",
"gulp-babel": "^5.1.0",
"gulp-bump": "^0.3.1",
"gulp-concat": "^2.6.0",
"gulp-eslint": "^1.0.0",
"gulp-insert": "^0.4.0",
"gulp-jshint": "^1.9.0",
"gulp-rename": "^1.2.2",
"gulp-typedoc": "^1.2.1",
"gulp-typedoc-extractor": "0.0.3",
"gulp-yuidoc": "^0.1.2",
"jasmine-core": "^2.1.3",
"jshint-stylish": "^1.0.0",
"karma": "^0.12.28",
"karma-babel-preprocessor": "^5.2.1",
"karma-chrome-launcher": "^0.1.7",
Expand Down

0 comments on commit e86f9ce

Please sign in to comment.