Skip to content

Commit 33f69df

Browse files
committed
Avoid annoying linting errors
1 parent 4b83118 commit 33f69df

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

gulpfile.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ const testWebpackConfig = require('./webpack.test.config');
1414

1515
const banner = '/*! <%= pkg.name %> - v<%= pkg.version %> | <%= new Date().getFullYear() %> */\n';
1616

17-
gulp.task('test-script-format', () =>
17+
gulp.task('test-script-format', () => (
1818
gulp.src(['./src/js/**/*.js'])
1919
.pipe(eslint())
2020
.pipe(eslint.format())
2121
.pipe(eslint.failOnError())
22-
);
22+
));
2323

24-
gulp.task('test-mocha', ['test-script-format'], () =>
24+
gulp.task('test-mocha', ['test-script-format'], () => (
2525
gulp.src(['./test/**/*.js'])
2626
.pipe(mocha({
2727
compilers: [
@@ -31,18 +31,18 @@ gulp.task('test-mocha', ['test-script-format'], () =>
3131
'./test/setup.js',
3232
],
3333
}))
34-
);
34+
));
3535

3636
gulp.task('test', ['test-script-format', 'test-mocha']);
3737

38-
gulp.task('build-script', ['test'], () =>
38+
gulp.task('build-script', ['test'], () => (
3939
gulp.src(['./src/index.js'])
4040
.pipe(webpackStream(webpackConfig, webpack))
4141
.pipe(header(banner, { pkg }))
4242
.pipe(gulp.dest('./lib/'))
43-
);
43+
));
4444

45-
gulp.task('build-style', () =>
45+
gulp.task('build-style', () => (
4646
gulp.src('./src/sass/**/*.scss')
4747
.pipe(scsslint())
4848
.pipe(scsslint.failReporter())
@@ -53,11 +53,11 @@ gulp.task('build-style', () =>
5353
browsers: ['last 2 versions'],
5454
}))
5555
.pipe(gulp.dest('./lib'))
56-
);
56+
));
5757

5858
gulp.task('build', ['build-script', 'build-style']);
5959

60-
gulp.task('build-examples-style', () =>
60+
gulp.task('build-examples-style', () => (
6161
gulp.src('./examples/src/**/*.scss')
6262
.pipe(scsslint())
6363
.pipe(scsslint.failReporter())
@@ -69,20 +69,20 @@ gulp.task('build-examples-style', () =>
6969
}))
7070
.pipe(gulp.dest('./examples/dist'))
7171
.pipe(browserSync.stream())
72-
);
72+
));
7373

74-
gulp.task('build-examples-script', () =>
74+
gulp.task('build-examples-script', () => (
7575
gulp.src(['./examples/src/index.js'])
7676
.pipe(webpackStream(testWebpackConfig, webpack))
7777
.pipe(gulp.dest('./examples/dist/'))
7878
.pipe(browserSync.stream())
79-
);
79+
));
8080

81-
gulp.task('build-examples-html', () =>
81+
gulp.task('build-examples-html', () => (
8282
gulp.src('./examples/src/index.html')
8383
.pipe(gulp.dest('./examples/dist/'))
8484
.pipe(browserSync.stream())
85-
);
85+
));
8686

8787
gulp.task('examples', ['build-examples-style', 'build-examples-script', 'build-examples-html'], () => {
8888
browserSync.init({ server: './examples/dist' });

0 commit comments

Comments
 (0)