feat: add Prettier and ESLint configuration for code formatting and linting

- Create .prettierrc for Prettier configuration
- Add eslint.config.js for ESLint setup with TypeScript support
- Update package.json to include linting and formatting scripts
- Refactor generate.ts and generate.js for improved readability and error handling
- Enhance QUICKSTART.md and README.md with formatting and clarity improvements
This commit is contained in:
didavila
2026-03-23 17:23:06 +01:00
parent cd00eb39ca
commit cebadbfbcc
7 changed files with 422 additions and 192 deletions

View File

@@ -112,9 +112,9 @@ import { USER_USE_CASES } from '@/domain/use-cases/user/user.use-cases.contract'
})
export class UsersComponent {
#userUseCases = inject(USER_USE_CASES);
ngOnInit() {
this.#userUseCases.getUsers().subscribe(users => {
this.#userUseCases.getUsers().subscribe((users) => {
console.log(users);
});
}
@@ -126,6 +126,7 @@ export class UsersComponent {
### ❌ Error: openapi-generator-cli: command not found
**Solución:**
```bash
npm install -g @openapitools/openapi-generator-cli
```
@@ -133,6 +134,7 @@ npm install -g @openapitools/openapi-generator-cli
### ❌ Error: Cannot find module 'commander'
**Solución:**
```bash
npm install
```
@@ -140,6 +142,7 @@ npm install
### ❌ Los archivos no se generan
**Solución:** Verifica que el directorio de salida existe o usa `--dry-run` para ver qué pasaría:
```bash
node generate.js --dry-run
```