# grunt-tabs4life

> Grunt task for enforcing a very opinionated coding style.

Latest version **5.0.0** (published 2016-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-tabs4life
pnpm add grunt-tabs4life
yarn add grunt-tabs4life
bun add grunt-tabs4life
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2016-02-17 |
| First published | 2015-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Chesley Brown |
| Maintainers | chesleybrown |

## Links

- npm: https://www.npmjs.com/package/grunt-tabs4life
- Repository: https://github.com/chesleybrown/grunt-tabs4life
- Homepage: https://github.com/chesleybrown/grunt-tabs4life#readme
- Issues: https://github.com/chesleybrown/grunt-tabs4life/issues
- npm.io page: https://npm.io/package/grunt-tabs4life

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^3.5.0
- [grunt-jscs](https://npm.io/package/grunt-jscs.md) ^2.3.0
- [grunt-lintspaces](https://npm.io/package/grunt-lintspaces.md) ^0.7.1
- [grunt-contrib-jshint](https://npm.io/package/grunt-contrib-jshint.md) ^1.0.0

## Recent versions

- 5.0.0 (latest) — 2016-02-17
- 4.0.1 — 2016-02-10
- 3.0.1 — 2016-01-29
- 3.0.0 — 2016-01-29
- 2.0.2 — 2015-11-22
- 1.0.11 — 2015-06-01
- 1.0.10 — 2015-05-18
- 1.0.9 — 2015-05-04
- 1.0.8 — 2015-05-04
- 1.0.7 — 2015-04-21
- 1.0.6 — 2015-03-30
- 1.0.5 — 2015-03-30
- 1.0.4 — 2015-03-20
- 1.0.3 — 2015-03-15
- 1.0.2 — 2015-03-14
- … 6 more at https://npm.io/package/grunt-tabs4life/versions

## README

![App Logo](https://raw.githubusercontent.com/chesleybrown/grunt-tabs4life/master/media/logo-small.png) grunt-tabs4life
=========================
[![Build Status](https://travis-ci.org/chesleybrown/grunt-tabs4life.svg?branch=master)](https://travis-ci.org/chesleybrown/grunt-tabs4life)
[![Dependency Status](https://david-dm.org/chesleybrown/grunt-tabs4life.svg)](https://david-dm.org/chesleybrown/grunt-tabs4life)
[![devDependency Status](https://david-dm.org/chesleybrown/grunt-tabs4life/dev-status.svg)](https://david-dm.org/chesleybrown/grunt-tabs4life#info=devDependencies)
[![NPM version](https://badge.fury.io/js/grunt-tabs4life.svg)](http://badge.fury.io/js/grunt-tabs4life)

Grunt task for enforcing a very opinionated coding style.

## Getting Started
This plugin requires Grunt `~0.4.2`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-tabs4life --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-tabs4life');
```

## tabs4life task
_Run this task with the `grunt tabs4life` command._

Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.

Typically you'll just want to provide files in the standard Grunt way.

```js
tabs4life: {
	src: 'path/to/files/*.js'
}
```

### Options
This is basically just a wrapper around existing grunt tasks, but passes the
opinionated options as their defaults. However you are free to override any
of these defaults. One important note is that `jscs` and `jshint` will ONLY be
used on `.js` files. `lintspaces` will be run against all files provided.

#### jscs
Pass this whatever you would pass for options for [grunt-jscs](https://github.com/jscs-dev/grunt-jscs).

#### jshint
Pass this whatever you would pass for options for [grunt-contrib-jshint](https://github.com/gruntjs/grunt-contrib-jshint).

#### lintspaces
Pass this whatever you would pass for options for [grunt-lintspaces](https://github.com/schorfES/grunt-lintspaces).

```js
tabs4life: {
	options: {
		jscs: {
			disallowTrailingWhitespace: true
		},
		jshint: {
			quotmark: 'double'
		},
		lintspaces: {
			trailingspaces: true
		}
	}
	src: 'path/to/files/*.js'
}
```

## Running Tests
To execute all the tests, just run:

```
npm test
```

You can also just run the available `grunt` commands. The default
being to check the code styling of the project itself.

```
grunt
```

## Contact
You can follow me on twitter at [@Chesley](https://twitter.com/Chesley)

---
_Source: https://npm.io/package/grunt-tabs4life · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
