chore: prettier

This commit is contained in:
arswarog committed 2026-11-16 17:26:19 +03:00
1 parent cac80fe476
commit b3bbbf2810
7 files changed
+92 -71

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
dist
coverage
*.d.ts
node_modules
.obsidian
.idea
logs
report
+15 -2
View File
@@ -1,4 +1,17 @@
{ {
"singleQuote": true, "printWidth": 100,
"trailingComma": "all" "useTabs": false,
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"overrides": [
{
"files": ["*.json"],
"options": {
"printWidth": 10
}
}
]
} }
+47 -47
View File
@@ -1,49 +1,49 @@
{ {
"name": "it-smi", "name": "it-smi",
"version": "0.0.1", "version": "0.0.1",
"description": "", "description": "",
"author": "", "author": "",
"private": true, "private": true,
"license": "UNLICENSED", "license": "UNLICENSED",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "nest build", "build": "nest build",
"deploy": "nest deploy", "deploy": "nest deploy",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "format": "prettier --write \"src/**/*.ts\"",
"start": "nest start", "start": "nest start",
"start:dev": "nest start --watch", "start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch", "start:debug": "nest start --debug --watch",
"start:prod": "node dist/main", "start:prod": "node dist/main",
"lint": "oxlint --type-aware src/ test/", "lint": "oxlint --type-aware src/ test/",
"test": "vitest run", "test": "vitest run",
"test:watch": "vitest", "test:watch": "vitest",
"test:cov": "vitest run --coverage", "test:cov": "vitest run --coverage",
"test:debug": "vitest --inspect-brk --no-file-parallelism", "test:debug": "vitest --inspect-brk --no-file-parallelism",
"test:e2e": "vitest run --config ./vitest.config.e2e.ts" "test:e2e": "vitest run --config ./vitest.config.e2e.ts"
}, },
"dependencies": { "dependencies": {
"@nestjs/common": "^12.0.1", "@nestjs/common": "^12.0.1",
"@nestjs/core": "^12.0.1", "@nestjs/core": "^12.0.1",
"@nestjs/platform-express": "^12.0.1", "@nestjs/platform-express": "^12.0.1",
"reflect-metadata": "^0.2.2", "reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1" "rxjs": "^7.8.1"
}, },
"devDependencies": { "devDependencies": {
"@nestjs/cli": "^12.0.0", "@nestjs/cli": "^12.0.0",
"@nestjs/mau": "^0.2.6", "@nestjs/mau": "^0.2.6",
"@nestjs/schematics": "^12.0.0", "@nestjs/schematics": "^12.0.0",
"@nestjs/testing": "^12.0.1", "@nestjs/testing": "^12.0.1",
"@types/express": "^5.0.0", "@types/express": "^5.0.0",
"@types/node": "^24.0.0", "@types/node": "^24.0.0",
"@types/supertest": "^7.0.0", "@types/supertest": "^7.0.0",
"@vitest/coverage-v8": "^4.1.2", "@vitest/coverage-v8": "^4.1.2",
"oxlint": "^1.58.0", "oxlint": "^1.58.0",
"oxlint-tsgolint": "^7.0.2001", "oxlint-tsgolint": "^7.0.2001",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"source-map-support": "^0.5.21", "source-map-support": "^0.5.21",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"typescript": "^6.0.2", "typescript": "^6.0.2",
"vite": "^8.0.0", "vite": "^8.0.0",
"vitest": "^4.1.2" "vitest": "^4.1.2"
} }
} }
+12 -12
View File
@@ -3,20 +3,20 @@ import { AppController } from './app.controller';
import { AppService } from './app.service'; import { AppService } from './app.service';
describe('AppController', () => { describe('AppController', () => {
let appController: AppController; let appController: AppController;
beforeEach(async () => { beforeEach(async () => {
const app: TestingModule = await Test.createTestingModule({ const app: TestingModule = await Test.createTestingModule({
controllers: [AppController], controllers: [AppController],
providers: [AppService], providers: [AppService],
}).compile(); }).compile();
appController = app.get<AppController>(AppController); appController = app.get<AppController>(AppController);
}); });
describe('root', () => { describe('root', () => {
it('should return "Hello World!"', () => { it('should return "Hello World!"', () => {
expect(appController.getHello()).toBe('Hello World!'); expect(appController.getHello()).toBe('Hello World!');
});
}); });
});
}); });
+5 -5
View File
@@ -3,10 +3,10 @@ import { AppService } from './app.service.js';
@Controller() @Controller()
export class AppController { export class AppController {
constructor(private readonly appService: AppService) {} constructor(private readonly appService: AppService) {}
@Get() @Get()
getHello(): string { getHello(): string {
return this.appService.getHello(); return this.appService.getHello();
} }
} }
+3 -3
View File
@@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
@Injectable() @Injectable()
export class AppService { export class AppService {
getHello(): string { getHello(): string {
return 'Hello World!'; return 'Hello World!';
} }
} }
+2 -2
View File
@@ -2,7 +2,7 @@ import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module.js'; import { AppModule } from './app.module.js';
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule);
await app.listen(process.env.PORT ?? 3000); await app.listen(process.env.PORT ?? 3000);
} }
await bootstrap(); await bootstrap();