🔧 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

@ -1,3 +1,4 @@
export default {
'*.{ts,tsx,js,jsx,json,md,svelte,astro}': ['prettier --config .prettierrc.json --write'],
'*.{ts,tsx,js,jsx,mjs,cjs}': ['eslint --fix', 'prettier --config .prettierrc.json --write'],
'*.{json,md,svelte,astro}': ['prettier --config .prettierrc.json --write'],
};