Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regru/eslint-plugin-prefer-early-return
https://github.com/regru/eslint-plugin-prefer-early-return
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/regru/eslint-plugin-prefer-early-return
- Owner: regru
- Created: 2018-05-31T11:39:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T14:53:02.000Z (about 1 year ago)
- Last Synced: 2024-10-25T06:53:10.177Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 5
- Watchers: 22
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Copy-paste from `eslint-plugin-shopify` from shopify team without unwanted dependencies and restrictions
## Installation
npm install @regru/eslint-plugin-prefer-early-return --save-dev
## Usage
```
{
"plugins": [
"@regru/prefer-early-return",
…
],
"rules": {
"@regru/prefer-early-return/prefer-early-return": ["error", {
"maximumStatements": 1
}],
…
},
…
}
```## Plugin-Provided Rule
[prefer-early-return](docs/rules/prefer-early-return.md)