Commit 7f94a79c authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

add babel-eslint, link all files

parent d4a030f9
......@@ -62,7 +62,7 @@ gulp.task('css', gulp.parallel('css-themes', 'css-print', 'css-core'))
gulp.task('test', gulp.series(
() => gulp.src(['./js/reveal.js', 'gulpfile.js']).pipe(eslint()).pipe(eslint.format())
() => gulp.src(['./js/**', 'gulpfile.js']).pipe(eslint()).pipe(eslint.format())
// () => gulp.src(['./test/*.html']).pipe(qunit())
))
......@@ -90,7 +90,7 @@ gulp.task('serve', () => {
livereload: true
})
gulp.watch(['js/**/*'], gulp.series('js', 'test'))
gulp.watch(['js/**'], gulp.series('js', 'test'))
gulp.watch([
'css/theme/source/*.{sass,scss}',
......
This diff is collapsed.
......@@ -41,6 +41,7 @@
"socket.io": "^2.3.0",
"yargs": "^15.1.0",
"webpack-stream": "^5.2.1",
"babel-eslint": "^10.1.0",
"@babel/core": "^7.8.7",
"@babel/preset-env": "^7.8.7"
},
......@@ -49,6 +50,7 @@
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment