Skip to content

Commit 24434ad

Browse files
committed
check
1 parent 22b9c12 commit 24434ad

6 files changed

Lines changed: 18 additions & 23 deletions

File tree

.husky/pre-commit

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
pnpm format && pnpm --filter backend lint
1+
#!/bin/sh
2+
pnpm format && pnpm --filter backend lint

backend/eslint.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import js from "@eslint/js";
2-
import tseslint from "typescript-eslint";
1+
import js from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
33

44
export default [
55
{
6-
ignores: ["dist/**", "build/**", "node_modules/**"],
6+
ignores: ['dist/**', 'build/**', 'node_modules/**'],
77
rules: {
8-
"@typescript-eslint/no-unused-vars": [
9-
"error",
10-
{ argsIgnorePattern: "^_" }
8+
'@typescript-eslint/no-unused-vars': [
9+
'error',
10+
{ argsIgnorePattern: '^_' },
1111
],
1212
},
1313
},

backend/src/routes/health.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ const Healthrouter = express.Router();
44
Healthrouter.get('/health', async (req, res) => {
55
try {
66
if (!appDataSouce.isInitialized) {
7-
return res
8-
.status(503)
9-
.json({
10-
status: 'eroor',
11-
service: 'mysocial-code-backend',
12-
db: 'not initialized',
13-
});
7+
return res.status(503).json({
8+
status: 'eroor',
9+
service: 'mysocial-code-backend',
10+
db: 'not initialized',
11+
});
1412
}
1513
await appDataSouce.query('SELECT 1');
1614
return res.status(200).json({

backend/src/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ app.listen(process.env.PORT, () => {
2222
logger.info('server started dont need worry');
2323
});
2424

25-
let tdest;
26-
let forccdfdddssfddeerror;
25+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"packageManager": "pnpm@10.26.2",
55
"scripts": {
66
"format": "prettier --write .",
7-
"prepare": "husky install"
7+
"prepare": "husky"
88
},
99
"devDependencies": {
1010
"husky": "^9.1.7",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)