mirror of
https://gitlab.silvrtree.co.uk/martind2000/ft.git
synced 2025-02-04 10:30:14 +00:00
24 lines
549 B
JavaScript
24 lines
549 B
JavaScript
// linting configuration in is .eslintrc.json file in project root folder
|
|
|
|
import gulp from 'gulp';
|
|
import project from '../aurelia.json';
|
|
import lintspaces from 'gulp-lintspaces';
|
|
|
|
export default function lintMarkup() {
|
|
return gulp.src(project.markupProcessor.source)
|
|
.pipe(lintspaces({
|
|
'newline': true,
|
|
'newlineMaximum': 2,
|
|
'trailingspaces': true,
|
|
'indentation': 'spaces',
|
|
'spaces': 4,
|
|
'ignores': [
|
|
'html-comments'
|
|
]
|
|
}))
|
|
.pipe(lintspaces.reporter({
|
|
breakOnWarning: true,
|
|
prefixLogs: true
|
|
}));
|
|
}
|