grunt-leading-indent

Verifies that files have consistent leading whitespace (all tabs or all spaces).

grunt-leading-indent

A plugin for Grunt which verifies that files have either all leading tabs or all leading spaces.

Compatible with Grunt 0.4.

Getting Started

Install this grunt plugin next to your project's Gruntfile.jswith:

npm install grunt-leading-indent

Then add this line to your project's grunt.jsgruntfile:

grunt.loadNpmTasks('grunt-leading-indent');

Sample usage

leadingIndent : {
    options: {
        indentation : "spaces"
    },
    js : ['Gruntfile.js', 'tasks/**/*.js'],
    zero: {
        options: {
            indentation : "spaces",
            failIfNoFiles: true
        },
        src: ['*.does-not-exist']
    }
}

License

Copyright (c) 2013 Aria Templates

Licensed under the Apache 2.0 license.

HomePage

https://github.com/jakub-g/grunt-leading-indent

Repository

https://github.com/jakub-g/grunt-leading-indent


上一篇:hbs-precompiler
下一篇:grunt-verifylowercase

相关推荐

官方社区

扫码加入 JavaScript 社区