mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
eslint: Forbid CommonJS variables in ES6 modules.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
830c4acedc
commit
9553f11387
@@ -1,12 +1,12 @@
|
||||
import $ from "jquery";
|
||||
|
||||
import render_confirm_delete_user_avatar from "../templates/confirm_delete_user_avatar.hbs";
|
||||
|
||||
import * as channel from "./channel";
|
||||
import * as confirm_dialog from "./confirm_dialog";
|
||||
import * as settings_data from "./settings_data";
|
||||
import * as upload_widget from "./upload_widget";
|
||||
|
||||
const render_confirm_delete_user_avatar = require("../templates/confirm_delete_user_avatar.hbs");
|
||||
|
||||
export function build_bot_create_widget() {
|
||||
// We have to do strange gyrations with the file input to clear it,
|
||||
// where we replace it wholesale, so we generalize the file input with
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import $ from "jquery";
|
||||
|
||||
// This reloads the module in development rather than refreshing the page
|
||||
if (module.hot) {
|
||||
module.hot.accept();
|
||||
}
|
||||
|
||||
export const status_classes = "alert-error alert-success alert-info alert-warning";
|
||||
|
||||
// TODO: Move this to the portico codebase.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/* eslint-env commonjs */
|
||||
|
||||
"use strict";
|
||||
|
||||
const $ = require("jquery");
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/* eslint-env commonjs */
|
||||
|
||||
"use strict";
|
||||
|
||||
// Media query breakpoints according to Bootstrap 4.5
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/* eslint-env commonjs */
|
||||
|
||||
"use strict";
|
||||
|
||||
const $ = require("jquery");
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/* eslint-env commonjs */
|
||||
|
||||
"use strict";
|
||||
|
||||
const {Filter} = require("./filter");
|
||||
|
||||
Reference in New Issue
Block a user