This package has been deprecated

Author message:

Please use @hapi/eslint-plugin-hapi instead.

@hapi/rule-scope-start

2.2.0 • Public • Published

rule-scope-start

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

Build Status

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.

Readme

Keywords

Package Sidebar

Install

npm i @hapi/rule-scope-start

Weekly Downloads

1,491

Version

2.2.0

License

BSD-3-Clause

Unpacked Size

11.3 kB

Total Files

7

Last publish

Collaborators

  • cjihrig
  • marsup
  • nlf
  • devinivy
  • wyatt
  • lloydbenson
  • nargonath