chore: [ENG-LINT-02] restore clean repository lint

This commit is contained in:
Harvey Zhao committed 2026-09-15 05:30:05 +08:00
1 parent d2f4261aa7
commit 7cf6f33130
9 files changed
+130 -13

No files matched your search

+3
View File
@@ -21,6 +21,9 @@ without writing. Unknown/duplicate selections fail before generating or writing.
Orchestration depends on conversion and validation; conversion does not write.
Public package declarations remain the source of truth. Do not hand-edit
`docs/assets/ts/*.d.ts`.
The core header suppresses only `ts/no-redeclare` for its global constructor/type
merge. Ambient namespaces are already allowed; adding `ts/no-namespace` there
creates an unused-disable warning in the generated output.
The editor URL list is generated in
`packages/artplayer-vitepress/browser/editor-libraries.ts`, then imported by the
+1 -1
View File
@@ -69,7 +69,7 @@ export function asGlobalDeclaration(code: string, globalName: string) {
factory.createNamespaceExportDeclaration(factory.createIdentifier(globalName)),
]
const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed })
return `// Generated from packages/artplayer/public/artplayer.ts by yarn build:ts. Do not edit.\n/* eslint-disable ts/no-redeclare, ts/no-namespace -- UMD constructor and named types share the global export. */\n${printer.printFile(factory.updateSourceFile(source, statements))}`
return `// Generated from packages/artplayer/public/artplayer.ts by yarn build:ts. Do not edit.\n/* eslint-disable ts/no-redeclare -- UMD constructor and named types share the global export. */\n${printer.printFile(factory.updateSourceFile(source, statements))}`
}
export function generateCoreEditorDeclaration() {