This package has been deprecated

Author message:

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.

hapi-scope-start

2.1.1 • Public • Published

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.

Package Sidebar

Install

npm i hapi-scope-start

Weekly Downloads

3,556

Version

2.1.1

License

MIT

Last publish

Collaborators

  • nargonath
  • devinivy
  • marsup
  • nlf
  • hueniverse