Skip to content

Commit 273b7bc

Browse files
authored
chore: upgrade eslint to v9 (#12098)
1 parent 7acc801 commit 273b7bc

File tree

5 files changed

+329
-223
lines changed

5 files changed

+329
-223
lines changed

.eslintrc.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

eslint.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import svelte_config from '@sveltejs/eslint-config';
2+
3+
/** @type {import('eslint').Linter.FlatConfig[]} */
4+
export default [
5+
...svelte_config,
6+
{
7+
rules: {
8+
'no-undef': 'off'
9+
}
10+
},
11+
{
12+
ignores: [
13+
'**/.svelte-kit',
14+
'packages/adapter-static/test/apps/*/build',
15+
'packages/adapter-cloudflare/files',
16+
'packages/adapter-netlify/files',
17+
'packages/adapter-node/files'
18+
]
19+
}
20+
];

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
},
2323
"devDependencies": {
2424
"@changesets/cli": "^2.27.1",
25-
"@sveltejs/eslint-config": "^6.0.4",
25+
"@sveltejs/eslint-config": "^7.0.1",
2626
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
27-
"@typescript-eslint/eslint-plugin": "^7.0.0",
28-
"eslint": "^8.56.0",
27+
"eslint": "^9.0.0",
2928
"eslint-config-prettier": "^9.1.0",
30-
"eslint-plugin-svelte": "^2.35.1",
29+
"eslint-plugin-svelte": "^2.36.0",
3130
"eslint-plugin-unicorn": "^52.0.0",
32-
"playwright": "^1.41.0"
31+
"playwright": "^1.41.0",
32+
"typescript-eslint": "^7.6.0"
3333
},
3434
"packageManager": "[email protected]",
3535
"engines": {

packages/kit/test/apps/basics/test/client.test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,7 @@ test.describe('data-sveltekit attributes', () => {
717717
expect(page).toHaveURL(offline_url);
718718
});
719719

720-
test('data-sveltekit-preload does not abort ongoing navigation', async ({
721-
page,
722-
browserName
723-
}) => {
720+
test('data-sveltekit-preload does not abort ongoing navigation', async ({ page }) => {
724721
await page.goto('/data-sveltekit/preload-data/offline');
725722

726723
await page.locator('#slow-navigation').dispatchEvent('click');
@@ -731,10 +728,7 @@ test.describe('data-sveltekit attributes', () => {
731728
page.waitForLoadState('networkidle') // wait for preloading to finish
732729
]);
733730

734-
expect(page).toHaveURL(
735-
'/data-sveltekit/preload-data/offline/slow-navigation' ||
736-
(browserName === 'chromium' && 'chrome-error://chromewebdata/')
737-
);
731+
expect(page).toHaveURL('/data-sveltekit/preload-data/offline/slow-navigation');
738732
});
739733

740734
test('data-sveltekit-reload', async ({ baseURL, page, clicknav }) => {

0 commit comments

Comments
 (0)