Updating the examples to use `let`/`const` should be fine, given that they are available in all browsers/platforms that the PDF.js library now supports; please note the following compatibility information: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let#browser_compatibility - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const#browser_compatibility
17 lines
208 B
Plaintext
17 lines
208 B
Plaintext
{
|
|
"extends": [
|
|
"../.eslintrc"
|
|
],
|
|
|
|
"globals": {
|
|
"pdfjsImageDecoders": false,
|
|
"pdfjsLib": false,
|
|
"pdfjsViewer": false,
|
|
},
|
|
|
|
"rules": {
|
|
// ECMAScript 6
|
|
"no-var": "error",
|
|
},
|
|
}
|