mirror of
https://github.com/ebullient/obsidian-deck-notes.git
synced 2026-07-22 06:40:43 +00:00
🔧 🎨 eslint updates + fixes
This commit is contained in:
parent
b3af69c936
commit
622aa168fe
5 changed files with 36 additions and 50 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"id": "deck-notes",
|
||||
"name": "Deck Notes",
|
||||
"version": "0.7.4",
|
||||
"minAppVersion": "1.9.0",
|
||||
"minAppVersion": "1.12.0",
|
||||
"description": "Define card decks for activities, strategies, or any content you want to rotate through. Embed cards in your notes or browse them in a modal. Filter by tag hierarchies to narrow your selection.",
|
||||
"author": "ebullient",
|
||||
"authorUrl": "https://github.com/ebullient",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"id": "deck-notes",
|
||||
"name": "Deck Notes",
|
||||
"version": "0.7.4",
|
||||
"minAppVersion": "1.9.0",
|
||||
"minAppVersion": "1.12.0",
|
||||
"description": "Define card decks for activities, strategies, or any content you want to rotate through. Embed cards in your notes or browse them in a modal. Filter by tag hierarchies to narrow your selection.",
|
||||
"author": "ebullient",
|
||||
"authorUrl": "https://github.com/ebullient",
|
||||
|
|
|
|||
74
package-lock.json
generated
74
package-lock.json
generated
|
|
@ -16,7 +16,7 @@
|
|||
"builtin-modules": "^5.0.0",
|
||||
"esbuild": "^0.27.4",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-plugin-obsidianmd": "^0.1.9",
|
||||
"eslint-plugin-obsidianmd": "^0.2.9",
|
||||
"moment": "^2.30.1",
|
||||
"obsidian": "^1.11.0",
|
||||
"tslib": "^2.8.1",
|
||||
|
|
@ -779,7 +779,6 @@
|
|||
"integrity": "sha512-rvR/EZtvUG3p9uqrSmcDJPYSH7atmWr0RnFWN6m917MAPx82+zQgPUmDu0whPFG6XTyM0vB/hR6c1Q63OaYtCQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint/core": "^0.17.0",
|
||||
"@eslint/plugin-kit": "^0.4.1",
|
||||
|
|
@ -858,7 +857,6 @@
|
|||
"integrity": "sha512-KWiFQpSAqEIyrTXko3hFNLeQvSK8zXlJQzhhxsyVn58WFRYXST99b3Nqnu+ttOtjds2Pl2grUHGpe2NzhPynuQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
|
|
@ -954,9 +952,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@types/eslint": {
|
||||
"version": "8.56.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.2.tgz",
|
||||
"integrity": "sha512-uQDwm1wFHmbBbCZCqAlq6Do9LYwByNZHWzXppSnay9SuwJ+VRbjkbLABer54kcPnMSlG6Fdiy2yaFXm/z9Z5gw==",
|
||||
"version": "9.6.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz",
|
||||
"integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
@ -1011,7 +1009,6 @@
|
|||
"integrity": "sha512-aC2qc5thQahutKjP+cl8cgN9DWe3ZUqVko30CMSZHnFEHyhOYoZSzkGtAI2mcwZ38xeImDucI4dnqsHiOYuuCw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.12.2",
|
||||
"@typescript-eslint/scope-manager": "8.58.2",
|
||||
|
|
@ -1041,7 +1038,6 @@
|
|||
"integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
}
|
||||
|
|
@ -1134,7 +1130,6 @@
|
|||
"integrity": "sha512-Z7EloNR/B389FvabdGeTo2XMs4W9TjtPiO9DAsmT0yom0bwlPyRjkJ1uCdW1DvrrrYP50AJZ9Xc3sByZA9+dcg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.58.2",
|
||||
"@typescript-eslint/typescript-estree": "8.58.2",
|
||||
|
|
@ -1202,7 +1197,6 @@
|
|||
"integrity": "sha512-QZfjHNEzPY8+l0+fIXMvuQ2sJlplB4zgDZvA+NmvZsZv3EQwOcc1DuIU1VJUTWZ/RKouBMhDyNaBMx4sWvrzRA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.9.1",
|
||||
"@typescript-eslint/scope-manager": "8.58.2",
|
||||
|
|
@ -2380,24 +2374,42 @@
|
|||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-no-unsanitized": {
|
||||
"version": "4.1.5",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-no-unsanitized/-/eslint-plugin-no-unsanitized-4.1.5.tgz",
|
||||
"integrity": "sha512-MSB4hXPVFQrI8weqzs6gzl7reP2k/qSjtCoL2vUMSDejIIq9YL1ZKvq5/ORBXab/PvfBBrWO2jWviYpL+4Ghfg==",
|
||||
"dev": true,
|
||||
"license": "MPL-2.0",
|
||||
"peerDependencies": {
|
||||
"eslint": "^9 || ^10"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-obsidianmd": {
|
||||
"version": "0.1.9",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-obsidianmd/-/eslint-plugin-obsidianmd-0.1.9.tgz",
|
||||
"integrity": "sha512-/gyo5vky3Y7re4BtT/8MQbHU5Wes4o6VRqas3YmXE7aTCnMsdV0kfzV1GDXJN9Hrsc9UQPoeKUMiapKL0aGE4g==",
|
||||
"version": "0.2.9",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-obsidianmd/-/eslint-plugin-obsidianmd-0.2.9.tgz",
|
||||
"integrity": "sha512-+dF5Zz5T6/j0QYGu+wHbY3UZb45Kh+QFkFdfvkVk05o4YIIVqHMlrTFrlRVhuBd6Htu8QxcFOwzeMTN4aysVTA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint/config-helpers": "^0.4.2",
|
||||
"@eslint/js": "^9.30.1",
|
||||
"@eslint/json": "0.14.0",
|
||||
"@microsoft/eslint-plugin-sdl": "^1.1.0",
|
||||
"@types/eslint": "8.56.2",
|
||||
"@types/eslint": "9.6.1",
|
||||
"@types/node": "20.12.12",
|
||||
"eslint": ">=9.0.0 <10.0.0",
|
||||
"@typescript-eslint/types": "^8.33.1",
|
||||
"@typescript-eslint/utils": "^8.33.1",
|
||||
"eslint": ">=9.0.0",
|
||||
"eslint-plugin-depend": "1.3.1",
|
||||
"eslint-plugin-import": "^2.31.0",
|
||||
"eslint-plugin-json-schema-validator": "5.1.0",
|
||||
"eslint-plugin-no-unsanitized": "^4.1.5",
|
||||
"eslint-plugin-security": "2.1.1",
|
||||
"globals": "14.0.0",
|
||||
"obsidian": "1.8.7",
|
||||
"typescript": "5.4.5"
|
||||
"obsidian": "1.12.3",
|
||||
"semver": "^7.7.4",
|
||||
"typescript": "5.4.5",
|
||||
"typescript-eslint": "^8.35.1"
|
||||
},
|
||||
"bin": {
|
||||
"eslint-plugin-obsidian": "dist/lib/index.js"
|
||||
|
|
@ -2408,7 +2420,7 @@
|
|||
"peerDependencies": {
|
||||
"@eslint/js": "^9.30.1",
|
||||
"@eslint/json": "0.14.0",
|
||||
"eslint": ">=9.0.0 <10.0.0",
|
||||
"eslint": ">=9.0.0",
|
||||
"obsidian": "1.8.7",
|
||||
"typescript-eslint": "^8.35.1"
|
||||
}
|
||||
|
|
@ -2423,31 +2435,6 @@
|
|||
"undici-types": "~5.26.4"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-obsidianmd/node_modules/moment": {
|
||||
"version": "2.29.4",
|
||||
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
|
||||
"integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-obsidianmd/node_modules/obsidian": {
|
||||
"version": "1.8.7",
|
||||
"resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.8.7.tgz",
|
||||
"integrity": "sha512-h4bWwNFAGRXlMlMAzdEiIM2ppTGlrh7uGOJS6w4gClrsjc+ei/3YAtU2VdFUlCiPuTHpY4aBpFJJW75S1Tl/JA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/codemirror": "5.60.8",
|
||||
"moment": "2.29.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@codemirror/state": "^6.0.0",
|
||||
"@codemirror/view": "^6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-obsidianmd/node_modules/typescript": {
|
||||
"version": "5.4.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
|
||||
|
|
@ -5021,7 +5008,6 @@
|
|||
"integrity": "sha512-V8iSng9mRbdZjl54VJ9NKr6ZB+dW0J3TzRXRGcSbLIej9jV86ZRtlYeTKDR/QLxXykocJ5icNzbsl2+5TzIvcQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "8.58.2",
|
||||
"@typescript-eslint/parser": "8.58.2",
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"builtin-modules": "^5.0.0",
|
||||
"esbuild": "^0.27.4",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-plugin-obsidianmd": "^0.1.9",
|
||||
"eslint-plugin-obsidianmd": "^0.2.9",
|
||||
"moment": "^2.30.1",
|
||||
"obsidian": "^1.11.0",
|
||||
"tslib": "^2.8.1",
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export class CardModal extends Modal {
|
|||
contentEl.createEl("h2", { text: this.card.heading });
|
||||
|
||||
// Render card content as markdown
|
||||
const contentDiv = contentEl.createEl("div", {
|
||||
const contentDiv = contentEl.createDiv({
|
||||
cls: "card-content",
|
||||
});
|
||||
|
||||
|
|
@ -66,7 +66,7 @@ export class CardModal extends Modal {
|
|||
|
||||
private addControls() {
|
||||
const { contentEl } = this;
|
||||
const buttonContainer = contentEl.createEl("div", {
|
||||
const buttonContainer = contentEl.createDiv({
|
||||
cls: "modal-button-container",
|
||||
});
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ export class CardModal extends Modal {
|
|||
|
||||
private addCloseButton() {
|
||||
const { contentEl } = this;
|
||||
const buttonContainer = contentEl.createEl("div", {
|
||||
const buttonContainer = contentEl.createDiv({
|
||||
cls: "modal-button-container",
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue