mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-09 14:54:04 +02:00
Update eslint to version 10
Unfortunately, eslint-plugin-import depends on eslint 9. This plugin doesn't seem to be actively maintained (lot of open issues and PRs). Fortunately there's a fork of the plugin that doesn't support eslint 10 yet but is actively maintained. So this PR changes the eslint version to 10 and replaces eslint-plugin-import with eslint-plugin-import-x.
This commit is contained in:
parent
f49877ae95
commit
d5ac981d62
@ -1,6 +1,6 @@
|
||||
import globals from "globals";
|
||||
|
||||
import import_ from "eslint-plugin-import";
|
||||
import import_ from "eslint-plugin-import-x";
|
||||
import jasmine from "eslint-plugin-jasmine";
|
||||
import json from "@eslint/json";
|
||||
import noUnsanitized from "eslint-plugin-no-unsanitized";
|
||||
@ -70,13 +70,17 @@ export default [
|
||||
files: jsFiles("."),
|
||||
|
||||
plugins: {
|
||||
import: import_.flatConfigs.recommended.plugins.import,
|
||||
import: import_.flatConfigs.recommended.plugins["import-x"],
|
||||
json,
|
||||
"no-unsanitized": noUnsanitized,
|
||||
perfectionist,
|
||||
unicorn,
|
||||
},
|
||||
|
||||
settings: {
|
||||
"import-x/resolver-next": [import_.createNodeResolver()],
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.worker,
|
||||
|
||||
4204
package-lock.json
generated
4204
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -21,9 +21,9 @@
|
||||
"cached-iterable": "^0.3.0",
|
||||
"caniuse-lite": "^1.0.30001779",
|
||||
"core-js": "^3.48.0",
|
||||
"eslint": "^9.39.4",
|
||||
"eslint": "^10.0.3",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-import-x": "^4.16.2",
|
||||
"eslint-plugin-jasmine": "^4.2.2",
|
||||
"eslint-plugin-no-unsanitized": "^4.1.5",
|
||||
"eslint-plugin-perfectionist": "^5.6.0",
|
||||
|
||||
@ -672,7 +672,7 @@ class Stepper {
|
||||
}
|
||||
}
|
||||
|
||||
const Stats = (function Stats() {
|
||||
const Stats = (function () {
|
||||
let stats = [];
|
||||
function clear(node) {
|
||||
node.textContent = ""; // Remove any `node` contents from the DOM.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user