mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
feat: add ESLint and update linting errors (#26)
* Install ESLint and Astro ESLint plugin * Configure 2 plugins * Improve ignore files * Add lint script * Install astro-eslint-parser * Add parser and fix linting errors
This commit is contained in:
@@ -191,7 +191,7 @@ const { activeNav } = Astro.props;
|
||||
const secondLine = document.querySelector("#second-line ")?.classList;
|
||||
const thirdLine = document.querySelector("#third-line")?.classList;
|
||||
|
||||
menuBtn!.addEventListener("click", function (event) {
|
||||
menuBtn?.addEventListener("click", function () {
|
||||
const menuExpanded = menuBtn?.getAttribute("aria-expanded");
|
||||
if (menuExpanded === "false") {
|
||||
menuBtn?.setAttribute("aria-expanded", "true");
|
||||
|
||||
Reference in New Issue
Block a user