Skip to content

Commit 8f5175c

Browse files
committed
Fix build and lint issues
1 parent 6c51f66 commit 8f5175c

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

packages/snaps-controllers/src/services/iframe/test/index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
// Parent is the iframe created by Vitest containing the Snap iframe
1515
// and this page as a sibling iframe. We try to access the Snap iframe
1616
// from the parent iframe.
17-
const snap = parent.document.querySelector('iframe[data-testid="snaps-iframe"]');
17+
const snap = parent.document.querySelector(
18+
'iframe[data-testid="snaps-iframe"]',
19+
);
1820
if (!snap) {
1921
window.parent.postMessage('Failed to find Snap iframe.', '*');
2022
return;
@@ -23,7 +25,10 @@
2325
// We try to access the snap iframe document. If this works, it means
2426
// that the iframe is not sandboxed. Otherwise it will throw an error.
2527
if (snap.contentDocument === null) {
26-
window.parent.postMessage('Failed to access document of the snap iframe.', '*');
28+
window.parent.postMessage(
29+
'Failed to access document of the snap iframe.',
30+
'*',
31+
);
2732
return;
2833
}
2934
} catch (e) {

packages/snaps-controllers/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
"compilerOptions": {
44
"baseUrl": "./"
55
},
6-
"include": ["./src", "scripts", "package.json", "react-native.d.ts", "vitest.config.mts"],
6+
"include": [
7+
"./src",
8+
"scripts",
9+
"package.json",
10+
"react-native.d.ts",
11+
"vitest.config.mts"
12+
],
713
"references": [
814
{ "path": "../snaps-execution-environments" },
915
{ "path": "../snaps-rpc-methods" },

tsconfig.packages.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@metamask/*": ["../*/src"]
1818
},
1919
"resolveJsonModule": true,
20+
"skipLibCheck": true,
2021
"strict": true,
2122
"target": "ES2020",
2223
"useUnknownInCatchVariables": false

0 commit comments

Comments
 (0)