chore(web): new lint setup (#30020)

Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
Stephen Zhou
2025-12-23 16:58:55 +08:00
committed by GitHub
parent 9701a2994b
commit f2842da397
3356 changed files with 85046 additions and 81278 deletions

View File

@@ -1,5 +1,5 @@
import { VarType } from '../../types'
import type { OutputVar } from './types'
import { VarType } from '../../types'
import { CodeLanguage } from './types'
export const extractFunctionParams = (code: string, language: CodeLanguage) => {
@@ -68,7 +68,7 @@ export const extractReturnType = (code: string, language: CodeLanguage): OutputV
const result: OutputVar = {}
const keyRegex = /['"]?(\w+)['"]?\s*:(?![^{]*})/g
const keyRegex = /['"]?(\w+)['"]?\s*:(?![^{]*\})/g
const matches = returnContent.matchAll(keyRegex)
for (const match of matches) {