feat: add linting and formatting setup

- Add ESLint configuration with TypeScript support
- Add Prettier configuration for code formatting
- Add lint and format scripts to package.json
- Remove framework-specific configuration
- Configure for general JavaScript/TypeScript development
This commit is contained in:
Noah Brier
2025-09-15 08:27:06 -04:00
parent e5f6bab8b9
commit fa83f75f42
5 changed files with 5554 additions and 1 deletions
+19 -1
View File
@@ -6,6 +6,10 @@
"scripts": {
"setup": "pnpm install && echo '✅ Setup complete! Configure GEMINI_API_KEY for vision features'",
"test-gemini": "GEMINI_API_KEY=${GEMINI_API_KEY} node .claude/mcp-servers/gemini-vision.mjs",
"lint": "eslint . --fix && prettier --write .",
"lint:check": "eslint . && prettier --check .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"attachments:list": "ls -1 '05_Attachments/' | grep -v Organized | head -20",
"attachments:count": "ls -1 '05_Attachments/' | grep -v Organized | wc -l",
"attachments:organized": "ls -1 '05_Attachments/Organized' 2>/dev/null | wc -l || echo '0'",
@@ -32,5 +36,19 @@
"dependencies": {
"@google/generative-ai": "^0.21.0",
"@modelcontextprotocol/sdk": "^1.0.0"
},
"devDependencies": {
"@eslint/compat": "^1.3.0",
"@typescript-eslint/eslint-plugin": "^8.35.0",
"@typescript-eslint/parser": "^8.35.0",
"eslint": "^9.29.0",
"eslint-plugin-check-file": "^3.3.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-perfectionist": "^4.15.0",
"globals": "^16.2.0",
"prettier": "^3.6.0",
"prettier-plugin-packagejson": "^2.5.15",
"prettier-plugin-sort-json": "^4.1.1",
"typescript-eslint": "^8.35.0"
}
}
}