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:
Sha Mwe La
2023-02-02 16:24:38 +06:30
committed by GitHub
parent 29e07761f7
commit a9631d0e1e
6 changed files with 1629 additions and 25 deletions
+1 -1
View File
@@ -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");