{"id":25132231,"url":"https://github.com/mh4gf/shared-config","last_synced_at":"2025-09-09T01:33:44.997Z","repository":{"id":65231476,"uuid":"587719744","full_name":"MH4GF/shared-config","owner":"MH4GF","description":"shared-config","archived":false,"fork":false,"pushed_at":"2025-08-31T10:46:05.000Z","size":916,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T01:04:45.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MH4GF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-11T12:31:14.000Z","updated_at":"2025-08-11T14:02:41.000Z","dependencies_parsed_at":"2024-06-01T09:47:48.986Z","dependency_job_id":"0f685e8d-9430-49bf-8c94-f49c38d560ae","html_url":"https://github.com/MH4GF/shared-config","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.0357142857142857,"last_synced_commit":"59b4dc27f6dacebbda9739f8bf8364fd7b94b574"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/MH4GF/shared-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fshared-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fshared-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fshared-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fshared-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MH4GF","download_url":"https://codeload.github.com/MH4GF/shared-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fshared-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274232029,"owners_count":25245856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-08T14:17:19.607Z","updated_at":"2025-09-09T01:33:44.982Z","avatar_url":"https://github.com/MH4GF.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @mh4gf/shared-config\n\n[![@mh4gf/prettier-config](https://badge.fury.io/js/@mh4gf%2Fprettier-config.svg)](https://badge.fury.io/js/@mh4gf%2Fprettier-config)\n\nA collection of shared configuration files and utilities for modern JavaScript/TypeScript projects. This monorepo provides consistent linting, formatting, and TypeScript configurations across multiple projects.\n\n## Packages\n\n### [@mh4gf/configs](./typescript/packages/configs)\nCore configuration package containing:\n- **Biome configurations**: For JavaScript/TypeScript formatting and linting\n- **TypeScript configurations**: Base tsconfig.json files for different project types\n- **CLI tool**: Interactive setup and configuration management\n\n### [@mh4gf/eslint-config](./typescript/packages/eslint-config)\nESLint configuration package with:\n- **Base configuration**: JavaScript best practices and code quality rules\n- **TypeScript support**: Type-aware linting rules and import management\n- **Vitest integration**: Testing-specific rules and globals\n\n## Installation\n\n```bash\n# Install individual packages\nnpm install --save-dev @mh4gf/configs\nnpm install --save-dev @mh4gf/eslint-config\n\n# Or with pnpm\npnpm add -D @mh4gf/configs @mh4gf/eslint-config\n```\n\n## Quick Start\n\n### Using the CLI\n```bash\n# Initialize configurations in your project\nnpx @mh4gf/configs init\n```\n\n### Manual Setup\n\n#### Biome Configuration\nCreate `biome.json` in your project root:\n```json\n{\n  \"extends\": [\"@mh4gf/configs/biome/index.jsonc\"]\n}\n```\n\n#### ESLint Configuration\nCreate `eslint.config.js` in your project root:\n```javascript\nimport eslintConfig from '@mh4gf/eslint-config'\n\nexport default [\n  ...eslintConfig.configs.recommended,\n  ...eslintConfig.configs.typescript,\n  ...eslintConfig.configs.vitest,\n]\n```\n\n#### TypeScript Configuration\nCreate `tsconfig.json` in your project root:\n```json\n{\n  \"extends\": \"@mh4gf/configs/tsconfig/base.json\",\n  \"compilerOptions\": {\n    \"outDir\": \"./dist\"\n  },\n  \"include\": [\"src/**/*\"]\n}\n```\n\n## Development\n\n### Prerequisites\n- Node.js 18+ \n- pnpm 9+\n\n### Setup\n```bash\n# Clone the repository\ngit clone https://github.com/MH4GF/shared-config.git\ncd shared-config\n\n# Install dependencies\npnpm install\n\n# Run linting\npnpm lint\n\n# Run tests\npnpm test\n\n# Build packages\npnpm build\n\n# Format code\npnpm fmt\n```\n\n### Testing\nThe project uses Vitest for testing:\n\n```bash\n# Run all tests\npnpm test\n\n# Run tests with coverage\npnpm test:coverage\n\n# Run tests in watch mode\npnpm test --watch\n\n# Run tests with UI\npnpm test:ui\n```\n\n### Project Structure\n```\n.\n├── typescript/packages/\n│   ├── configs/           # Core configuration package\n│   │   ├── src/          # CLI source code\n│   │   ├── biome/        # Biome configuration files\n│   │   ├── tsconfig/     # TypeScript configuration files\n│   │   └── __tests__/    # Unit tests\n│   └── eslint-config/    # ESLint configuration package\n│       ├── src/          # ESLint plugin source\n│       └── __tests__/    # Unit tests\n├── examples/             # Example projects using the configs\n├── tests/                # Integration tests\n└── docs/                 # Documentation\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Make your changes\n4. Add tests for your changes\n5. Ensure all tests pass (`pnpm test`)\n6. Ensure linting passes (`pnpm lint`)\n7. Commit your changes (`git commit -m 'Add amazing feature'`)\n8. Push to the branch (`git push origin feature/amazing-feature`)\n9. Open a Pull Request\n\n### Development Guidelines\n- Follow the existing code style (enforced by Biome and ESLint)\n- Add tests for new functionality\n- Update documentation as needed\n- Ensure all CI checks pass\n\n## License\n\nMIT © [MH4GF](https://github.com/MH4GF)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh4gf%2Fshared-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmh4gf%2Fshared-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh4gf%2Fshared-config/lists"}