chore(deps): update dependency eslint to v9 (#814)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
renovate[bot] 2024-08-27 14:23:49 +02:00 committed by GitHub
parent 977ce26a42
commit 11154bf03d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 211 additions and 175 deletions

View file

@ -4,7 +4,7 @@ import { TOGGLE_COLOR_THEMES, THEME, COLOR_THEME_AUTO } from "./config.js"
applyTheme()
})()
document.addEventListener("DOMContentLoaded", (event) => {
document.addEventListener("DOMContentLoaded", () => {
const colorThemeToggle = document.getElementById("gdoc-color-theme")
colorThemeToggle.onclick = function () {

View file

@ -1,6 +1,6 @@
import Clipboard from "clipboard"
document.addEventListener("DOMContentLoaded", function (event) {
document.addEventListener("DOMContentLoaded", function () {
let clipboard = new Clipboard(".clip")
clipboard.on("success", function (e) {

View file

@ -4,7 +4,7 @@ import { COLOR_THEME_DARK, THEME, COLOR_THEME_AUTO } from "./config.js"
import mermaid from "mermaid"
document.addEventListener("DOMContentLoaded", function (event) {
document.addEventListener("DOMContentLoaded", function () {
let lstore = Storage.namespace(THEME)
let currentMode = lstore.get("color-theme") || COLOR_THEME_AUTO
let darkModeQuery = window.matchMedia("(prefers-color-scheme: dark)")

View file

@ -1,9 +1,9 @@
import groupBy from "lodash/groupBy"
import truncate from "lodash/truncate"
import Document from "flexsearch/dist/module/document"
import groupBy from "lodash/groupBy.js"
import truncate from "lodash/truncate.js"
import Document from "flexsearch/dist/module/document.js"
import { Validator } from "@cfworker/json-schema"
document.addEventListener("DOMContentLoaded", function (event) {
document.addEventListener("DOMContentLoaded", function () {
const input = document.querySelector("#gdoc-search-input")
const results = document.querySelector("#gdoc-search-results")
const basePath = urlPath(input ? input.dataset.siteBaseUrl : "")