Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the typescript-eslint group across 1 directory with 2 updates #8082

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@
"jest-dom"
],
"rules": {
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"import/no-unresolved": 0,
"import/first": 1,
"import/order": [
Expand Down Expand Up @@ -197,8 +203,8 @@
"@types/redux-mock-store": "^1.0.6",
"@types/smartystreets-javascript-sdk": "^1.6.4",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"chromatic": "^10.2.0",
"dayjs": "^1.10.7",
"depcheck": "^1.4.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import UndeleteUserModal from "./UndeleteUserModal";
export const SpecialStatusNotice: React.FC<{
user: SettingsUser | User;
isUpdating: boolean;
onResendUserActivationEmail: (userId: string) => void;
onReactivateUser: (userId: string) => void;
onResendUserActivationEmail: (_userId: string) => void;
onReactivateUser: (_userId: string) => void;
onUndeleteUser: () => void;
}> = ({
user,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/commonComponents/UserDetails/UserHeading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ const UserHeading: React.FC<{
user: SettingsUser | User;
isUserSelf?: boolean;
isUpdating: boolean;
onResendUserActivationEmail: (userId: string) => void;
onReactivateUser: (userId: string) => void;
onResendUserActivationEmail: (_userId: string) => void;
onReactivateUser: (_userId: string) => void;
onUndeleteUser: () => void;
}> = ({
user,
Expand Down
24 changes: 12 additions & 12 deletions frontend/src/app/constants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const COVID_RESULTS: { [key: string]: TestResult } = {
UNKNOWN: TEST_RESULTS.UNKNOWN,
};

const testResultDescriptions = (t: TFunction): Record<TestResult, string> => {
const testResultDescriptions = (_t: TFunction): Record<TestResult, string> => {
return {
NEGATIVE: i18n.t("constants.testResults.NEGATIVE"),
POSITIVE: i18n.t("constants.testResults.POSITIVE"),
Expand All @@ -28,7 +28,7 @@ const testResultDescriptions = (t: TFunction): Record<TestResult, string> => {
};
};

const raceValues = (t: TFunction): { value: Race; label: string }[] => {
const raceValues = (_t: TFunction): { value: Race; label: string }[] => {
return [
{ value: "native", label: i18n.t("constants.race.native") },
{ value: "asian", label: i18n.t("constants.race.asian") },
Expand All @@ -40,7 +40,7 @@ const raceValues = (t: TFunction): { value: Race; label: string }[] => {
];
};

const roleValues = (t: TFunction): { value: Role; label: string }[] => {
const roleValues = (_t: TFunction): { value: Role; label: string }[] => {
return [
{ label: i18n.t("constants.role.STAFF"), value: "STAFF" },
{ label: i18n.t("constants.role.RESIDENT"), value: "RESIDENT" },
Expand All @@ -50,7 +50,7 @@ const roleValues = (t: TFunction): { value: Role; label: string }[] => {
};

const ethnicityValues = (
t: TFunction
_t: TFunction
): { value: Ethnicity; label: string }[] => {
return [
{ label: i18n.t("constants.ethnicity.hispanic"), value: "hispanic" },
Expand All @@ -62,7 +62,7 @@ const ethnicityValues = (
];
};

const genderValues = (t: TFunction): { value: Gender; label: string }[] => {
const genderValues = (_t: TFunction): { value: Gender; label: string }[] => {
return [
{ label: i18n.t("constants.gender.female"), value: "female" },
{ label: i18n.t("constants.gender.male"), value: "male" },
Expand All @@ -72,7 +72,7 @@ const genderValues = (t: TFunction): { value: Gender; label: string }[] => {
};

const genderIdentityValues = (
t: TFunction
_t: TFunction
): { value: GenderIdentity; label: string }[] => {
return [
{ label: i18n.t("constants.genderIdentity.female"), value: "female" },
Expand All @@ -88,15 +88,15 @@ const genderIdentityValues = (
];
};

const yesNoValues = (t: TFunction): { value: YesNo; label: string }[] => {
const yesNoValues = (_t: TFunction): { value: YesNo; label: string }[] => {
return [
{ label: i18n.t("constants.yesNoUnk.YES"), value: "YES" },
{ label: i18n.t("constants.yesNoUnk.NO"), value: "NO" },
];
};

const phoneTypeValues = (
t: TFunction
_t: TFunction
): { value: PhoneType; label: string }[] => {
return [
{ label: i18n.t("constants.phoneType.MOBILE"), value: "MOBILE" },
Expand All @@ -105,7 +105,7 @@ const phoneTypeValues = (
};

const testResultDeliveryPreferenceValuesSms = (
t: TFunction
_t: TFunction
): {
value: TestResultDeliveryPreference;
label: string;
Expand All @@ -125,7 +125,7 @@ const testResultDeliveryPreferenceValuesSms = (
};

const testResultDeliveryPreferenceValuesEmail = (
t: TFunction
_t: TFunction
): {
value: TestResultDeliveryPreference;
label: string;
Expand All @@ -142,7 +142,7 @@ const testResultDeliveryPreferenceValuesEmail = (
];
};
const yesNoUnkownValues = (
t: TFunction
_t: TFunction
): {
value: YesNoUnknown;
label: string;
Expand All @@ -154,7 +154,7 @@ const yesNoUnkownValues = (
};

const yesNoNotSureValues = (
t: TFunction
_t: TFunction
): {
value: YesNoNotSure;
label: string;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/signUp/Organization/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Alert from "../../commonComponents/Alert";

import { OrganizationCreateRequest } from "./OrganizationForm";

export const OrganizationTypeEnum: { [key in OrganizationType]: string } = {
export const OrganizationTypeEnum: { [_key in OrganizationType]: string } = {
airport: "Airport/Transit station",
assisted_living: "Assisted living facility",
camp: "Camp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export const AoeValidationErrorMessages = {
} as const;

export const REQUIRED_AOE_QUESTIONS_BY_DISEASE: {
[key in AOEFormOption]: Array<keyof AoeQuestionResponses>;
[_key in AOEFormOption]: Array<keyof AoeQuestionResponses>;
} = {
// AOE responses for COVID not required, but include in completion validation
// to show "are you sure" modal if not filled
Expand Down Expand Up @@ -287,10 +287,10 @@ export function areAoeQuestionsAnswered(
) {
const aoeQuestionsToCheck = REQUIRED_AOE_QUESTIONS_BY_DISEASE[whichAOE];
const nonSymptomAoeStatusMap: {
[key in keyof AoeQuestionResponses]: boolean;
[_key in keyof AoeQuestionResponses]: boolean;
} = {};
const symptomAoeStatusMap: {
[key in keyof AoeQuestionResponses]: boolean;
[_key in keyof AoeQuestionResponses]: boolean;
} = {};
aoeQuestionsToCheck.forEach((aoeQuestionKey) => {
if (aoeQuestionKey === "noSymptoms") {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/utils/gender.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const UNKNOWN = "Unknown";
export const GenderIdentityDisplay: { [K in GenderIdentity]: string } = {
export const GenderIdentityDisplay: { [_K in GenderIdentity]: string } = {
female: "Female",
male: "Male",
transwoman: "Transwoman",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/utils/symptoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
export const symptomsStringToArray = (
symptomString: string
): AllSymptomsName[] => {
const parsed: { [k in AllSymptomsCode]: "true" | "false" } =
const parsed: { [_k in AllSymptomsCode]: "true" | "false" } =
JSON.parse(symptomString);
return Object.entries(parsed).reduce((acc, [code, symptomatic]) => {
if (symptomatic === "true") {
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/app/utils/testResultCSV.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ const resultCSVHeadersBoolean = [

export type ResultCsvRow =
| {
[K in (typeof resultCSVHeadersString)[number]]: string | null | undefined;
[_K in (typeof resultCSVHeadersString)[number]]:
| string
| null
| undefined;
}
| {
[K in (typeof resultCSVHeadersBoolean)[number]]:
[_K in (typeof resultCSVHeadersBoolean)[number]]:
| boolean
| null
| undefined;
Expand Down
102 changes: 51 additions & 51 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5638,16 +5638,16 @@
semver "^7.3.7"
tsutils "^3.21.0"

"@typescript-eslint/eslint-plugin@^7.11.0":
version "7.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.11.0.tgz#f90f0914657ead08e1c75f66939c926edeab42dd"
integrity sha512-P+qEahbgeHW4JQ/87FuItjBj8O3MYv5gELDzr8QaQ7fsll1gSMTYb6j87MYyxwf3DtD7uGFB9ShwgmCJB5KmaQ==
"@typescript-eslint/eslint-plugin@^8.3.0":
version "8.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.3.0.tgz#726627fad16d41d20539637efee8c2329fe6be32"
integrity sha512-FLAIn63G5KH+adZosDYiutqkOkYEx0nvcwNNfJAf+c7Ae/H35qWwTYvPZUKFj5AS+WfHG/WJJfWnDnyNUlp8UA==
dependencies:
"@eslint-community/regexpp" "^4.10.0"
"@typescript-eslint/scope-manager" "7.11.0"
"@typescript-eslint/type-utils" "7.11.0"
"@typescript-eslint/utils" "7.11.0"
"@typescript-eslint/visitor-keys" "7.11.0"
"@typescript-eslint/scope-manager" "8.3.0"
"@typescript-eslint/type-utils" "8.3.0"
"@typescript-eslint/utils" "8.3.0"
"@typescript-eslint/visitor-keys" "8.3.0"
graphemer "^1.4.0"
ignore "^5.3.1"
natural-compare "^1.4.0"
Expand All @@ -5670,15 +5670,15 @@
"@typescript-eslint/typescript-estree" "5.49.0"
debug "^4.3.4"

"@typescript-eslint/parser@^7.11.0":
version "7.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-7.11.0.tgz#525ad8bee54a8f015f134edd241d91b84ab64839"
integrity sha512-yimw99teuaXVWsBcPO1Ais02kwJ1jmNA1KxE7ng0aT7ndr1pT1wqj0OJnsYVGKKlc4QJai86l/025L6z8CljOg==
"@typescript-eslint/parser@^8.3.0":
version "8.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.3.0.tgz#3c72c32bc909cb91ce3569e7d11d729ad84deafa"
integrity sha512-h53RhVyLu6AtpUzVCYLPhZGL5jzTD9fZL+SYf/+hYOx2bDkyQXztXSc4tbvKYHzfMXExMLiL9CWqJmVz6+78IQ==
dependencies:
"@typescript-eslint/scope-manager" "7.11.0"
"@typescript-eslint/types" "7.11.0"
"@typescript-eslint/typescript-estree" "7.11.0"
"@typescript-eslint/visitor-keys" "7.11.0"
"@typescript-eslint/scope-manager" "8.3.0"
"@typescript-eslint/types" "8.3.0"
"@typescript-eslint/typescript-estree" "8.3.0"
"@typescript-eslint/visitor-keys" "8.3.0"
debug "^4.3.4"

"@typescript-eslint/[email protected]":
Expand All @@ -5705,13 +5705,13 @@
"@typescript-eslint/types" "5.62.0"
"@typescript-eslint/visitor-keys" "5.62.0"

"@typescript-eslint/scope-manager@7.11.0":
version "7.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.11.0.tgz#cf5619b01de62a226a59add15a02bde457335d1d"
integrity sha512-27tGdVEiutD4POirLZX4YzT180vevUURJl4wJGmm6TrQoiYwuxTIY98PBp6L2oN+JQxzE0URvYlzJaBHIekXAw==
"@typescript-eslint/scope-manager@8.3.0":
version "8.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.3.0.tgz#834301d2e70baf924c26818b911bdc40086f7468"
integrity sha512-mz2X8WcN2nVu5Hodku+IR8GgCOl4C0G/Z1ruaWN4dgec64kDBabuXyPAr+/RgJtumv8EEkqIzf3X2U5DUKB2eg==
dependencies:
"@typescript-eslint/types" "7.11.0"
"@typescript-eslint/visitor-keys" "7.11.0"
"@typescript-eslint/types" "8.3.0"
"@typescript-eslint/visitor-keys" "8.3.0"

"@typescript-eslint/[email protected]":
version "5.47.0"
Expand All @@ -5723,13 +5723,13 @@
debug "^4.3.4"
tsutils "^3.21.0"

"@typescript-eslint/type-utils@7.11.0":
version "7.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.11.0.tgz#ac216697d649084fedf4a910347b9642bd0ff099"
integrity sha512-WmppUEgYy+y1NTseNMJ6mCFxt03/7jTOy08bcg7bxJJdsM4nuhnchyBbE8vryveaJUf62noH7LodPSo5Z0WUCg==
"@typescript-eslint/type-utils@8.3.0":
version "8.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.3.0.tgz#c1ae6af8c21a27254321016b052af67ddb44a9ac"
integrity sha512-wrV6qh//nLbfXZQoj32EXKmwHf4b7L+xXLrP3FZ0GOUU72gSvLjeWUl5J5Ue5IwRxIV1TfF73j/eaBapxx99Lg==
dependencies:
"@typescript-eslint/typescript-estree" "7.11.0"
"@typescript-eslint/utils" "7.11.0"
"@typescript-eslint/typescript-estree" "8.3.0"
"@typescript-eslint/utils" "8.3.0"
debug "^4.3.4"
ts-api-utils "^1.3.0"

Expand All @@ -5748,10 +5748,10 @@
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f"
integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==

"@typescript-eslint/types@7.11.0":
version "7.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.11.0.tgz#5e9702a5e8b424b7fc690e338d359939257d6722"
integrity sha512-MPEsDRZTyCiXkD4vd3zywDCifi7tatc4K37KqTprCvaXptP7Xlpdw0NR2hRJTetG5TxbWDB79Ys4kLmHliEo/w==
"@typescript-eslint/types@8.3.0":
version "8.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.3.0.tgz#378e62447c2d7028236e55a81d3391026600563b"
integrity sha512-y6sSEeK+facMaAyixM36dQ5NVXTnKWunfD1Ft4xraYqxP0lC0POJmIaL/mw72CUMqjY9qfyVfXafMeaUj0noWw==

"@typescript-eslint/[email protected]":
version "5.47.0"
Expand Down Expand Up @@ -5792,15 +5792,15 @@
semver "^7.3.7"
tsutils "^3.21.0"

"@typescript-eslint/typescript-estree@7.11.0":
version "7.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.11.0.tgz#7cbc569bc7336c3a494ceaf8204fdee5d5dbb7fa"
integrity sha512-cxkhZ2C/iyi3/6U9EPc5y+a6csqHItndvN/CzbNXTNrsC3/ASoYQZEt9uMaEp+xFNjasqQyszp5TumAVKKvJeQ==
"@typescript-eslint/typescript-estree@8.3.0":
version "8.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.3.0.tgz#3e3d38af101ba61a8568f034733b72bfc9f176b9"
integrity sha512-Mq7FTHl0R36EmWlCJWojIC1qn/ZWo2YiWYc1XVtasJ7FIgjo0MVv9rZWXEE7IK2CGrtwe1dVOxWwqXUdNgfRCA==
dependencies:
"@typescript-eslint/types" "7.11.0"
"@typescript-eslint/visitor-keys" "7.11.0"
"@typescript-eslint/types" "8.3.0"
"@typescript-eslint/visitor-keys" "8.3.0"
debug "^4.3.4"
globby "^11.1.0"
fast-glob "^3.3.2"
is-glob "^4.0.3"
minimatch "^9.0.4"
semver "^7.6.0"
Expand All @@ -5820,15 +5820,15 @@
eslint-utils "^3.0.0"
semver "^7.3.7"

"@typescript-eslint/utils@7.11.0":
version "7.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.11.0.tgz#524f047f2209959424c3ef689b0d83b3bc09919c"
integrity sha512-xlAWwPleNRHwF37AhrZurOxA1wyXowW4PqVXZVUNCLjB48CqdPJoJWkrpH2nij9Q3Lb7rtWindtoXwxjxlKKCA==
"@typescript-eslint/utils@8.3.0":
version "8.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.3.0.tgz#b10972319deac5959c7a7075d0cf2b5e1de7ec08"
integrity sha512-F77WwqxIi/qGkIGOGXNBLV7nykwfjLsdauRB/DOFPdv6LTF3BHHkBpq81/b5iMPSF055oO2BiivDJV4ChvNtXA==
dependencies:
"@eslint-community/eslint-utils" "^4.4.0"
"@typescript-eslint/scope-manager" "7.11.0"
"@typescript-eslint/types" "7.11.0"
"@typescript-eslint/typescript-estree" "7.11.0"
"@typescript-eslint/scope-manager" "8.3.0"
"@typescript-eslint/types" "8.3.0"
"@typescript-eslint/typescript-estree" "8.3.0"

"@typescript-eslint/utils@^5.58.0", "@typescript-eslint/utils@^5.62.0":
version "5.62.0"
Expand Down Expand Up @@ -5868,12 +5868,12 @@
"@typescript-eslint/types" "5.62.0"
eslint-visitor-keys "^3.3.0"

"@typescript-eslint/visitor-keys@7.11.0":
version "7.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.11.0.tgz#2c50cd292e67645eec05ac0830757071b4a4d597"
integrity sha512-7syYk4MzjxTEk0g/w3iqtgxnFQspDJfn6QKD36xMuuhTzjcxY7F8EmBLnALjVyaOF1/bVocu3bS/2/F7rXrveQ==
"@typescript-eslint/visitor-keys@8.3.0":
version "8.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.3.0.tgz#320d747d107af1eef1eb43fbc4ccdbddda13068b"
integrity sha512-RmZwrTbQ9QveF15m/Cl28n0LXD6ea2CjkhH5rQ55ewz3H24w+AMCJHPVYaZ8/0HoG8Z3cLLFFycRXxeO2tz9FA==
dependencies:
"@typescript-eslint/types" "7.11.0"
"@typescript-eslint/types" "8.3.0"
eslint-visitor-keys "^3.4.3"

"@ungap/structured-clone@^1.0.0":
Expand Down
Loading