Files
Thehappypupbox_Backend/eslint.config.mjs
fiamanillah e5d15991fd feat: initialize NestJS application with global exception handling and request context
- Added nest-cli.json for Nest CLI configuration.
- Created package.json with dependencies and scripts for building, testing, and linting.
- Implemented AppController and AppService with a basic "Hello World!" response.
- Established AppModule with middleware for request ID and global interceptors for response standardization.
- Introduced ContextService for managing request-scoped context using AsyncLocalStorage.
- Developed custom decorators for response messages and standardized error handling with DTOs.
- Implemented global exception filter to handle various HTTP exceptions and Prisma errors.
- Added middleware for generating unique request IDs.
- Configured TypeScript settings for the project.
- Created comprehensive unit and e2e tests for the application.
2025-12-01 05:16:45 +06:00

36 lines
899 B
JavaScript

// @ts-check
import eslint from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{
ignores: ['eslint.config.mjs'],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
sourceType: 'commonjs',
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-unsafe-argument': 'warn',
"prettier/prettier": ["error", { endOfLine: "auto" }],
},
},
);