38245500fd
This *finally* allows us to mark the entire PDF.js library as a "module", which should thus conclude the (multi-year) effort to re-factor and improve how we import files/resources in the code-base. This also means that the `gulp ci-test` target, which is what's run in GitHub Actions, now uses JavaScript modules since that's supported in modern Node.js versions.
23 lines
587 B
Plaintext
23 lines
587 B
Plaintext
{
|
|
// Note: The root .eslintrc file will define the base rules,
|
|
// but mozilla/recommended will override them for the rules it sets. Finally,
|
|
// the rules in this file will take precedence.
|
|
"extends": [
|
|
"plugin:mozilla/recommended",
|
|
],
|
|
|
|
"plugins": [
|
|
"mozilla"
|
|
],
|
|
|
|
"rules": {
|
|
// Other rules mozilla/recommended hasn't enabled yet.
|
|
"no-shadow": "error",
|
|
"arrow-body-style": ["error", "as-needed"],
|
|
"arrow-parens": ["error", "always"],
|
|
"constructor-super": "error",
|
|
"no-confusing-arrow": "error",
|
|
"no-useless-constructor": "error",
|
|
},
|
|
}
|