Skip to content

Commit

Permalink
chore: bump eslint-config (#12682)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Sep 17, 2024
1 parent f8d06f5 commit 6ea7abb
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 8 deletions.
3 changes: 1 addition & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/adapter-node/tests/smoke.spec.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions packages/adapter-static/test/apps/prerendered/test/test.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
1 change: 1 addition & 0 deletions packages/adapter-static/test/apps/spa/test/test.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/amp/test/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import { expect } from '@playwright/test';
import { test } from '../../../utils.js';

Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/basics/playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import { config } from '../../utils.js';

export default {
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/basics/test/client.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import { expect } from '@playwright/test';
import { test } from '../../../utils.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import { expect } from '@playwright/test';
import { test } from '../../../../utils.js';

Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/basics/test/cross-platform/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import { expect } from '@playwright/test';
import { test } from '../../../../utils.js';

Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/basics/test/server.test.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/basics/test/setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from 'node:fs';
import process from 'node:process';

if (process.platform !== 'win32') {
process.chdir('src/routes/routing');
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/basics/test/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import { expect } from '@playwright/test';
import { test } from '../../../utils.js';

Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/dev-only/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/options-2/test/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import { expect } from '@playwright/test';
import { test } from '../../../utils.js';

Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/options/test/test.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/apps/writes/test/test.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/build-errors/env.spec.js
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/build-errors/prerender.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/build-errors/server-only.spec.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/build-errors/syntax-error.spec.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import { prerendered } from '$service-worker';

console.log(prerendered);
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6ea7abb

Please sign in to comment.