From 59398b53e386e8cb854117215c8c260d5c5ef3ee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 19 Jun 2025 12:09:22 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump @antfu/eslint-config from 4.14.1 to 4.15.0 Bumps [@antfu/eslint-config](https://github.com/antfu/eslint-config) from 4.14.1 to 4.15.0. - [Release notes](https://github.com/antfu/eslint-config/releases) - [Commits](https://github.com/antfu/eslint-config/compare/v4.14.1...v4.15.0) --- updated-dependencies: - dependency-name: "@antfu/eslint-config" dependency-version: 4.15.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b39f626..34a0270 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "eslint ." }, "devDependencies": { - "@antfu/eslint-config": "~4.14.1", + "@antfu/eslint-config": "~4.15.0", "@fontsource-variable/fira-code": "^5.0.19", "@fontsource-variable/jetbrains-mono": "^5.0.22", "@iconify/json": "^2.2.239", From 856a5259ce85c2882cef39c0590174340fd6742b Mon Sep 17 00:00:00 2001 From: Muspi Merol Date: Sat, 21 Jun 2025 02:10:48 +0800 Subject: [PATCH 2/2] fix: disable `import/no-mutable-exports` rule for Svelte files --- eslint.config.js | 5 +++++ src/lib/py/load.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index d0fbef2..054c72a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -23,4 +23,9 @@ export default antfu({ "no-console": "warn", "yaml/indent": ["error", 4, { indicatorValueIndent: 2 }], }, + overrides: { + svelte: { + "import/no-mutable-exports": "off", + }, + }, }); diff --git a/src/lib/py/load.ts b/src/lib/py/load.ts index d8d3619..28d4742 100644 --- a/src/lib/py/load.ts +++ b/src/lib/py/load.ts @@ -18,4 +18,5 @@ export const getPy = cacheSingleton(async () => { return pyodide; }); +// eslint-disable-next-line import/no-mutable-exports export let py: PyodideInterface;