This commit is contained in:
Amri Toufali 2023-04-24 21:44:55 -07:00
Родитель 98c7ea21d6
Коммит 397b4a94b8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 75269D7487754F5D
3 изменённых файлов: 17 добавлений и 12 удалений

Просмотреть файл

@ -22,8 +22,9 @@
"test": "NODE_OPTIONS=--loader=testdouble c8 ava",
"e2e": "playwright test src/e2e/",
"lint": "npm run lint:css && npm run lint:js",
"lint:js": "eslint .",
"lint:css": "stylelint src/client/css/",
"lint:js": "eslint .",
"lint:ts": "tsc --noEmit",
"fix": "npm run fix:css && npm run fix:js",
"fix:js": "eslint . --fix",
"fix:css": "stylelint src/client/css/ --fix"

Просмотреть файл

@ -15,12 +15,12 @@ interface HTMLElement {
// eslint-disable-next-line no-unused-vars
type ViewPartial<ViewPartialParams = object> = (data: ViewPartialParams & { partial: { name: string } }) => string;
type GuestViewPartialData<ViewPartialParams = object> = {
partial: ViewPartial<ViewPartialParams>;
nonce: string;
} & ViewPartialParams;
partial: ViewPartial<ViewPartialParams>;
nonce: string;
} & ViewPartialParams;
type MainViewPartialData<ViewPartialParams = object> = {
fxaProfile: NonNullable<import('express').Request['user']>['fxa_profile_json'];
} & GuestViewPartialData<ViewPartialParams>;
fxaProfile: NonNullable<import('express').Request['user']>['fxa_profile_json'];
} & GuestViewPartialData<ViewPartialParams>;
/**
* See https://github.com/mozilla/fxa/blob/564949dfc69f0f675ebb4e5f267282c2546a5767/packages/fxa-profile-server/lib/routes/profile.js#L63-L77
@ -59,3 +59,7 @@ declare module 'mozlog' {
export default defaultFunction
}
interface Window {
gtag: any
}

Просмотреть файл

@ -1,13 +1,13 @@
{
"include": [
"src/custom-types.d.ts",
"src/customTypes.d.ts",
"src/client/js/components/**/*",
"src/views/partials/add-email.js",
"src/views/partials/addEmail.js",
"src/views/partials/admin.js",
"src/views/partials/exposure-scan.js",
"src/views/partials/exposures-setup.js",
"src/views/partials/exposures-list.js",
"src/controllers/exposure-scan.js",
"src/views/partials/exposureScan.js",
"src/views/partials/exposuresSetup.js",
"src/views/partials/exposuresList.js",
"src/controllers/exposureScan.js",
"src/controllers/exposures.js",
"src/external/onerep.js",
"src/utils/emailAddress.js",