Skip to content

Commit

Permalink
chore: lint and remove unsued ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDeveloperr committed Oct 30, 2024
1 parent dfadf68 commit e24a856
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},

"lint": {
"exclude": ["./yoga", "./build"],
"exclude": ["./yoga", "./build", "./tests"],
"rules": {
"exclude": ["no-unused-vars", "no-process-globals", "no-var"]
}
Expand Down
2 changes: 0 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ if (typeof Deno === "object") {
module,
new URL("./build/libyoga_node_api.dylib", import.meta.url).pathname,
);
// @ts-expect-error require is not defined
} else if (typeof require !== "undefined") {
// @ts-expect-error require is not defined
const r = require;
module = r(
"NSBundle" in globalThis
Expand Down

0 comments on commit e24a856

Please sign in to comment.