pugjs / pug-lint

An unopinionated and configurable linter and style checker for Pug
ISC License
228 stars 51 forks source link

to check attribute typo error #101

Open dxcqcv opened 8 years ago

dxcqcv commented 8 years ago

is anyway to check attribute typo error in pug

like typo error

link( href='css/commons.css', rel='stylesheets', type='text/css' )

should be

link( href='css/commons.css', rel='stylesheet', type='text/css' )

but there are not error or warning to report using gulp-pug-lint

in gulp like

let puglint = require('gulp-pug-lint');
gulp.task('html', function(){
    return gulp.src(['./src/*.pug','./src/**/*.pug'])
         .pipe(puglint())
         .pipe(pug({pretty:true}))
         .pipe(gulp.dest('./'));
});

but it's very difficult to find by human eyes, so anyway can check this error or to add this feature, thx