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>
|
General: <https://[service]/CodeBlocks/JavaScript.utils>
|
||||||
|
|
||||||
Org: <https://[serverice]/[org]/Code-Blocks.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: {
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
...globals.jquery
|
...globals.jquery
|
||||||
|
},
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 2022,
|
||||||
|
sourceType: "script",
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
pluginJs.configs.recommended,
|
pluginJs.configs.recommended,
|
||||||
|
|||||||
+4
-4
@@ -9,9 +9,9 @@
|
|||||||
"license": "",
|
"license": "",
|
||||||
"description": "Core Libraries",
|
"description": "Core Libraries",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.20.0",
|
"@eslint/js": "^10.0.1",
|
||||||
"esbuild": "^0.25.0",
|
"esbuild": "^0.28.1",
|
||||||
"eslint": "^9.20.1",
|
"eslint": "^10.5.0",
|
||||||
"globals": "^15.15.0"
|
"globals": "^17.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class File
|
|||||||
* @param string $read_file File to read, relative or absolute path
|
* @param string $read_file File to read, relative or absolute path
|
||||||
* @return string mime type
|
* @return string mime type
|
||||||
* @throws \UnexpectedValueException if file cannot be read or is not a file
|
* @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
|
public static function getMimeType(string $read_file): string
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user