[gnome-maps/wip/mattiasb/eslint] Lint: No Assignment of Exception Param
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mattiasb/eslint] Lint: No Assignment of Exception Param
- Date: Sat, 30 Jan 2016 20:58:02 +0000 (UTC)
commit ebb9957bd28814a3331a325dd6b4de9d4b49058d
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Sat Jan 30 21:32:01 2016 +0100
Lint: No Assignment of Exception Param
Disallow Assignment of the Exception Parameter.
If you set the exception parameter it makes it impossible to track the
error from that point on.
Example:
try {
// code
} catch (e) {
e = 10;
}
.eslintrc.yaml | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index c157a98..b3a5f20 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -26,3 +26,5 @@ rules:
- 2
no-empty:
- 2
+ no-ex-assign:
+ - 2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]