Skip to content

Commit 331957d

Browse files
authored
Fix new lint violations after rebase (#3130)
This fixes a couple of minor issues after rebasing the `eslint-9` branch.
1 parent de964a3 commit 331957d

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

eslint.config.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const config = createConfig([
88
{
99
ignores: [
1010
'**/assembly',
11+
'**/build',
1112
'**/coverage',
1213
'**/dist',
1314
'**/docs',
@@ -29,7 +30,7 @@ const config = createConfig([
2930
},
3031

3132
settings: {
32-
'import-x/extensions': ['.js', '.mjs'],
33+
'import-x/extensions': ['.js', '.mjs', '.wasm'],
3334
},
3435

3536
rules: {
@@ -350,6 +351,16 @@ const config = createConfig([
350351
'import-x/no-unresolved': 'off',
351352
},
352353
},
354+
355+
// Wasm example
356+
{
357+
files: ['packages/examples/packages/wasm/src/index.ts'],
358+
359+
rules: {
360+
// This rule changes depending on whether the build files exist or not.
361+
'import-x/extensions': 'off',
362+
},
363+
},
353364
]);
354365

355366
export default config;

packages/examples/packages/wasm/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import type { instantiate } from '../build/program';
99

1010
// This is the WASM module, generated by AssemblyScript, inlined as an object
1111
// containing the functions exported by the WASM module.
12-
// eslint-disable-next-line import-x/extensions
1312
import * as program from '../build/program.wasm';
1413

1514
/**

packages/snaps-controllers/src/services/webview/WebViewMessageStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class WebViewMessageStream extends BasePostMessageStream {
2323

2424
readonly #target;
2525

26-
#webView: WebViewInterface | undefined;
26+
readonly #webView: WebViewInterface | undefined;
2727

2828
/**
2929
* Creates a stream for communicating with other streams inside a WebView.

packages/snaps-simulation/src/helpers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ export function getHelpers({
270270
});
271271
};
272272

273+
// This can't be async because it returns a `SnapRequest`.
274+
// eslint-disable-next-line @typescript-eslint/promise-function-async
273275
const onKeyringRequest = (request: KeyringOptions) => {
274276
log('Sending keyring request %o.', request);
275277

0 commit comments

Comments
 (0)