From 66d5f6247b89f607efed3be1806d890f5d5a40e5 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 18 Sep 2026 15:43:01 +0900 Subject: [PATCH] Add eslint packages --- README.md | 8 ++++++++ eslint.config.mjs | 4 ++++ package.json | 8 ++++---- www/lib/CoreLibs/Check/File.php | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b3ddd145..03ba64ba 100644 --- a/README.md +++ b/README.md @@ -124,3 +124,11 @@ The development for those files is located in a different repository General: Org: + +### Update NPM packages + +```sh +npm-check-updates +ncu -u +npm install +``` diff --git a/eslint.config.mjs b/eslint.config.mjs index ff91f7eb..e121b33d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -18,6 +18,10 @@ export default [ globals: { ...globals.browser, ...globals.jquery + }, + parserOptions: { + ecmaVersion: 2022, + sourceType: "script", } }}, pluginJs.configs.recommended, diff --git a/package.json b/package.json index af2d2ff1..e827b621 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "license": "", "description": "Core Libraries", "devDependencies": { - "@eslint/js": "^9.20.0", - "esbuild": "^0.25.0", - "eslint": "^9.20.1", - "globals": "^15.15.0" + "@eslint/js": "^10.0.1", + "esbuild": "^0.28.1", + "eslint": "^10.5.0", + "globals": "^17.7.0" } } diff --git a/www/lib/CoreLibs/Check/File.php b/www/lib/CoreLibs/Check/File.php index a3f42445..e1233746 100644 --- a/www/lib/CoreLibs/Check/File.php +++ b/www/lib/CoreLibs/Check/File.php @@ -60,7 +60,7 @@ class File * @param string $read_file File to read, relative or absolute path * @return string mime type * @throws \UnexpectedValueException if file cannot be read or is not a file - * @throws \RangeException if we cannot get a mime type and throw exception is on + * @throws \RangeException if we cannot get a mime type */ public static function getMimeType(string $read_file): string {