Skip to content

Commit

Permalink
Merge pull request #115 from EastSun5566/feat/add-jsr-config
Browse files Browse the repository at this point in the history
chore: add jsr config
  • Loading branch information
EastSun5566 authored Oct 12, 2024
2 parents f3dc8bb + 31663d1 commit 83617ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@eastsun5566/cc-gram",
"version": "1.1.0",
"exports": "./src/index.ts"
}
3 changes: 2 additions & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLImageElement>(selectors)
.forEach((target): void => {
Expand Down

0 comments on commit 83617ae

Please sign in to comment.