this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add ESLint and Prettier configuration

- Add eslint.config.mjs with strict TypeScript rules
- Add .prettierrc for consistent formatting
- Update package.json with ESLint/Prettier dependencies
- Update tsconfig.json for ESLint compatibility

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

alice 26762ce8 b85cd6a2

+67 -3
+12
.prettierrc
··· 1 + { 2 + "printWidth": 120, 3 + "semi": true, 4 + "singleQuote": true, 5 + "trailingComma": "all", 6 + "tabWidth": 2, 7 + "useTabs": false, 8 + "plugins": ["@trivago/prettier-plugin-sort-imports"], 9 + "importOrder": ["^@/(.*)$", "^[./]"], 10 + "importOrderSeparation": true, 11 + "importOrderSortSpecifiers": true 12 + }
+40
eslint.config.mjs
··· 1 + import eslint from '@eslint/js'; 2 + import tseslint from 'typescript-eslint'; 3 + import prettierConfig from 'eslint-config-prettier'; 4 + 5 + export default tseslint.config( 6 + eslint.configs.recommended, 7 + ...tseslint.configs.strictTypeChecked, 8 + ...tseslint.configs.stylisticTypeChecked, 9 + prettierConfig, 10 + { 11 + languageOptions: { 12 + parserOptions: { 13 + projectService: true, 14 + tsconfigRootDir: import.meta.dirname, 15 + }, 16 + }, 17 + rules: { 18 + '@typescript-eslint/no-explicit-any': 'error', 19 + '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], 20 + '@typescript-eslint/consistent-type-imports': 'error', 21 + '@typescript-eslint/no-floating-promises': 'error', 22 + '@typescript-eslint/strict-boolean-expressions': 'error', 23 + '@typescript-eslint/no-misused-promises': 'error', 24 + '@typescript-eslint/await-thenable': 'error', 25 + '@typescript-eslint/require-await': 'error', 26 + '@typescript-eslint/no-unnecessary-condition': 'error', 27 + }, 28 + }, 29 + { 30 + ignores: [ 31 + 'dist/', 32 + 'node_modules/', 33 + 'eslint.config.mjs', 34 + 'vite.config.ts', 35 + 'postcss.config.js', 36 + 'tailwind.config.js', 37 + 'scripts/', 38 + ], 39 + }, 40 + );
+14 -1
package.json
··· 6 6 "cli": "bun run src/cli/index.ts", 7 7 "dev": "bun run scripts/dev.ts", 8 8 "build": "vite build", 9 - "serve": "bun run src/cli/index.ts serve" 9 + "serve": "bun run src/cli/index.ts serve", 10 + "typecheck": "tsgo --noEmit", 11 + "lint": "eslint src/", 12 + "lint:fix": "eslint src/ --fix", 13 + "format": "prettier --write src/", 14 + "format:check": "prettier --check src/", 15 + "check": "bun run typecheck && bun run lint && bun run format:check" 10 16 }, 11 17 "dependencies": { 12 18 "@ai-sdk/anthropic": "^2.0.56", ··· 18 24 "zod": "^4.2.1" 19 25 }, 20 26 "devDependencies": { 27 + "@eslint/js": "^9.17.0", 28 + "@trivago/prettier-plugin-sort-imports": "^5.2.2", 21 29 "@types/bun": "latest", 22 30 "@types/react": "^18.3.18", 23 31 "@types/react-dom": "^18.3.5", 32 + "@typescript/native-preview": "^7.0.0-dev.20251219.1", 24 33 "@vitejs/plugin-react": "^4.3.4", 25 34 "autoprefixer": "^10.4.20", 35 + "eslint": "^9.17.0", 36 + "eslint-config-prettier": "^10.0.1", 26 37 "postcss": "^8.4.49", 38 + "prettier": "^3.4.2", 27 39 "tailwindcss": "^3.4.17", 28 40 "typescript": "^5.7.2", 41 + "typescript-eslint": "^8.18.2", 29 42 "vite": "^6.0.6" 30 43 } 31 44 }
+1 -2
tsconfig.json
··· 15 15 "types": ["bun-types"], 16 16 "paths": { 17 17 "@/*": ["./src/*"] 18 - }, 19 - "baseUrl": "." 18 + } 20 19 }, 21 20 "include": ["src/**/*"], 22 21 "exclude": ["node_modules", "dist"]