1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00
pdf.js/src
Jonas Jenwald d53093045a Enable the import/no-commonjs ESLint plugin rule
Given the amount of work put into removing `require`-calls from the code-base, let's ensure that new ones aren't accidentally added in the future.

Note that we still have a couple of files where `require` is being used, in particular:
 - The Node.js examples, however those will be updated to use `import` in PR 17081.
 - The Webpack examples, and related support files, however I unfortunately don't know enough about Webpack to be able to update those. (Hopefully users of that code will help out here, once version `4` is released.)
 - The `statcmp`-tool, since *some* of those `require`-calls cannot be converted to `import` without other code changes (and that file is only used during benchmarking).

Please find additional details at https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-commonjs.md
2023-10-14 12:49:17 +02:00
..
core [Debugger] Add some info about substitution font 2023-10-09 12:06:33 +02:00
display Tweak PDFWorkerUtil.createCDNWrapper to account for JavaScript modules (PR 17055 follow-up) 2023-10-14 11:34:40 +02:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
scripting_api Don't reset all fields when the resetForm argument is an array 2023-08-24 09:10:27 -04:00
shared Add tagged annotations in the structure tree (bug 1850797) 2023-08-31 12:35:32 +02:00
interfaces.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
license_header.js Update the year in the license_header files 2023-01-18 22:28:18 +01:00
license_header_libre.js Update the year in the license_header files 2023-01-18 22:28:18 +01:00
pdf.image_decoders.js Add unit-tests to check that more PDF.js APIs expose the expected functionality 2023-07-07 12:36:21 +02:00
pdf.js [api-major] Output JavaScript modules in the builds (issue 10317) 2023-10-07 09:31:08 +02:00
pdf.sandbox.external.js ESMify some modules for m-c (bug 1824610) 2023-03-27 12:01:31 +02:00
pdf.sandbox.js Introduce more optional chaining in the code-base 2023-08-26 10:52:23 +02:00
pdf.scripting.js Output pdf.scripting.js as a JavaScript module (PR 17055 follow-up) 2023-10-07 15:27:26 +02:00
pdf.worker.entry.js Enable the import/no-commonjs ESLint plugin rule 2023-10-14 12:49:17 +02:00
pdf.worker.js Allow, optionally, using worker-modules during local development 2023-01-31 12:09:44 +01:00