1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 16:48:08 +02:00

Lint against export [some declaration]

This disallowd the following types of `export` declaration:
- `export class A {}`/`export function A() {}`
- `export default class A {}`/`export default function A() {}`
- `export let A`/`export const A`/`export var A`

While allowing
- `export { A }`
- `export default A`
This commit is contained in:
Nicolò Ribaudo 2025-04-07 17:50:25 +02:00
parent 72feb4c256
commit f654fb1b83
No known key found for this signature in database
GPG key ID: AAFDA9101C58F338
2 changed files with 11 additions and 0 deletions

View file

@ -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