refactor(tooling): add turbo eslint plugin (#65734)

This commit is contained in:
Oliver Eyton-Williams
2026-02-06 13:03:05 +01:00
committed by GitHub
parent f054de20fd
commit ae50644091
18 changed files with 97 additions and 24 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import {
getAllEmails,
getFirstEmail,
getSubject
} from './utils/mailhog';
} from './utils/email';
test.describe('Claim a certification - almost certified user', () => {
test.beforeEach(async () => {
+2 -1
View File
@@ -6,6 +6,7 @@ export default defineConfig(globalIgnores(['./playwright']), {
rules: {
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off'
'@typescript-eslint/no-unsafe-assignment': 'off',
'turbo/no-undeclared-env-vars': 'off' // If/when we make e2e tests into a turbo task, we can enable this rule again.
}
});
+1 -1
View File
@@ -4,7 +4,7 @@ import {
getAllEmails,
getFirstEmail,
getSubject
} from './utils/mailhog';
} from './utils/email';
test.beforeEach(async () => {
await deleteAllEmails();
+1 -1
View File
@@ -6,7 +6,7 @@ import {
getAllEmails,
getFirstEmail,
getSubject
} from './utils/mailhog';
} from './utils/email';
test.beforeEach(async () => {
await deleteAllEmails();
+1 -6
View File
@@ -11,12 +11,7 @@ type AllEmails = {
count: number;
};
// TODO: Remove MAILHOG_HOST in a few months
// We renamed MailHog to MailPit, but kept the same port and API
// This is to keep backward compatibility with existing setups
// that might still use MAILHOG_HOST environment variable
const host =
process.env.MAILPIT_HOST || process.env.MAILHOG_HOST || 'localhost';
const host = process.env.MAILPIT_HOST || 'localhost';
export const getAllEmails = async (): Promise<AllEmails> => {
const res = await fetch(`http://${host}:8025/api/v1/messages`);