Skip to content

RRMoelker/grunt-htmlcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-htmlcs

npm version

Grunt task for HTML linter: htmlcs.

Installation

npm install grunt-htmlcs

Usage

Add to the Grunt configuration:

htmlcs: {
    all: {
        src: ['src/**/*.html']
    }
}

Load the task:

grunt.loadNpmTasks('grunt-htmlcs');

And run it:

grunt htmlcs:all

See the simple full example.

Configuration

Configuration of the htmlcs rules is done by adding a file .htmlcsrc next to your Gruntfile. The config file indicates which rules should be run with which options. See default list to get started.