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:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user