Grunt plugin for pug-lint (formerly Jade).
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-puglint --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-puglint');
If you need a clean config settings, then use the object(preset: {}
) or config file (puglintrc: '..'
).
puglint: {
taskName: {
options: {
// The name of the preset: `clock` (default) or `jadelint`
preset: 'clock',
// If preset is an object, the standard preset is not loaded
preset: {
disallowHtmlText: true,
validateIndentation: 4
}
// The path to the configuration file
puglintrc: 'test/fixtures/.pug-lintrc',
// Override preset settings (default: `clock`)
disallowHtmlText: true,
validateIndentation: 4
},
src: ['test/fixtures/**/*.jade']
}
// Or short version
options: {
// ..
},
taskName: ['...']
}
Plugin can read .pug-lintrc file.
- v0.1.2 [2016-02-17] - Make sure the task fails whenever an error is found in any file. Thanks @rdevaissiere.
- v0.1.1 [2015-12-26] - Add
xo
to test section. - v0.1.0 [2015-12-26] - Initial release.