hapi-scope-start

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

MIT 9 个版本
安装
npm install hapi-scope-start
yarn add hapi-scope-start
pnpm add hapi-scope-start
bun add hapi-scope-start
README

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.

版本列表
2.1.1 2015-10-31
2.1.0 2015-10-30
2.0.0 2015-10-25
1.1.4 2015-10-23
1.1.3 2015-10-13
1.1.2 2015-08-02
1.1.1 2015-06-09
1.1.0 2015-05-19
1.0.0 2015-04-08