Skip to content

Commit 0d6af22

Browse files
committed
Replace gulp-eslint (outdated) with ESLint CLI
1 parent 62798e3 commit 0d6af22

File tree

3 files changed

+7
-76
lines changed

3 files changed

+7
-76
lines changed

gulpfile.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
var {spawn} = require('child_process');
44
var gulp = require('gulp');
5-
var eslint = require('gulp-eslint');
65
var docs = require('./scripts/docs.js');
76

87

9-
gulp.task('quality', function() {
10-
return gulp.src(['*.js', '{rules,test,scripts}/**/*.js'])
11-
.pipe(eslint())
12-
.pipe(eslint.format())
13-
.pipe(eslint.failAfterError());
8+
gulp.task('quality', function(cb) {
9+
const cmd = spawn('npx', [
10+
'eslint',
11+
'*.js',
12+
'{rules,test,scripts}/**/*.js'
13+
], {stdio: 'inherit', shell: true});
14+
cmd.on('close', cb);
1415
});
1516

1617
gulp.task('test', function(cb) {

package-lock.json

Lines changed: 0 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"eslint": "5.16.0",
2727
"espree": "10.4.0",
2828
"gulp": "4.0.2",
29-
"gulp-eslint": "5.0.0",
3029
"istanbul": "0.4.5",
3130
"mocha": "11.7.1",
3231
"nyc": "17.1.0",

0 commit comments

Comments
 (0)