Skip to content

Commit

Permalink
chore: upgrade eslint to v9 (#12098)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor authored Apr 11, 2024
1 parent 7acc801 commit 273b7bc
Show file tree
Hide file tree
Showing 5 changed files with 329 additions and 223 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

20 changes: 20 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import svelte_config from '@sveltejs/eslint-config';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
...svelte_config,
{
rules: {
'no-undef': 'off'
}
},
{
ignores: [
'**/.svelte-kit',
'packages/adapter-static/test/apps/*/build',
'packages/adapter-cloudflare/files',
'packages/adapter-netlify/files',
'packages/adapter-node/files'
]
}
];
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@sveltejs/eslint-config": "^6.0.4",
"@sveltejs/eslint-config": "^7.0.1",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"eslint": "^8.56.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"eslint-plugin-svelte": "^2.36.0",
"eslint-plugin-unicorn": "^52.0.0",
"playwright": "^1.41.0"
"playwright": "^1.41.0",
"typescript-eslint": "^7.6.0"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
10 changes: 2 additions & 8 deletions packages/kit/test/apps/basics/test/client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,7 @@ test.describe('data-sveltekit attributes', () => {
expect(page).toHaveURL(offline_url);
});

test('data-sveltekit-preload does not abort ongoing navigation', async ({
page,
browserName
}) => {
test('data-sveltekit-preload does not abort ongoing navigation', async ({ page }) => {
await page.goto('/data-sveltekit/preload-data/offline');

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

expect(page).toHaveURL(
'/data-sveltekit/preload-data/offline/slow-navigation' ||
(browserName === 'chromium' && 'chrome-error://chromewebdata/')
);
expect(page).toHaveURL('/data-sveltekit/preload-data/offline/slow-navigation');
});

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

0 comments on commit 273b7bc

Please sign in to comment.