Skip to content

Commit bb5fb80

Browse files
committed
Upgrade lint tooling and checks
1 parent 7edf72e commit bb5fb80

14 files changed

Lines changed: 1874 additions & 1666 deletions

File tree

.cursor/rules/pnpm-install.mdc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
alwaysApply: false
3+
---
4+
5+
# pnpm install
6+
7+
- Never run `pnpm install` or `pnpm i` in the sandbox.
8+
- When dependencies need installing or updating, **prompt the user** to run `pnpm install` (or the exact `pnpm` command) locally instead of running it here.

.cursor/skills/wxt-svelte-extension/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ description: Provides project context for the amgiflol WXT + Svelte 5 browser ex
3232

3333
- `pnpm lint` (oxlint); import order and sort-imports per [.oxlintrc.jsonc](.oxlintrc.jsonc)
3434
- `pnpm fmt` (oxfmt); `pnpm fmt:check` to check only
35+
- Tooling is kept current with oxfmt/oxlint updates; update this section when upgrading formatter or linter.
3536

3637
## Additional context
3738

.oxfmtrc.jsonc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
"files": ["*.json", "*.jsonc"],
1212
"options": {
1313
"tabWidth": 4,
14-
},
14+
"trailingComma": "none"
15+
}
1516
},
1617
{
1718
"files": ["*.md", "*.yml", "*.yaml"],
1819
"options": {
19-
"tabWidth": 2,
20-
},
21-
},
20+
"tabWidth": 2
21+
}
22+
}
2223
],
23-
"experimentalSortImports": {
24+
"sortImports": {
2425
"newlinesBetween": true,
2526
"groups": [
2627
"type-import",
@@ -29,12 +30,11 @@
2930
"value-internal",
3031
["type-parent", "type-sibling", "type-index"],
3132
["value-parent", "value-sibling", "value-index"],
32-
"unknown",
33-
],
33+
"unknown"
34+
]
3435
},
35-
"experimentalTailwindcss": {
36+
"sortTailwindcss": {
3637
"functions": ["clsx", "cn"],
37-
"preserveWhitespace": true,
38-
},
39-
"experimentalSortPackageJson": true,
38+
"preserveWhitespace": true
39+
}
4040
}

.oxlintrc.jsonc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
{
66
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
77
"newlines-between": "always",
8-
"alphabetize": { "order": "asc", "caseInsensitive": true },
9-
},
8+
"alphabetize": { "order": "asc", "caseInsensitive": true }
9+
}
1010
],
1111
"sort-imports": [
1212
"error",
13-
{ "ignoreCase": true, "ignoreDeclarationSort": true, "ignoreMemberSort": false },
14-
],
15-
},
13+
{ "ignoreCase": true, "ignoreDeclarationSort": true, "ignoreMemberSort": false }
14+
]
15+
}
1616
}

e2e/fixtures.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test as base, chromium, type BrowserContext } from "@playwright/test";
1+
import { test as base, type BrowserContext, chromium } from "@playwright/test";
22
import os from "os";
33
import path from "path";
44

@@ -9,7 +9,7 @@ export const test = base.extend<{
99
context: BrowserContext;
1010
extensionId: string;
1111
}>({
12-
context: async ({}, use) => {
12+
context: async ({ browserName: _browserName }, use) => {
1313
const context = await chromium.launchPersistentContext(userDataDir, {
1414
headless: !!process.env.CI,
1515
args: [

e2e/pages/popup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Page } from "@playwright/test";
22

33
const POPUP_ACTIVE_TIMEOUT = 15_000;
4-
54
export async function openPopup(page: Page, extensionId: string) {
65
await page.goto(`chrome-extension://${extensionId}/popup.html`);
76
await page.waitForLoadState("domcontentloaded");

e2e/tests/extension.spec.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { test, expect } from "../fixtures";
1+
import { expect, test } from "../fixtures";
22
import { openPopup } from "../pages/popup";
33
import {
4-
openStableTestPage,
54
expectSvelteAppLoaded,
65
getExtensionRoot,
76
getInspectorActiveMain,
7+
openStableTestPage,
88
} from "../pages/web";
99

1010
test.describe("Popup", () => {
@@ -15,11 +15,7 @@ test.describe("Popup", () => {
1515
});
1616

1717
test.describe("Content injection", () => {
18-
test("inspector root and app load on supported page", async ({
19-
page,
20-
context,
21-
extensionId,
22-
}) => {
18+
test("inspector root and app load on supported page", async ({ page }) => {
2319
await openStableTestPage(page);
2420
await expect(getExtensionRoot(page)).toBeVisible();
2521
await expectSvelteAppLoaded(page);
@@ -28,9 +24,8 @@ test.describe("Content injection", () => {
2824

2925
test.describe("Per-domain activation", () => {
3026
test("when domain is enabled in storage, inspector is active on page load", async ({
31-
page,
3227
context,
33-
extensionId,
28+
page,
3429
}) => {
3530
const [worker] = context.serviceWorkers();
3631
const setStorage = (domain: string) => {

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,33 @@
2626
"zip:firefox": "wxt zip -b firefox --mv3"
2727
},
2828
"dependencies": {
29-
"@ark-ui/svelte": "^5.17.0",
30-
"@lucide/svelte": "^0.575.0",
29+
"@ark-ui/svelte": "^5.19.1",
30+
"@lucide/svelte": "^0.577.0",
3131
"@wxt-dev/analytics": "0.5.4"
3232
},
3333
"devDependencies": {
34-
"@changesets/cli": "^2.29.8",
34+
"@changesets/cli": "^2.30.0",
3535
"@playwright/test": "^1.58.2",
3636
"@tsconfig/svelte": "^5.0.8",
37-
"@types/node": "^25.3.0",
38-
"@unocss/extractor-svelte": "^66.6.0",
39-
"@unocss/preset-attributify": "^66.6.0",
40-
"@unocss/preset-rem-to-px": "^66.6.0",
41-
"@unocss/preset-wind4": "^66.6.0",
37+
"@types/node": "^25.4.0",
38+
"@unocss/extractor-svelte": "^66.6.6",
39+
"@unocss/preset-attributify": "^66.6.6",
40+
"@unocss/preset-rem-to-px": "^66.6.6",
41+
"@unocss/preset-wind4": "^66.6.6",
4242
"@wxt-dev/auto-icons": "^1.1.1",
4343
"@wxt-dev/module-svelte": "^2.0.4",
4444
"@wxt-dev/unocss": "^1.0.1",
45-
"oxfmt": "^0.35.0",
46-
"oxlint": "^1.50.0",
47-
"oxlint-tsgolint": "^0.14.2",
45+
"oxfmt": "^0.38.0",
46+
"oxlint": "^1.53.0",
47+
"oxlint-tsgolint": "^0.16.0",
4848
"playwright": "^1.58.2",
4949
"playwright-webextext": "^0.0.4",
5050
"runed": "^0.37.1",
51-
"svelte": "^5.53.3",
52-
"svelte-check": "^4.4.3",
51+
"svelte": "^5.53.10",
52+
"svelte-check": "^4.4.5",
5353
"tslib": "^2.8.1",
5454
"typescript": "^5.9.3",
55-
"unocss": "^66.6.0",
55+
"unocss": "^66.6.6",
5656
"wxt": "^0.20.18"
5757
},
5858
"engines": {

0 commit comments

Comments
 (0)