fix: lint and fix cache service

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-04-06 22:18:48 +08:00
parent 128b92cbee
commit 96263782d0
68 changed files with 139 additions and 219 deletions

View File

@@ -1,8 +1,8 @@
// const fs = require('fs')
// const path = require('path')
import fs from 'fs'
import path from 'path'
import { fileURLToPath } from 'url'
import fs from 'node:fs'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import prettier from 'prettier'
import ts from 'typescript'

View File

@@ -1,5 +1,5 @@
const fs = require('fs')
const path = require('path')
const fs = require('node:fs')
const path = require('node:path')
// Function to replace content in a file
function replaceContent(filePath, searchValue, replaceValue) {

View File

@@ -1,23 +1,16 @@
{
"compilerOptions": {
"declaration": true,
"baseUrl": ".",
"target": "es2020",
"lib": [
"ESNext",
"DOM",
"DOM.Iterable"
],
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "node",
"strict": false,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"sourceMap": true,
"paths": {
"~/*": [
"../../apps/core/src/*"
@@ -25,6 +18,13 @@
"@core/*": [
"../../apps/core/src/*"
],
}
},
"resolveJsonModule": true,
"strict": false,
"declaration": true,
"sourceMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
},
}