grunt-leading-indent

2019-10-11 admin

grunt-leading-indent是什么

什么是grunt-leading-indent,Verifies that files have consistent leading whitespace (all tabs or all spaces).

grunt-leading-indent使用教程帮助文档

grunt-leading-indent

Build Status Dependencies devDependencies

npm

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.js with:

npm install grunt-leading-indent

Then add this line to your project’s Gruntfile.js:

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 © 2013 Aria Templates

Licensed under the Apache 2.0 license.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-77132.html

文章标题:grunt-leading-indent

回到顶部