mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-18 20:30:08 +08:00
* feat: 统一并标准化eslint * lint: napcat.webui * lint: napcat.webui * lint: napcat.core * build: fix * lint: napcat.webui * refactor: 重构eslint * Update README.md
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2021",
|
|
"useDefineForClassFields": true,
|
|
"module": "ESNext",
|
|
"lib": [
|
|
"ES2021",
|
|
"DOM",
|
|
"DOM.Iterable"
|
|
],
|
|
"skipLibCheck": true,
|
|
"moduleResolution": "Node",
|
|
"experimentalDecorators": true,
|
|
"allowImportingTsExtensions": false,
|
|
"allowSyntheticDefaultImports": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "preserve",
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"sourceMap": true,
|
|
"paths": {
|
|
"@/*": [
|
|
"./src/*"
|
|
],
|
|
"@webapi/*": [
|
|
"./src/webui/src/*"
|
|
]
|
|
},
|
|
"noImplicitAny": true,
|
|
"strictFunctionTypes": true,
|
|
"strictBindCallApply": true,
|
|
"alwaysStrict": true,
|
|
"noImplicitThis": true,
|
|
"noImplicitReturns": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"exactOptionalPropertyTypes": false, // 精准可选
|
|
"forceConsistentCasingInFileNames": true,
|
|
"useUnknownInCatchVariables": true,
|
|
"noImplicitOverride": true,
|
|
"skipDefaultLibCheck": true
|
|
},
|
|
"include": [
|
|
"!@homebridge/node-pty-prebuilt-multiarch/src/eventEmitter2.ts",
|
|
"!@homebridge/node-pty-prebuilt-multiarch/src/terminal.ts",
|
|
"!@napneko/nap-proto-core/NapProto.ts",
|
|
"src/**/*.ts",
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"node_modules/**/*",
|
|
"node_modules/@homebridge/node-pty-prebuilt-multiarch/src/eventEmitter2.ts",
|
|
"node_modules/@homebridge/node-pty-prebuilt-multiarch/src/terminal.ts",
|
|
"node_modules/@napneko/nap-proto-core/NapProto.ts"
|
|
]
|
|
} |