Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose_actions: Remove self-import.

Anders Kaseorgf194ffbee8f2
diff --git a/.eslintrc.json b/.eslintrc.json
index f132128472f..a1b1a960352 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -38,6 +38,7 @@
"import/extensions": "error",
"import/first": "error",
"import/newline-after-import": "error",
+ "import/no-self-import": "error",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
diff --git a/static/js/compose_actions.js b/static/js/compose_actions.js
index 05c59884178..7bbea452644 100644
--- a/static/js/compose_actions.js
+++ b/static/js/compose_actions.js
@@ -6,7 +6,6 @@ import * as fenced_code from "../shared/js/fenced_code";
import * as channel from "./channel";
import * as common from "./common";
import * as compose from "./compose";
-import * as compose_actions from "./compose_actions";
import * as compose_fade from "./compose_fade";
import * as compose_pm_pill from "./compose_pm_pill";
import * as compose_state from "./compose_state";
@@ -330,7 +329,7 @@ export function respond_to_message(opts) {
if (message === undefined) {
// Open empty compose with nothing pre-filled since
// user is not focused on any table row.
- compose_actions.start("stream", {trigger: "recent_topics_nofocus"});
+ start("stream", {trigger: "recent_topics_nofocus"});
return;
}
} else {