coffeelint-limit-newlines
Version:
Validate a newline limit policy
31 lines (20 loc) • 799 B
Markdown
CoffeeLint - Limit number of newlines
===================================
This [CoffeeLint](http://www.coffeelint.org) plugin checks to make sure there aren't to many blank newlines in your coffeescript file.
```sh
npm install coffeelint-limit-newlines
```
Insert the below configuration into *coffeelint.json* that you use for linting your scripts:
```js
"limit_newlines": {
"module": "coffeelint-limit-newlines",
"level": "error",
"value": 5 //number of newlines allowed
}
```
The only configuration option specific to this plugin is the **value** property.
By default, Coffeelint will report errors if this rule is not satisfied. You may want to relax this by setting the **level** to **warn** in your configuration.