Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakub-g/grunt-leading-indent
:warning: Verifies that files have consistent leading whitespace (all tabs or all spaces)
https://github.com/jakub-g/grunt-leading-indent
Last synced: about 1 month ago
JSON representation
:warning: Verifies that files have consistent leading whitespace (all tabs or all spaces)
- Host: GitHub
- URL: https://github.com/jakub-g/grunt-leading-indent
- Owner: jakub-g
- License: other
- Created: 2013-06-14T13:15:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-10T15:07:28.000Z (almost 10 years ago)
- Last Synced: 2024-11-04T14:12:31.956Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 184 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
grunt-leading-indent
====================[![Build Status](https://travis-ci.org/jakub-g/grunt-leading-indent.png?branch=master)](https://travis-ci.org/jakub-g/grunt-leading-indent)
[![Dependencies](https://david-dm.org/jakub-g/grunt-leading-indent.svg?style=flat)](https://david-dm.org/jakub-g/grunt-leading-indent)
[![devDependencies](https://david-dm.org/jakub-g/grunt-leading-indent/dev-status.svg?style=flat)](https://david-dm.org/jakub-g/grunt-leading-indent#info=devDependencies)[![npm](https://nodei.co/npm/grunt-leading-indent.png?compact=true)](https://www.npmjs.com/package/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.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 (c) 2013 Aria TemplatesLicensed under the Apache 2.0 license.