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

Update dependency eslint to v9 #999

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion frontends/api/src/generated/v0/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const createRequestFunction = function (
const axiosRequestArgs = {
...axiosArgs.options,
url:
(axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) +
(axios.defaults.baseURL ? "" : (configuration?.basePath ?? basePath)) +
axiosArgs.url,
}
return axios.request<T, R>(axiosRequestArgs)
Expand Down
2 changes: 1 addition & 1 deletion frontends/api/src/generated/v1/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const createRequestFunction = function (
const axiosRequestArgs = {
...axiosArgs.options,
url:
(axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) +
(axios.defaults.baseURL ? "" : (configuration?.basePath ?? basePath)) +
axiosArgs.url,
}
return axios.request<T, R>(axiosRequestArgs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const ResourceCategoryTabList: React.FC<ResourceCategoryTabsProps> = ({
} else {
count =
counts && t.resource_category
? counts[t.resource_category] ?? 0
? (counts[t.resource_category] ?? 0)
: undefined
}
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CheckboxChoiceField: React.FC<CheckboxChoiceFieldProps> = ({
className,
}) => {
const isChecked = (choice: CheckboxProps) =>
choice.value ? values?.includes(choice.value) ?? false : false
choice.value ? (values?.includes(choice.value) ?? false) : false
return (
<FormControl
component="fieldset"
Expand Down
2 changes: 1 addition & 1 deletion frontends/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/react-infinite-scroller": "^1.2.3",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"cross-fetch": "^4.0.0",
"eslint": "8",
"eslint": "9",
"eslint-config-mitodl": "^2.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
Expand Down
176 changes: 99 additions & 77 deletions yarn.lock

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

Loading