🔧 chore: add root ESLint config and enable lint in pre-commit

- Add eslint.config.mjs at root with TypeScript/JS rules
- Configure lint-staged to run ESLint --fix on JS/TS files
- Add ESLint dependencies to root package.json
- Set "type": "module" in package.json to fix module warning
- Ignore projects with their own ESLint configs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Wuesteon 2025-12-03 13:49:57 +01:00
parent 0086e33910
commit fd962c30b2
4 changed files with 371 additions and 331 deletions

View file

@ -2,6 +2,7 @@
"name": "manacore-monorepo",
"version": "1.0.0",
"private": true,
"type": "module",
"description": "Manacore Monorepo containing manacore, manadeck, picture, chat, zitare, and presi",
"scripts": {
"dev": "turbo run dev",
@ -116,7 +117,12 @@
"prepare": "husky"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"concurrently": "^9.2.0",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"globals": "^16.5.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.3.3",
@ -124,6 +130,7 @@
"prettier-plugin-svelte": "^3.4.0",
"turbo": "^2.3.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.48.1",
"wrangler": "^4.51.0"
},
"engines": {