Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

coffeelint-limit-newlines

begizi1.2k0.0.2

Validate a newline limit policy

coffeelint, coffeelintrule, coffee-lint, newline, rule, eof

readme

CoffeeLint - Limit number of newlines

Description

This CoffeeLint plugin checks to make sure there aren't to many blank newlines in your coffeescript file.

Installation

npm install coffeelint-limit-newlines

Usage

Insert the below configuration into coffeelint.json that you use for linting your scripts:

"limit_newlines": {
    "module": "coffeelint-limit-newlines",
    "level": "error",
    "value": 5 //number of newlines allowed
}

Configuration

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.