add eslint, bug fixes

This commit is contained in:
Salam-vsem
2025-05-18 00:56:02 +03:00
parent bc645a8261
commit 33a432cbd1
18 changed files with 3264 additions and 32 deletions

View File

@@ -8,7 +8,9 @@
"preview": "astro preview",
"astro": "astro",
"format": "prettier --write .",
"format:check": "prettier --check ."
"format:check": "prettier --check .",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.astro --cache --max-warnings 0",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx,.astro --fix --cache"
},
"dependencies": {
"@astrojs/react": "^4.2.7",
@@ -24,6 +26,11 @@
"tailwindcss": "^3.4.17"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.32.1",
"@typescript-eslint/parser": "^8.32.1",
"eslint": "^9.27.0",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-react": "^7.37.5",
"prettier": "^3.5.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.11"