Skip to content

Antiavanti/grunt-puglint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-puglint

Grunt plugin for pug-lint (formerly Jade).

Travis NPM version devDependency Status devDependency Status

image

Getting Started

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');

Usage

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: ['...']
}

Configuration

Plugin can read .pug-lintrc file.

Rules

List of available rules.

History

  • 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.

About

🐗 Grunt plugin for pug-lint (formerly Jade)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%