mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 02:21:20 -08:00
chore: [ENG-LINT-02] restore clean repository lint
This commit is contained in:
1 parent
d2f4261aa7
commit
7cf6f33130
9 files changed
+130
-13
No files matched your search
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user