added eslint

This commit is contained in:
Jelaletdin12
2026-06-04 14:35:51 +05:00
parent f57ccd187d
commit 26057e1fac
3 changed files with 1113 additions and 1 deletions

19
eslint.config.js Normal file
View File

@@ -0,0 +1,19 @@
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import { defineConfig, globalIgnores } from "eslint/config";
import eslintConfigPrettier from "eslint-config-prettier";
export default defineConfig([
globalIgnores(["dist"]),
{
files: ["**/*.{ts,tsx}"],
extends: [js.configs.recommended, tseslint.configs.recommended, reactHooks.configs.flat.recommended, reactRefresh.configs.vite],
languageOptions: {
globals: globals.browser,
},
},
eslintConfigPrettier,
]);

1085
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"format": "prettier --write .",
"preview": "vite preview",
"prepare": "husky"
@@ -45,6 +46,7 @@
"zustand": "^5.0.12"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@tailwindcss/postcss": "^4.2.4",
"@tailwindcss/typography": "^0.5.19",
"@types/node": "^24.12.2",
@@ -58,6 +60,12 @@
"prettier": "^3.8.3",
"tailwindcss": "^4.2.4",
"typescript": "~6.0.2",
"vite": "^8.0.10"
"vite": "^8.0.10",
"eslint": "^10.2.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.5.0",
"typescript-eslint": "^8.58.2"
}
}