Skip to content

Commit 04ffe7d

Browse files
committed
chore(deps): update eslint-config and remove unused dependencies
- Downgraded @sxzz/eslint-config from 7.2.6 to 7.1.0 in package.json and pnpm-lock.yaml for compatibility. - Removed @prettier/plugin-oxc from dependencies as it is no longer needed. - Updated encoding in backup.service.ts from 'utf-8' to 'utf8' for consistency. Signed-off-by: Innei <tukon479@gmail.com>
1 parent ec77c38 commit 04ffe7d

File tree

3 files changed

+25
-52
lines changed

3 files changed

+25
-52
lines changed

apps/core/src/modules/backup/backup.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Logger,
1010
} from '@nestjs/common'
1111
import { CronExpression } from '@nestjs/schedule'
12-
import { DEMO_MODE, MONGO_DB } from '~/app.config'
12+
import { MONGO_DB } from '~/app.config'
1313
import { CronDescription } from '~/common/decorators/cron-description.decorator'
1414
import { CronOnce } from '~/common/decorators/cron-once.decorator'
1515
import { BusinessEvents, EventScope } from '~/constants/business-event.constant'
@@ -232,7 +232,7 @@ export class BackupService {
232232

233233
try {
234234
const packageJson = await readFile(join(backupDataDir, 'package.json'), {
235-
encoding: 'utf-8',
235+
encoding: 'utf8',
236236
})
237237
const pkg = JSON.parse(packageJson)
238238
if (pkg.dependencies) {

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"@ianvs/prettier-plugin-sort-imports": "4.7.0",
24-
"@prettier/plugin-oxc": "0.0.4",
25-
"@sxzz/eslint-config": "7.2.6",
24+
"@sxzz/eslint-config": "7.1.0",
2625
"@types/node": "24.5.2",
2726
"cross-env": "10.0.0",
2827
"eslint": "^9.36.0",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)