Add analyzer and frontend lint guardrails
This commit is contained in:
@@ -10,9 +10,20 @@ import {
|
||||
openNewSuggestionModal,
|
||||
normalizeSuggestionForm,
|
||||
} from "./suggestions-ui.js";
|
||||
import { renderVotes, scoreToEmoji, syncVoteScores, neutralEmoji, updatePhaseNav } from "./votes-ui.js";
|
||||
import {
|
||||
renderVotes,
|
||||
scoreToEmoji,
|
||||
syncVoteScores,
|
||||
neutralEmoji,
|
||||
updatePhaseNav,
|
||||
} from "./votes-ui.js";
|
||||
import { renderResults } from "./results-ui.js";
|
||||
import { openConfirmModal, openLightbox, openResultsRelockModal, openSuggestionsChangedModal } from "./modals-ui.js";
|
||||
import {
|
||||
openConfirmModal,
|
||||
openLightbox,
|
||||
openResultsRelockModal,
|
||||
openSuggestionsChangedModal,
|
||||
} from "./modals-ui.js";
|
||||
|
||||
export function setAuthUI(isAuthed) {
|
||||
const main = document.querySelector("main");
|
||||
@@ -74,9 +85,9 @@ export function handleAuthError(err, clearUserState) {
|
||||
}
|
||||
|
||||
export function renderPhasePill() {
|
||||
document.querySelectorAll(".phase-view").forEach((el) =>
|
||||
el.classList.add("hidden"),
|
||||
);
|
||||
document
|
||||
.querySelectorAll(".phase-view")
|
||||
.forEach((el) => el.classList.add("hidden"));
|
||||
const viewMap = {
|
||||
Suggest: "suggest-view",
|
||||
Vote: "vote-view",
|
||||
|
||||
Reference in New Issue
Block a user