hapi-scope-start

ESLint rule to enforce new line at the beginning of function scope

This module has moved and is now available at @hapi/rule-scope-start. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
Last updated 10 years ago by cjihrig .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hapi-scope-start 
SYNC missed versions from official npm registry.

hapi-scope-start

Current Version Build Status via Travis CI Dependencies

ESLint rule to enforce new line at the beginning of function scope

Rule Options

allow-one-liners

If the string 'allow-one-liners' is passed as the first option to this rule, then functions whose bodies contain zero or one statements are allowed to be written on a single line. This defaults to true for arrow functions, and false otherwise.

max-in-one-liner

The second option to this rule dictates the maximum number of statements allowed in the bodies of one line function. This must be used in conjunction with allow-one-liners. Defaults to one.

Current Tags

  • 2.1.1                                ...           latest (10 years ago)

9 Versions

  • 2.1.1 [deprecated]           ...           10 years ago
  • 2.1.0 [deprecated]           ...           10 years ago
  • 2.0.0 [deprecated]           ...           10 years ago
  • 1.1.4 [deprecated]           ...           10 years ago
  • 1.1.3 [deprecated]           ...           10 years ago
  • 1.1.2 [deprecated]           ...           11 years ago
  • 1.1.1 [deprecated]           ...           11 years ago
  • 1.1.0 [deprecated]           ...           11 years ago
  • 1.0.0 [deprecated]           ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 6
Last Day 0
Last Week 5
Last Month 1
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |