Skip to content

Commit 70f82b4

Browse files
committed
chore: Mettre à jour les dépendances.
1 parent f10b3e5 commit 70f82b4

9 files changed

Lines changed: 2614 additions & 2260 deletions

File tree

.metalint/eslint.config.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,7 @@ export default {
363363
"filenames/match-exported": [2, "kebab"],
364364
"filenames/no-index": 0,
365365

366-
// Désactiver cette règle en attendant qu'elle gère le préfixe "node:".
367-
// https://github.com/benmosher/eslint-plugin-import/issues/2031
368-
"import/no-unresolved": 0,
366+
"import/no-unresolved": 2,
369367
"import/named": 2,
370368
"import/default": 2,
371369
"import/namespace": 2,
@@ -485,6 +483,7 @@ export default {
485483
"unicorn/no-abusive-eslint-disable": 2,
486484
"unicorn/no-array-callback-reference": 0,
487485
"unicorn/no-array-for-each": 0,
486+
"unicorn/no-array-method-this-argument": 2,
488487
"unicorn/no-array-push-push": 2,
489488
"unicorn/no-array-reduce": 0,
490489
"unicorn/no-console-spaces": 2,
@@ -515,6 +514,7 @@ export default {
515514
"unicorn/prefer-array-flat-map": 2,
516515
"unicorn/prefer-array-index-of": 2,
517516
"unicorn/prefer-array-some": 2,
517+
"unicorn/prefer-at": 2,
518518
"unicorn/prefer-date-now": 2,
519519
"unicorn/prefer-default-parameters": 2,
520520
"unicorn/prefer-dom-node-append": 2,
@@ -529,7 +529,9 @@ export default {
529529
"unicorn/prefer-negative-index": 2,
530530
"unicorn/prefer-node-protocol": 2,
531531
"unicorn/prefer-number-properties": 2,
532+
"unicorn/prefer-object-has-own": 2,
532533
"unicorn/prefer-optional-catch-binding": 2,
534+
"unicorn/prefer-prototype-methods": 2,
533535
"unicorn/prefer-query-selector": 2,
534536
"unicorn/prefer-reflect-apply": 2,
535537
"unicorn/prefer-regexp-test": 2,
@@ -540,9 +542,12 @@ export default {
540542
"unicorn/prefer-string-starts-ends-with": 2,
541543
"unicorn/prefer-string-trim-start-end": 2,
542544
"unicorn/prefer-switch": 0,
543-
"unicorn/prefer-ternary": 2,
545+
"unicorn/prefer-ternary": 0,
546+
"unicorn/prefer-top-level-await": 2,
544547
"unicorn/prefer-type-error": 2,
545548
"unicorn/prevent-abbreviations": 0,
549+
"unicron/require-array-join-separator": 0,
550+
"unicorn/require-number-to-fixed-digits-argument": 0,
546551
"unicorn/sring-content": 0,
547552
"unicorn/throw-new-error": 2,
548553
},

.metalint/eslint_webext.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ export default {
33
browser: true,
44
webextensions: true,
55
},
6+
7+
rules: {
8+
// Désactiver cette règle car addons-linter rejète les await dans le
9+
// scope global (https://github.com/mozilla/addons-linter/issues/3741).
10+
"unicorn/prefer-top-level-await": 0,
11+
},
612
};

.metalint/htmlhint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default {
1313
"doctype-html5": true,
1414
"head-script-disabled": true,
1515
"href-abs-or-rel": false,
16+
"html-lang-require": false,
1617
"id-class-ad-disabled": true,
1718
"id-class-value": "dash",
1819
"id-unique": true,

.script/sync.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const copy = async function (src, dest) {
1818
// Intégrer la prothèse pour l'élément HTML <dialog> en attendant que cette
1919
// fonctionnalité soit implémentée.
2020
// https://bugzilla.mozilla.org/show_bug.cgi?id=840640
21-
copy("node_modules/dialog-polyfill/dist/dialog-polyfill.css",
22-
"src/polyfill/lib/dialog-polyfill/style.css");
23-
copy("node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js",
24-
"src/polyfill/lib/dialog-polyfill/script.js");
21+
await copy("node_modules/dialog-polyfill/dist/dialog-polyfill.css",
22+
"src/polyfill/lib/dialog-polyfill/style.css");
23+
await copy("node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js",
24+
"src/polyfill/lib/dialog-polyfill/script.js");

package-lock.json

Lines changed: 2570 additions & 2228 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,43 +40,43 @@
4040
"dialog-polyfill": "0.5.6"
4141
},
4242
"devDependencies": {
43-
"@babel/core": "^7.14.3",
44-
"@babel/eslint-parser": "^7.14.3",
45-
"@babel/eslint-plugin": "^7.13.16",
46-
"@babel/plugin-proposal-class-properties": "^7.13.0",
47-
"@babel/plugin-syntax-top-level-await": "^7.12.13",
43+
"@babel/core": "^7.14.6",
44+
"@babel/eslint-parser": "^7.14.7",
45+
"@babel/eslint-plugin": "^7.14.5",
46+
"@babel/plugin-proposal-class-properties": "^7.14.5",
47+
"@babel/plugin-syntax-top-level-await": "^7.14.5",
4848
"@types/firefox-webext-browser": "^82.0.0",
49-
"@types/jsdom": "^16.2.10",
49+
"@types/jsdom": "^16.2.12",
5050
"@types/mocha": "^8.2.2",
5151
"@types/node-fetch": "^2.5.10",
52-
"@types/sinon": "^10.0.0",
53-
"addons-linter": "^3.5.0",
54-
"c8": "^7.7.2",
52+
"@types/sinon": "^10.0.2",
53+
"addons-linter": "^3.9.0",
54+
"c8": "^7.7.3",
5555
"david": "^12.0.0",
56-
"eslint": "^7.27.0",
56+
"eslint": "^7.29.0",
5757
"eslint-plugin-filenames": "^1.3.2",
58-
"eslint-plugin-import": "^2.23.3",
59-
"eslint-plugin-jsdoc": "^34.8.2",
60-
"eslint-plugin-mocha": "^8.1.0",
58+
"eslint-plugin-import": "^2.23.4",
59+
"eslint-plugin-jsdoc": "^35.4.1",
60+
"eslint-plugin-mocha": "^9.0.0",
6161
"eslint-plugin-node": "^11.1.0",
6262
"eslint-plugin-promise": "^5.1.0",
63-
"eslint-plugin-unicorn": "^32.0.1",
64-
"htmlhint": "^0.14.2",
63+
"eslint-plugin-unicorn": "^34.0.1",
64+
"htmlhint": "^0.15.1",
6565
"jsdom": "^16.6.0",
6666
"jsonlint-mod": "^1.7.6",
6767
"markdownlint": "^0.23.1",
6868
"metalint": "^0.9.0",
69-
"mocha": "^8.4.0",
69+
"mocha": "^9.0.1",
7070
"mock-socket": "^9.0.3",
7171
"node-fetch": "^2.6.1",
7272
"purgecss": "^4.0.3",
73-
"sinon": "^10.0.0",
73+
"sinon": "^11.1.1",
7474
"standard-version": "^9.3.0",
7575
"stylelint": "^13.13.1",
7676
"stylelint-order": "^4.1.0",
77-
"typedoc": "^0.20.36",
78-
"typescript": "^4.2.4",
79-
"web-ext": "^6.1.0",
77+
"typedoc": "^0.21.2",
78+
"typescript": "^4.3.5",
79+
"web-ext": "^6.2.0",
8080
"yaml-lint": "^1.2.4"
8181
},
8282
"engines": {

src/core/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const PAGE = location.pathname.slice(1, location.pathname.indexOf("/", 1));
1616
* @type {HTMLElement[]}
1717
*/
1818
const elements = [...document.querySelectorAll("*")].flatMap((element) => {
19-
return "TEMPLATE" === element.tagName
19+
return "TEMPLATE" === element.nodeName
2020
? [...element.content.querySelectorAll("*")]
2121
: element;
2222
});

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"applications": {
33
"gecko": {
44
"id": "castkodi@regseb.github.io",
5-
"strict_min_version": "88.0"
5+
"strict_min_version": "89.0"
66
}
77
},
88
"manifest_version": 2,

src/popup/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ const openSendText = function () {
365365
const closeDialog = function (event) {
366366
// Fermer la boite de dialogue si l'utilisateur clique en dehors de la
367367
// boite.
368-
if ("DIALOG" === event.target.tagName) {
368+
if ("DIALOG" === event.target.nodeName) {
369369
const rect = event.target.getBoundingClientRect();
370370
if (rect.top > event.clientY || rect.bottom < event.clientY ||
371371
rect.left > event.clientX || rect.right < event.clientX) {
@@ -942,7 +942,7 @@ globalThis.addEventListener("keydown", (event) => {
942942

943943
// Écrire normalement les caractères dans la zone de texte (sauf pour la
944944
// touche Entrée qui envoi l'URL saisie).
945-
if ("TEXTAREA" === event.target.tagName) {
945+
if ("TEXTAREA" === event.target.nodeName) {
946946
if ("Enter" === event.key) {
947947
send();
948948
event.preventDefault();

0 commit comments

Comments
 (0)