Add eslint packages
This commit is contained in:
@@ -124,3 +124,11 @@ The development for those files is located in a different repository
|
||||
General: <https://[service]/CodeBlocks/JavaScript.utils>
|
||||
|
||||
Org: <https://[serverice]/[org]/Code-Blocks.JavaScript.utils>
|
||||
|
||||
### Update NPM packages
|
||||
|
||||
```sh
|
||||
npm-check-updates
|
||||
ncu -u
|
||||
npm install
|
||||
```
|
||||
|
||||
@@ -18,6 +18,10 @@ export default [
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.jquery
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2022,
|
||||
sourceType: "script",
|
||||
}
|
||||
}},
|
||||
pluginJs.configs.recommended,
|
||||
|
||||
+4
-4
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user