mirror of
https://github.com/ai-jani/about-blank.git
synced 2026-07-22 05:44:52 +00:00
chore: Update dependencies and ESLint configuration
- Updated various development dependencies in `package.json` and `package-lock.json` to their latest versions, including ESLint, TypeScript, and esbuild. - Modified `eslint.config.mjs` to use `projectService: true` instead of `project: true` for TypeScript parser options. - Changed `onChooseSuggestion` in `src/ui/executionSuggester.ts` to not await the execution callback to pass in ESLint.
This commit is contained in:
parent
035207a057
commit
68cbf74d20
4 changed files with 492 additions and 563 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import eslint from "@eslint/js";
|
||||
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
import {
|
||||
|
|
@ -20,11 +21,11 @@ export default tseslint.config(
|
|||
],
|
||||
},
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommendedTypeChecked,
|
||||
tseslint.configs.recommendedTypeChecked,
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
project: true,
|
||||
projectService: true,
|
||||
tsconfigRootDir: __dirname,
|
||||
// tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
|
|
|
|||
1028
package-lock.json
generated
1028
package-lock.json
generated
File diff suppressed because it is too large
Load diff
18
package.json
18
package.json
|
|
@ -15,17 +15,17 @@
|
|||
"author": "Ai-Jani",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^8.57.1",
|
||||
"@types/node": "^16.11.6",
|
||||
"builtin-modules": "3.3.0",
|
||||
"@eslint/js": "^9.23.0",
|
||||
"@types/node": "^22.13.11",
|
||||
"builtin-modules": "^5.0.0",
|
||||
"dprint": "^0.49.0",
|
||||
"esbuild": "0.17.3",
|
||||
"eslint": "^8.57.1",
|
||||
"esbuild": "^0.25.1",
|
||||
"eslint": "^9.23.0",
|
||||
"markdownlint-cli2": "^0.17.2",
|
||||
"obsidian": "latest",
|
||||
"tslib": "2.4.0",
|
||||
"typescript": "4.7.4",
|
||||
"typescript-eslint": "^7.18.0"
|
||||
"obsidian": "^1.8.7",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.8.2",
|
||||
"typescript-eslint": "^8.27.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"uuid": "^11.1.0"
|
||||
|
|
|
|||
|
|
@ -59,9 +59,9 @@ export class ExecutionSuggester extends SuggestModal<Execution> {
|
|||
}
|
||||
}
|
||||
|
||||
async onChooseSuggestion(execution: Execution, event: MouseEvent | KeyboardEvent) {
|
||||
onChooseSuggestion(execution: Execution, event: MouseEvent | KeyboardEvent) {
|
||||
try {
|
||||
await execution.callback();
|
||||
void execution.callback();
|
||||
} catch (error) {
|
||||
loggerOnError(error, "Failled to select suggestion.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue