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:
@@ -124,6 +124,7 @@ src/app/
|
||||
Los templates están en la carpeta `templates/`. Cada archivo `.mustache` define cómo se genera un tipo de archivo.
|
||||
|
||||
Templates disponibles:
|
||||
|
||||
- `model.mustache` - DTOs
|
||||
- `model-entity.mustache` - Entidades del modelo
|
||||
- `mapper.mustache` - Mappers
|
||||
@@ -208,7 +209,7 @@ import { NodeUseCasesProvider } from '@/di/use-cases/node.use-cases.provider';
|
||||
NodeRepositoryProvider,
|
||||
OrderTypeRepositoryProvider,
|
||||
SupplyModeRepositoryProvider,
|
||||
|
||||
|
||||
// Use Cases
|
||||
NodeUseCasesProvider,
|
||||
OrderTypeUseCasesProvider,
|
||||
@@ -230,9 +231,9 @@ import { NODE_USE_CASES, NodeUseCases } from '@/domain/use-cases/node/node.use-c
|
||||
})
|
||||
export class NodesComponent {
|
||||
#nodeUseCases = inject(NODE_USE_CASES);
|
||||
|
||||
|
||||
loadNodes() {
|
||||
this.#nodeUseCases.getNodes('TI').subscribe(nodes => {
|
||||
this.#nodeUseCases.getNodes('TI').subscribe((nodes) => {
|
||||
console.log(nodes);
|
||||
});
|
||||
}
|
||||
@@ -252,6 +253,7 @@ npm run setup
|
||||
### Error: Archivo swagger.yaml no encontrado
|
||||
|
||||
Asegúrate de especificar la ruta correcta:
|
||||
|
||||
```bash
|
||||
npm run generate -- -i ./ruta/a/tu/swagger.yaml
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user