Skip to content

Commit 181cc7d

Browse files
committed
chore: fix eslint versioning and config
1 parent 053c48b commit 181cc7d

File tree

9 files changed

+1479
-9339
lines changed

9 files changed

+1479
-9339
lines changed

eslint.config.mjs renamed to .eslintrc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
import globals from "globals";
2-
import pluginJs from "@eslint/js";
3-
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
4-
5-
6-
export default [
71
{
82
"extends": ["react-app", "plugin:prettier/recommended", "eslint:recommended"],
93
"plugins": ["react"],
@@ -101,5 +95,4 @@ export default [
10195
"react/sort-comp": "warn",
10296
"react/void-dom-elements-no-children": "error"
10397
}
104-
}
105-
];
98+
}

package-lock.json

Lines changed: 1464 additions & 9313 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@
7878
"eslint-plugin-flowtype": "^5.2.0",
7979
"eslint-plugin-import": "^2.25.2",
8080
"eslint-plugin-jsx-a11y": "^6.8.0",
81-
"eslint-plugin-prettier": "^4.0.0",
81+
"eslint-plugin-prettier": "^5.2.1",
8282
"eslint-plugin-react": "^7.34.4",
8383
"eslint-plugin-react-hooks": "^4.0.0",
8484
"formik": "^2.2.6",
85-
"globals": "^15.8.0",
8685
"html5-qrcode": "^2.3.8",
8786
"json": "^10.0.0",
8887
"less": "^3.13.1",
@@ -91,7 +90,7 @@
9190
"lodash": "^4.17.15",
9291
"luxon": "^1.23.0",
9392
"path": "^0.12.7",
94-
"prettier": "^2.5.1",
93+
"prettier": "^3.0.0",
9594
"prop-types": "^15.7.2",
9695
"qs": "^6.9.3",
9796
"react": "^16.13.1",

src/lib/authentication/pages/Login/LoginWithLocalAccount/LoginWithLocalAccount.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ class LoginWithLocalAccount extends Component {
8181
onSubmit = async (values, actions) => {
8282
try {
8383
actions.setSubmitting(true);
84-
const response = await authenticationService.loginWithLocalAccount(
85-
values
86-
);
84+
const response =
85+
await authenticationService.loginWithLocalAccount(values);
8786
this.onSuccess(response);
8887
} catch (error) {
8988
const errors = getIn(error, 'response.data.errors', []);

src/lib/modules/Literature/LiteratureKeywords.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const LiteratureKeywords = ({ keywords, separator, noneMessage }) => {
88
return keywordValue && keywordSource
99
? `${keywordValue} (${keywordSource})`
1010
: keywordValue
11-
? keywordValue
12-
: '';
11+
? keywordValue
12+
: '';
1313
}
1414

1515
return (

src/lib/modules/Loan/backoffice/OverdueLoanSendNotificationModal/state/actions.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ export const sendOverdueLoansNotificationReminder = (loanPid) => {
1515
});
1616

1717
try {
18-
const response = await loanApi.sendOverdueLoansNotificationReminder(
19-
loanPid
20-
);
18+
const response =
19+
await loanApi.sendOverdueLoansNotificationReminder(loanPid);
2120
dispatch({
2221
type: SUCCESS,
2322
payload: response.data,

src/lib/pages/backoffice/DocumentRequest/DocumentRequestDetails/DocumentRequestSteps/DocumentRequestStepPanels/DocumentRequestStepPanels.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export class DocumentRequestStepPanels extends Component {
3333
docReq.state === 'ACCEPTED'
3434
? 'accepted'
3535
: docReq.state === 'DECLINED'
36-
? 'declined'
37-
: '';
36+
? 'declined'
37+
: '';
3838
cmp = (
3939
<Header icon>
4040
<Icon name="check" />

src/lib/pages/backoffice/ILL/BorrowingRequest/BorrowingRequestDetails/BorrowingRequestPatronLoan/BorrowingRequestLoanExtension/actions.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ export const borrowingRequestLoanExtensionDecline = (borrowingRequestPid) => {
5353
});
5454

5555
try {
56-
const response = await borrowingRequestApi.declineExtension(
57-
borrowingRequestPid
58-
);
56+
const response =
57+
await borrowingRequestApi.declineExtension(borrowingRequestPid);
5958
await searchReady();
6059
dispatch({
6160
type: SUCCESS,

src/lib/pages/frontsite/Documents/DocumentDetails/DocumentCirculation/DocumentCirculation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ class DocumentCirculation extends Component {
108108
{hasNeither
109109
? this.renderRequestable()
110110
: userHasPendingRequest
111-
? this.renderPendingRequest()
112-
: this.renderOnLoan()}
111+
? this.renderPendingRequest()
112+
: this.renderOnLoan()}
113113
<Overridable
114114
id="DocumentCirculation.Extras"
115115
documentDetails={documentDetails}

0 commit comments

Comments
 (0)