pdf.js/examples
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
..
components [api-minor] Remove the default-factories from the viewer components (PR 15811 follow-up) 2023-06-23 11:54:30 +02:00
image_decoders Convert examples/image_decoders/jpeg_viewer.js to await/async #14123 2021-10-22 11:50:24 +01:00
learning Correct typos 2022-04-09 09:43:18 +09:00
mobile-viewer Enable some Stylelint color-related rules to slightly reduce file sizes 2023-10-05 17:51:21 +02:00
node Enable the import/no-commonjs ESLint plugin rule 2023-10-14 12:49:17 +02:00
text-only Enable the unicorn/prefer-dom-node-append ESLint plugin rule 2022-06-12 13:07:03 +02:00
webpack Enable the import/no-commonjs ESLint plugin rule 2023-10-14 12:49:17 +02:00
.eslintrc Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00