diff --git a/eslint.config.mjs b/eslint.config.mjs index 7781c7a87..a2fbd20fd 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -306,6 +306,16 @@ export default [ selector: "NewExpression[callee.name='Ref']", message: "Use `Ref.get()` rather than `new Ref()`.", }, + { + selector: "ExportNamedDeclaration[declaration]", + message: + "Separate the declaration and the export statement, using `export { ... }`.", + }, + { + selector: "ExportDefaultDeclaration:has(> :declaration)", + message: + "Separate the declaration and the export statement, using `export default `.", + }, ], "no-unneeded-ternary": "error", "operator-assignment": "error", diff --git a/src/pdf.sandbox.external.js b/src/pdf.sandbox.external.js index 365d94a60..1be8ea60d 100644 --- a/src/pdf.sandbox.external.js +++ b/src/pdf.sandbox.external.js @@ -16,6 +16,7 @@ // In mozilla-central, this file is loaded as non-module script, // so it mustn't have any dependencies. +// eslint-disable-next-line no-restricted-syntax export class SandboxSupportBase { /** * @param {DOMWindow} - win