mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
eslint: Fix unicorn/{new-for-builtins,throw-new-error,error-message}.
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/new-for-builtins.md https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/throw-new-error.md https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/error-message.md Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
48f5e5179a
commit
c7cbdba257
@@ -10,7 +10,7 @@ run_test("test_early_returns", () => {
|
||||
elem: stub,
|
||||
handlers: {
|
||||
left_arrow: () => {
|
||||
throw Error("do not dispatch this with alt key");
|
||||
throw new Error("do not dispatch this with alt key");
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user