const id = $("#id-embed");
if (id.data("configured") === false) {
+ // eslint-disable-next-line no-alert
alert(I18n.t("site.edit.id_not_configured"));
return;
}
fetch(url, { mode: "no-cors", signal: AbortSignal.timeout(5000) })
.then(callback)
.catch(function () {
+ // eslint-disable-next-line no-alert
alert(I18n.t("site.index.remote_failed"));
});
}
delete endpoint.geocodeRequest;
if (json.length === 0) {
input.addClass("is-invalid");
+ // eslint-disable-next-line no-alert
alert(I18n.t("javascripts.directions.errors.no_place", { place: endpoint.value }));
return;
}
"curly": ["error", "multi-line", "consistent"],
"dot-notation": "error",
"eqeqeq": ["error", "smart"],
- "no-alert": "warn",
+ "no-alert": "error",
"no-array-constructor": "error",
"no-caller": "error",
"no-console": "warn",