var gulp = require('gulp');
var puglint = require('gulp-pug-lint');
gulp.task('pugLint', function() {
return gulp
.src(./src/views/**/*.pug)
.pipe(puglint());
});
-
-
Save VasylPosmit/ac6cfa7dbcfd7d94d57330ead5e74014 to your computer and use it in GitHub Desktop.
My standard Pug lint configuration with demo Gulp task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"disallowBlockExpansion": null, | |
"disallowClassLiterals": null, | |
"disallowClassLiteralsBeforeAttributes": null, | |
"disallowClassLiteralsBeforeIdLiterals": null, | |
"disallowDuplicateAttributes": true, | |
"disallowHtmlText": true, | |
"disallowIdLiterals": null, | |
"disallowIdLiteralsBeforeAttributes": null, | |
"disallowImplicitDiv": null, | |
"disallowMultipleLineBreaks": null, | |
"disallowSpaceAfterCodeOperator": null, | |
"disallowSpacesInsideAttributeBrackets": true, | |
"disallowSpecificAttributes": null, | |
"disallowSpecificTags": null, | |
"disallowStringConcatenation": true, | |
"disallowStringInterpolation": null, | |
"disallowTagInterpolation": null, | |
"maximumNumberOfLines": null, | |
"requireClassLiteralsBeforeAttributes": true, | |
"requireClassLiteralsBeforeIdLiterals": true, | |
"requireIdLiteralsBeforeAttributes": true, | |
"requireLineFeedAtFileEnd": true, | |
"requireLowerCaseAttributes": true, | |
"requireLowerCaseTags": true, | |
"requireSpaceAfterCodeOperator": true, | |
"requireSpacesInsideAttributeBrackets": null, | |
"requireSpecificAttributes": [ | |
{ "img": "alt" } | |
], | |
"validateAttributeQuoteMarks": "'", | |
"validateAttributeSeparator": null, | |
"validateIndentation": 2, | |
"validateLineBreaks": "LF", | |
"validateSelfClosingTags": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment