added eslint

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

No files matched your search

+19
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
View File
File diff suppressed because it is too large. Load diff
+9 -1
View File
@@ -6,6 +6,7 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"lint": "eslint .",
"format": "prettier --write .", "format": "prettier --write .",
"preview": "vite preview", "preview": "vite preview",
"prepare": "husky" "prepare": "husky"
@@ -45,6 +46,7 @@
"zustand": "^5.0.12" "zustand": "^5.0.12"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^10.0.1",
"@tailwindcss/postcss": "^4.2.4", "@tailwindcss/postcss": "^4.2.4",
"@tailwindcss/typography": "^0.5.19", "@tailwindcss/typography": "^0.5.19",
"@types/node": "^24.12.2", "@types/node": "^24.12.2",
@@ -58,6 +60,12 @@
"prettier": "^3.8.3", "prettier": "^3.8.3",
"tailwindcss": "^4.2.4", "tailwindcss": "^4.2.4",
"typescript": "~6.0.2", "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"
} }
} }