Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Limon Monte authored and web-padawan committed Mar 1, 2021
1 parent c4e3ce1 commit 11ab002
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/vaadin-checkbox/demo/common.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- Menu Items -->
<script>
window.demos = [
{name: 'index', title: 'Basic Examples'}
{name: 'index', title: 'Basic Examples'}
];
</script>
<link rel="import" href="../../elements-demo-resources/demo-navigation.html">
Expand Down
35 changes: 18 additions & 17 deletions packages/vaadin-checkbox/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ gulp.task('lint:js', function() {
'*.js',
'test/**/*.js'
])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError('fail'));
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError('fail'));
});

gulp.task('lint:html', function() {
Expand All @@ -35,12 +35,13 @@ gulp.task('lint:html', function() {
'demo/**/*.html',
'test/**/*.html'
])
.pipe(htmlExtract({
sel: 'script, code-example code'
}))
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError('fail'));
.pipe(htmlExtract({
sel: 'script, code-example code',
strip: true
}))
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError('fail'));
});

gulp.task('lint:css', function() {
Expand All @@ -49,14 +50,14 @@ gulp.task('lint:css', function() {
'demo/**/*.html',
'test/**/*.html'
])
.pipe(htmlExtract({
sel: 'style'
}))
.pipe(stylelint({
reporters: [
{formatter: 'string', console: true}
]
}));
.pipe(htmlExtract({
sel: 'style'
}))
.pipe(stylelint({
reporters: [
{formatter: 'string', console: true}
]
}));
});

function runCommand(cmd, cb) {
Expand Down

0 comments on commit 11ab002

Please # to comment.