ESLint rule to enforce new line at the beginning of function scope
$ cnpm install hapi-scope-start
ESLint rule to enforce new line at the beginning of function scope
allow-one-linersIf 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-linerThe 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.
Copyright 2013 - present © cnpmjs.org | Home |