diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-06-22 03:40:09 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-06-22 03:40:09 +0800 |
commit | 45506d6758e284aa6f5c128b12dea55f229f65e6 (patch) | |
tree | 2aeb64583c28356e781d2c49874dc7062a13f766 /gulpfile.js | |
parent | 7b9a1197c8efe0a33d107c38e94871485831ec89 (diff) | |
download | tangerine-wallet-browser-45506d6758e284aa6f5c128b12dea55f229f65e6.tar.gz tangerine-wallet-browser-45506d6758e284aa6f5c128b12dea55f229f65e6.tar.zst tangerine-wallet-browser-45506d6758e284aa6f5c128b12dea55f229f65e6.zip |
Got eslint running correctly
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index 368446bff..4204d79b9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,6 +10,8 @@ var assign = require('lodash.assign') var livereload = require('gulp-livereload') var del = require('del') var eslint = require('gulp-eslint') +var fs = require('fs') +var path = require('path') // browser reload @@ -55,7 +57,7 @@ gulp.task('copy:watch', function(){ gulp.task('lint', function () { // Ignoring node_modules, dist, and docs folders: return gulp.src(['app/**/*.js', 'ui/**/*.js', '!node_modules/**', '!dist/**', '!docs/**']) - .pipe(eslint()) + .pipe(eslint(fs.readFileSync(path.join(__dirname, '.eslintrc')))) // eslint.format() outputs the lint results to the console. // Alternatively use eslint.formatEach() (see Docs). .pipe(eslint.format()) |