mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
eslint: Replace empty-returns with consistent-return.
Instead of prohibiting ‘return undefined’ (#8669), we require that a function must return an explicit value always or never. This prevents you from forgetting to return a value in some cases. It will also be important for TypeScript, which distinguishes between undefined and void. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
fe66aef0ad
commit
d72423ef21
@@ -91,7 +91,6 @@
|
||||
"eslint": "^7.2.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-import-resolver-webpack": "^0.12.2",
|
||||
"eslint-plugin-empty-returns": "^1.0.2",
|
||||
"eslint-plugin-import": "^2.22.0",
|
||||
"js-yaml": "^3.13.1",
|
||||
"jsdom": "^16.1.0",
|
||||
|
||||
Reference in New Issue
Block a user