diff --git a/eslint.config.js b/eslint.config.js index 8f15b41b936e..8efec2c35168 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -26,8 +26,7 @@ export default [ rules: { '@typescript-eslint/await-thenable': 'error', '@typescript-eslint/no-unused-expressions': 'off', - '@typescript-eslint/require-await': 'error', - 'n/prefer-global/process': ['error', 'never'] + '@typescript-eslint/require-await': 'error' }, ignores: [ 'packages/adapter-node/rollup.config.js', diff --git a/package.json b/package.json index 7ee7a099e76f..3f9a3093dd53 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "devDependencies": { "@changesets/cli": "^2.27.8", - "@sveltejs/eslint-config": "^8.0.1", + "@sveltejs/eslint-config": "^8.1.0", "@svitejs/changesets-changelog-github-compact": "^1.1.0", "eslint": "^9.6.0", "playwright": "^1.44.1", diff --git a/packages/adapter-node/tests/smoke.spec.js b/packages/adapter-node/tests/smoke.spec.js index ea7f27658cf6..58809bf6cb59 100644 --- a/packages/adapter-node/tests/smoke.spec.js +++ b/packages/adapter-node/tests/smoke.spec.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { assert, test } from 'vitest'; import { create_kit_middleware } from '../src/handler.js'; import fetch from 'node-fetch'; diff --git a/packages/adapter-static/test/apps/prerendered/test/test.js b/packages/adapter-static/test/apps/prerendered/test/test.js index 2e187f8effd5..6b16d2fed83b 100644 --- a/packages/adapter-static/test/apps/prerendered/test/test.js +++ b/packages/adapter-static/test/apps/prerendered/test/test.js @@ -1,4 +1,5 @@ import * as fs from 'node:fs'; +import process from 'node:process'; import { expect, test } from '@playwright/test'; const cwd = process.cwd(); diff --git a/packages/adapter-static/test/apps/spa/test/test.js b/packages/adapter-static/test/apps/spa/test/test.js index f8f941ea2a2c..5963f490df7f 100644 --- a/packages/adapter-static/test/apps/spa/test/test.js +++ b/packages/adapter-static/test/apps/spa/test/test.js @@ -1,4 +1,5 @@ import * as fs from 'node:fs'; +import process from 'node:process'; import { expect, test } from '@playwright/test'; const cwd = process.cwd(); diff --git a/packages/kit/test/apps/amp/test/test.js b/packages/kit/test/apps/amp/test/test.js index 743662cedcfe..e3a0b6007a32 100644 --- a/packages/kit/test/apps/amp/test/test.js +++ b/packages/kit/test/apps/amp/test/test.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { expect } from '@playwright/test'; import { test } from '../../../utils.js'; diff --git a/packages/kit/test/apps/basics/playwright.config.js b/packages/kit/test/apps/basics/playwright.config.js index 0f7c1458a513..c6f0b8fa473e 100644 --- a/packages/kit/test/apps/basics/playwright.config.js +++ b/packages/kit/test/apps/basics/playwright.config.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { config } from '../../utils.js'; export default { diff --git a/packages/kit/test/apps/basics/test/client.test.js b/packages/kit/test/apps/basics/test/client.test.js index 1249b95c4930..2ecc4ba1c0da 100644 --- a/packages/kit/test/apps/basics/test/client.test.js +++ b/packages/kit/test/apps/basics/test/client.test.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { expect } from '@playwright/test'; import { test } from '../../../utils.js'; diff --git a/packages/kit/test/apps/basics/test/cross-platform/client.test.js b/packages/kit/test/apps/basics/test/cross-platform/client.test.js index 313cdfec80ae..6d367cf414c6 100644 --- a/packages/kit/test/apps/basics/test/cross-platform/client.test.js +++ b/packages/kit/test/apps/basics/test/cross-platform/client.test.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { expect } from '@playwright/test'; import { test } from '../../../../utils.js'; diff --git a/packages/kit/test/apps/basics/test/cross-platform/test.js b/packages/kit/test/apps/basics/test/cross-platform/test.js index f8616f5ec9ed..bf0013387e3b 100644 --- a/packages/kit/test/apps/basics/test/cross-platform/test.js +++ b/packages/kit/test/apps/basics/test/cross-platform/test.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { expect } from '@playwright/test'; import { test } from '../../../../utils.js'; diff --git a/packages/kit/test/apps/basics/test/server.test.js b/packages/kit/test/apps/basics/test/server.test.js index 78c408aeda8f..58a8c4cb0033 100644 --- a/packages/kit/test/apps/basics/test/server.test.js +++ b/packages/kit/test/apps/basics/test/server.test.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { expect } from '@playwright/test'; import { test } from '../../../utils.js'; import { createHash, randomBytes } from 'node:crypto'; diff --git a/packages/kit/test/apps/basics/test/setup.js b/packages/kit/test/apps/basics/test/setup.js index dc392bb19675..353e199df0c5 100644 --- a/packages/kit/test/apps/basics/test/setup.js +++ b/packages/kit/test/apps/basics/test/setup.js @@ -1,4 +1,5 @@ import fs from 'node:fs'; +import process from 'node:process'; if (process.platform !== 'win32') { process.chdir('src/routes/routing'); diff --git a/packages/kit/test/apps/basics/test/test.js b/packages/kit/test/apps/basics/test/test.js index fdded18a1bd9..3922d127039e 100644 --- a/packages/kit/test/apps/basics/test/test.js +++ b/packages/kit/test/apps/basics/test/test.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { expect } from '@playwright/test'; import { test } from '../../../utils.js'; diff --git a/packages/kit/test/apps/dev-only/test/test.js b/packages/kit/test/apps/dev-only/test/test.js index 6872157303ed..dfb8a4a99e13 100644 --- a/packages/kit/test/apps/dev-only/test/test.js +++ b/packages/kit/test/apps/dev-only/test/test.js @@ -2,6 +2,7 @@ import { expect } from '@playwright/test'; import { test } from '../../../utils.js'; import fs from 'node:fs'; import path from 'node:path'; +import process from 'node:process'; import { fileURLToPath } from 'node:url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); diff --git a/packages/kit/test/apps/options-2/test/test.js b/packages/kit/test/apps/options-2/test/test.js index 3f9514de8799..1633e55d28b4 100644 --- a/packages/kit/test/apps/options-2/test/test.js +++ b/packages/kit/test/apps/options-2/test/test.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { expect } from '@playwright/test'; import { test } from '../../../utils.js'; diff --git a/packages/kit/test/apps/options/test/test.js b/packages/kit/test/apps/options/test/test.js index de4135e992b3..cce1d30355b4 100644 --- a/packages/kit/test/apps/options/test/test.js +++ b/packages/kit/test/apps/options/test/test.js @@ -1,4 +1,5 @@ import * as http from 'node:http'; +import process from 'node:process'; import { expect } from '@playwright/test'; import { test } from '../../../utils.js'; diff --git a/packages/kit/test/apps/writes/test/test.js b/packages/kit/test/apps/writes/test/test.js index 397cf0f10d85..7e4362012a0a 100644 --- a/packages/kit/test/apps/writes/test/test.js +++ b/packages/kit/test/apps/writes/test/test.js @@ -1,5 +1,6 @@ import fs from 'node:fs'; import path from 'node:path'; +import process from 'node:process'; import { expect } from '@playwright/test'; import { fileURLToPath } from 'node:url'; import { test } from '../../../utils.js'; diff --git a/packages/kit/test/build-errors/env.spec.js b/packages/kit/test/build-errors/env.spec.js index 51c0e3cec830..c0c897d11b74 100644 --- a/packages/kit/test/build-errors/env.spec.js +++ b/packages/kit/test/build-errors/env.spec.js @@ -1,6 +1,7 @@ import { assert, test } from 'vitest'; import { execSync } from 'node:child_process'; import path from 'node:path'; +import process from 'node:process'; test('$env/dynamic/private is not statically importable from the client', () => { assert.throws( diff --git a/packages/kit/test/build-errors/prerender.spec.js b/packages/kit/test/build-errors/prerender.spec.js index 848de79f8492..65fa222c3986 100644 --- a/packages/kit/test/build-errors/prerender.spec.js +++ b/packages/kit/test/build-errors/prerender.spec.js @@ -2,6 +2,7 @@ import { assert, test } from 'vitest'; import { execSync } from 'node:child_process'; import path from 'node:path'; import { EOL } from 'node:os'; +import process from 'node:process'; test('prerenderable routes must be prerendered', () => { assert.throws( diff --git a/packages/kit/test/build-errors/server-only.spec.js b/packages/kit/test/build-errors/server-only.spec.js index 0c92a185a984..ec63de1313bd 100644 --- a/packages/kit/test/build-errors/server-only.spec.js +++ b/packages/kit/test/build-errors/server-only.spec.js @@ -1,6 +1,7 @@ import { assert, test } from 'vitest'; import { execSync } from 'node:child_process'; import path from 'node:path'; +import process from 'node:process'; test('$lib/*.server.* is not statically importable from the client', () => { try { diff --git a/packages/kit/test/build-errors/syntax-error.spec.js b/packages/kit/test/build-errors/syntax-error.spec.js index dd481bf2bb2e..c32ec27d2b61 100644 --- a/packages/kit/test/build-errors/syntax-error.spec.js +++ b/packages/kit/test/build-errors/syntax-error.spec.js @@ -1,6 +1,7 @@ import { assert, test } from 'vitest'; import { execSync } from 'node:child_process'; import path from 'node:path'; +import process from 'node:process'; test('$lib/*.server.* is not statically importable from the client', () => { try { diff --git a/packages/kit/test/prerendering/basics/src/service-worker.js b/packages/kit/test/prerendering/basics/src/service-worker.js index ae0028371d35..8ccabc616961 100644 --- a/packages/kit/test/prerendering/basics/src/service-worker.js +++ b/packages/kit/test/prerendering/basics/src/service-worker.js @@ -1,3 +1,4 @@ +import process from 'node:process'; import { prerendered } from '$service-worker'; console.log(prerendered); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a83ca7e0df82..e6001934ab02 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^2.27.8 version: 2.27.8 '@sveltejs/eslint-config': - specifier: ^8.0.1 - version: 8.0.1(@stylistic/eslint-plugin-js@2.1.0(eslint@9.6.0))(eslint-config-prettier@9.1.0(eslint@9.6.0))(eslint-plugin-n@17.9.0(eslint@9.6.0))(eslint-plugin-svelte@2.41.0(eslint@9.6.0)(svelte@4.2.17))(eslint@9.6.0)(typescript-eslint@8.4.0(eslint@9.6.0)(typescript@5.4.5))(typescript@5.4.5) + specifier: ^8.1.0 + version: 8.1.0(@stylistic/eslint-plugin-js@2.1.0(eslint@9.6.0))(eslint-config-prettier@9.1.0(eslint@9.6.0))(eslint-plugin-n@17.9.0(eslint@9.6.0))(eslint-plugin-svelte@2.41.0(eslint@9.6.0)(svelte@4.2.17))(eslint@9.6.0)(typescript-eslint@8.4.0(eslint@9.6.0)(typescript@5.4.5))(typescript@5.4.5) '@svitejs/changesets-changelog-github-compact': specifier: ^1.1.0 version: 1.1.0 @@ -2089,8 +2089,8 @@ packages: peerDependencies: eslint: '>=8.40.0' - '@sveltejs/eslint-config@8.0.1': - resolution: {integrity: sha512-0EYGo15CKgf7nK/toq8oa2wM62cmjxvnOKqualIL5L9r42F1dXHGgMoXRSHQj+TctUlJqXj8DZr64SkIfaQtOQ==} + '@sveltejs/eslint-config@8.1.0': + resolution: {integrity: sha512-cfgp4lPREYBjNd4ZzaP/jA85ufm7vfXiaV7h9vILXNogne80IbZRNhRCQ8XoOqTAOY/pChIzWTBuR8aDNMbAEA==} peerDependencies: '@stylistic/eslint-plugin-js': '>= 1' eslint: '>= 9' @@ -4909,7 +4909,7 @@ snapshots: eslint-visitor-keys: 4.0.0 espree: 10.1.0 - '@sveltejs/eslint-config@8.0.1(@stylistic/eslint-plugin-js@2.1.0(eslint@9.6.0))(eslint-config-prettier@9.1.0(eslint@9.6.0))(eslint-plugin-n@17.9.0(eslint@9.6.0))(eslint-plugin-svelte@2.41.0(eslint@9.6.0)(svelte@4.2.17))(eslint@9.6.0)(typescript-eslint@8.4.0(eslint@9.6.0)(typescript@5.4.5))(typescript@5.4.5)': + '@sveltejs/eslint-config@8.1.0(@stylistic/eslint-plugin-js@2.1.0(eslint@9.6.0))(eslint-config-prettier@9.1.0(eslint@9.6.0))(eslint-plugin-n@17.9.0(eslint@9.6.0))(eslint-plugin-svelte@2.41.0(eslint@9.6.0)(svelte@4.2.17))(eslint@9.6.0)(typescript-eslint@8.4.0(eslint@9.6.0)(typescript@5.4.5))(typescript@5.4.5)': dependencies: '@stylistic/eslint-plugin-js': 2.1.0(eslint@9.6.0) eslint: 9.6.0