-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(always-return
): treat process.exit() or process.abort() as an acceptable "return"
#493
Conversation
…cceptable "return"; fixes eslint-community#451
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #493 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 24 -1
Lines 649 660 +11
Branches 250 246 -4
=========================================
+ Hits 649 660 +11 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
🎉 This PR is included in version 6.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
##### [v6.6.0](https://github.com/eslint-community/eslint-plugin-promise/releases/tag/v6.6.0) ##### Bug Fixes - **`always-return`:** treat process.exit() or process.abort() as an acceptable "return" ([#493](eslint-community/eslint-plugin-promise#493)) ([f368c5a](eslint-community/eslint-plugin-promise@f368c5a)) ##### Features - add `strict` option to disallow `then` or `catch` following `await` or `yield` ([#494](eslint-community/eslint-plugin-promise#494)) ([fa482cc](eslint-community/eslint-plugin-promise@fa482cc)) ##### [v6.5.1](eslint-community/eslint-plugin-promise@v6.5.0...c011a1a) ##### [v6.5.0](eslint-community/eslint-plugin-promise@v6.4.0...46667d3) ##### [v6.4.0](eslint-community/eslint-plugin-promise@4dfc8a7...ecbce9f) ##### [v6.3.0](eslint-community/eslint-plugin-promise@v6.2.0...4dfc8a7) ##### [v6.2.0](eslint-community/eslint-plugin-promise@v6.1.1...5e4546d)
##### [v6.6.0](https://github.com/eslint-community/eslint-plugin-promise/releases/tag/v6.6.0) ##### Bug Fixes - **`always-return`:** treat process.exit() or process.abort() as an acceptable "return" ([#493](eslint-community/eslint-plugin-promise#493)) ([f368c5a](eslint-community/eslint-plugin-promise@f368c5a)) ##### Features - add `strict` option to disallow `then` or `catch` following `await` or `yield` ([#494](eslint-community/eslint-plugin-promise#494)) ([fa482cc](eslint-community/eslint-plugin-promise@fa482cc)) ##### [v6.5.1](eslint-community/eslint-plugin-promise@v6.5.0...c011a1a) ##### [v6.5.0](eslint-community/eslint-plugin-promise@v6.4.0...46667d3) ##### [v6.4.0](eslint-community/eslint-plugin-promise@4dfc8a7...ecbce9f) ##### [v6.3.0](eslint-community/eslint-plugin-promise@v6.2.0...4dfc8a7) ##### [v6.2.0](eslint-community/eslint-plugin-promise@v6.1.1...5e4546d)
##### [v6.6.0](https://github.com/eslint-community/eslint-plugin-promise/releases/tag/v6.6.0) ##### Bug Fixes - **`always-return`:** treat process.exit() or process.abort() as an acceptable "return" ([#493](eslint-community/eslint-plugin-promise#493)) ([f368c5a](eslint-community/eslint-plugin-promise@f368c5a)) ##### Features - add `strict` option to disallow `then` or `catch` following `await` or `yield` ([#494](eslint-community/eslint-plugin-promise#494)) ([fa482cc](eslint-community/eslint-plugin-promise@fa482cc)) ##### [v6.5.1](eslint-community/eslint-plugin-promise@v6.5.0...c011a1a) ##### [v6.5.0](eslint-community/eslint-plugin-promise@v6.4.0...46667d3) ##### [v6.4.0](eslint-community/eslint-plugin-promise@4dfc8a7...ecbce9f) ##### [v6.3.0](eslint-community/eslint-plugin-promise@v6.2.0...4dfc8a7) ##### [v6.2.0](eslint-community/eslint-plugin-promise@v6.1.1...5e4546d)
##### [v6.6.0](https://github.com/eslint-community/eslint-plugin-promise/releases/tag/v6.6.0) ##### Bug Fixes - **`always-return`:** treat process.exit() or process.abort() as an acceptable "return" ([#493](eslint-community/eslint-plugin-promise#493)) ([f368c5a](eslint-community/eslint-plugin-promise@f368c5a)) ##### Features - add `strict` option to disallow `then` or `catch` following `await` or `yield` ([#494](eslint-community/eslint-plugin-promise#494)) ([fa482cc](eslint-community/eslint-plugin-promise@fa482cc)) ##### [v6.5.1](eslint-community/eslint-plugin-promise@v6.5.0...c011a1a) ##### [v6.5.0](eslint-community/eslint-plugin-promise@v6.4.0...46667d3) ##### [v6.4.0](eslint-community/eslint-plugin-promise@4dfc8a7...ecbce9f) ##### [v6.3.0](eslint-community/eslint-plugin-promise@v6.2.0...4dfc8a7) ##### [v6.2.0](eslint-community/eslint-plugin-promise@v6.1.1...5e4546d)
##### [v6.6.0](https://github.com/eslint-community/eslint-plugin-promise/releases/tag/v6.6.0) ##### Bug Fixes - **`always-return`:** treat process.exit() or process.abort() as an acceptable "return" ([#493](eslint-community/eslint-plugin-promise#493)) ([f368c5a](eslint-community/eslint-plugin-promise@f368c5a)) ##### Features - add `strict` option to disallow `then` or `catch` following `await` or `yield` ([#494](eslint-community/eslint-plugin-promise#494)) ([fa482cc](eslint-community/eslint-plugin-promise@fa482cc)) ##### [v6.5.1](eslint-community/eslint-plugin-promise@v6.5.0...c011a1a) ##### [v6.5.0](eslint-community/eslint-plugin-promise@v6.4.0...46667d3) ##### [v6.4.0](eslint-community/eslint-plugin-promise@4dfc8a7...ecbce9f) ##### [v6.3.0](eslint-community/eslint-plugin-promise@v6.2.0...4dfc8a7) ##### [v6.2.0](eslint-community/eslint-plugin-promise@v6.1.1...5e4546d)
##### [v6.6.0](https://github.com/eslint-community/eslint-plugin-promise/releases/tag/v6.6.0) ##### Bug Fixes - **`always-return`:** treat process.exit() or process.abort() as an acceptable "return" ([#493](eslint-community/eslint-plugin-promise#493)) ([f368c5a](eslint-community/eslint-plugin-promise@f368c5a)) ##### Features - add `strict` option to disallow `then` or `catch` following `await` or `yield` ([#494](eslint-community/eslint-plugin-promise#494)) ([fa482cc](eslint-community/eslint-plugin-promise@fa482cc)) ##### [v6.5.1](eslint-community/eslint-plugin-promise@v6.5.0...c011a1a) ##### [v6.5.0](eslint-community/eslint-plugin-promise@v6.4.0...46667d3) ##### [v6.4.0](eslint-community/eslint-plugin-promise@4dfc8a7...ecbce9f) ##### [v6.3.0](eslint-community/eslint-plugin-promise@v6.2.0...4dfc8a7) ##### [v6.2.0](eslint-community/eslint-plugin-promise@v6.1.1...5e4546d)
##### [v6.6.0](https://github.com/eslint-community/eslint-plugin-promise/releases/tag/v6.6.0) ##### Bug Fixes - **`always-return`:** treat process.exit() or process.abort() as an acceptable "return" ([#493](eslint-community/eslint-plugin-promise#493)) ([f368c5a](eslint-community/eslint-plugin-promise@f368c5a)) ##### Features - add `strict` option to disallow `then` or `catch` following `await` or `yield` ([#494](eslint-community/eslint-plugin-promise#494)) ([fa482cc](eslint-community/eslint-plugin-promise@fa482cc)) ##### [v6.5.1](eslint-community/eslint-plugin-promise@v6.5.0...c011a1a) ##### [v6.5.0](eslint-community/eslint-plugin-promise@v6.4.0...46667d3) ##### [v6.4.0](eslint-community/eslint-plugin-promise@4dfc8a7...ecbce9f) ##### [v6.3.0](eslint-community/eslint-plugin-promise@v6.2.0...4dfc8a7) ##### [v6.2.0](eslint-community/eslint-plugin-promise@v6.1.1...5e4546d)
##### [v6.6.0](https://github.com/eslint-community/eslint-plugin-promise/releases/tag/v6.6.0) ##### Bug Fixes - **`always-return`:** treat process.exit() or process.abort() as an acceptable "return" ([#493](eslint-community/eslint-plugin-promise#493)) ([f368c5a](eslint-community/eslint-plugin-promise@f368c5a)) ##### Features - add `strict` option to disallow `then` or `catch` following `await` or `yield` ([#494](eslint-community/eslint-plugin-promise#494)) ([fa482cc](eslint-community/eslint-plugin-promise@fa482cc)) ##### [v6.5.1](eslint-community/eslint-plugin-promise@v6.5.0...c011a1a) ##### [v6.5.0](eslint-community/eslint-plugin-promise@v6.4.0...46667d3) ##### [v6.4.0](eslint-community/eslint-plugin-promise@4dfc8a7...ecbce9f) ##### [v6.3.0](eslint-community/eslint-plugin-promise@v6.2.0...4dfc8a7) ##### [v6.2.0](eslint-community/eslint-plugin-promise@v6.1.1...5e4546d)
fix(
always-return
): treat process.exit() or process.abort() as an acceptable "return"Fixes #451
What is the purpose of this pull request?
What changes did you make? (Give an overview)
Don't treat
process.exit()
orprocess.abort()
as normal call expressions but treat them as returns.