Skip to content

Commit 6da4dd9

Browse files
committed
Remove Gulp lint task, update eslint.json
1 parent 79892af commit 6da4dd9

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

Gulpfile.js

-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var concat = require('gulp-concat');
88
var uglify = require('gulp-uglify');
99
var rename = require('gulp-rename');
1010
var webpack = require('webpack');
11-
var eslint = require('gulp-eslint');
1211
var map = require('map-stream');
1312
var bump = require('gulp-bump');
1413
var react = require('gulp-react');
@@ -160,12 +159,6 @@ gulp.task('bower-version', function() {
160159

161160
gulp.task('bower', ['bower-build', 'bower-build-min', 'bower-build-debug', 'bower-version']);
162161

163-
gulp.task('lint', function() {
164-
return gulp.src('src/js/ripple/*.js')
165-
.pipe(eslint({ reset: true, configFile: './eslint.json' }))
166-
.pipe(eslint.format());
167-
});
168-
169162
gulp.task('watch', function() {
170163
gulp.watch('src/js/ripple/*', [ 'build-debug' ]);
171164
});

eslint.json

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"no-space-before-semi": 1,
6262
"no-spaced-func": 1,
6363
"space-after-keywords": [ 1, "always" ],
64-
"space-in-brackets": [ 1, "always" ],
6564
"space-infix-ops": 1,
6665
"space-return-throw-case": 1,
6766
"spaced-line-comment": 1,

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
"devDependencies": {
2828
"assert-diff": "0.0.4",
2929
"coveralls": "~2.10.0",
30+
"eslint": "^0.13.0",
3031
"gulp": "~3.6.2",
3132
"gulp-bump": "~0.1.10",
3233
"gulp-clean-dest": "^0.1.0",
3334
"gulp-concat": "~2.2.0",
34-
"gulp-eslint": "^0.2.0",
3535
"gulp-filelog": "^0.4.1",
3636
"gulp-flowtype": "^0.4.1",
3737
"gulp-plumber": "^0.6.6",
@@ -52,7 +52,7 @@
5252
"pretest": "node_modules/.bin/gulp concat-sjcl",
5353
"test": "./node_modules/.bin/istanbul test -x build/sjcl.js -x src/js/jsbn/* ./node_modules/mocha/bin/_mocha -- --reporter tap test/*-test.js",
5454
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
55-
"lint": "./node_modules/.bin/gulp lint",
55+
"lint": "eslint --reset -c eslint.json src/js/ripple/*.js",
5656
"perf": "./scripts/perf_test.sh"
5757
},
5858
"repository": {

0 commit comments

Comments
 (0)