From 31663d112bd029cda946b8825b558a7cef37f6c3 Mon Sep 17 00:00:00 2001 From: Michael Wang Date: Thu, 10 Oct 2024 04:25:03 +0800 Subject: [PATCH] chore: add jsr config --- jsr.json | 5 +++++ src/core.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 jsr.json diff --git a/jsr.json b/jsr.json new file mode 100644 index 0000000..ff5bd25 --- /dev/null +++ b/jsr.json @@ -0,0 +1,5 @@ +{ + "name": "@eastsun5566/cc-gram", + "version": "1.1.0", + "exports": "./src/index.ts" +} diff --git a/src/core.ts b/src/core.ts index 629d6e7..251fa44 100644 --- a/src/core.ts +++ b/src/core.ts @@ -92,7 +92,8 @@ export class CCgram { * Apply CSS filter to all targets * @param [selectors='img[data-${this._dataAttribute}]'] - selectors */ - applyFilter(selectors = `img[data-${this._dataAttribute}]`): void { + // eslint-disable-next-line @typescript-eslint/no-inferrable-types + applyFilter(selectors: string = `img[data-${this._dataAttribute}]`): void { document .querySelectorAll(selectors) .forEach((target): void => {