Skip to content

Commit

Permalink
Fix a few TS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
guyca committed Jan 6, 2025
1 parent 449dd19 commit 72b92fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/eslint-plugin-obsidian/src/dto/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export class Clazz {
return this.node.abstract;
}

public isDecoratedWithIgnoreCase(decoratorName: string) {
return this.decoratorNames.some(name => name.toLowerCase() === decoratorName.toLowerCase());
}

get decoratorNames() {
return this.decorators.map((decorator: Decorator) => {
return decorator.expression.callee.name;
Expand Down
2 changes: 0 additions & 2 deletions packages/swc-plugin-obsidian/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"@types/jest": "^29.5.12",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react": "^4.3.2",
"@vitejs/plugin-react-swc": "^3.7.1",
"jsdom": "^24.1.0",
Expand Down

0 comments on commit 72b92fe

Please sign in to comment.