Skip to content

Commit

Permalink
chore: fix eslint versioning and config
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed Jul 19, 2024
1 parent 053c48b commit 181cc7d
Show file tree
Hide file tree
Showing 9 changed files with 1,479 additions and 9,339 deletions.
9 changes: 1 addition & 8 deletions eslint.config.mjs → .eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";


export default [
{
"extends": ["react-app", "plugin:prettier/recommended", "eslint:recommended"],
"plugins": ["react"],
Expand Down Expand Up @@ -101,5 +95,4 @@ export default [
"react/sort-comp": "warn",
"react/void-dom-elements-no-children": "error"
}
}
];
}
10,777 changes: 1,464 additions & 9,313 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.34.4",
"eslint-plugin-react-hooks": "^4.0.0",
"formik": "^2.2.6",
"globals": "^15.8.0",
"html5-qrcode": "^2.3.8",
"json": "^10.0.0",
"less": "^3.13.1",
Expand All @@ -91,7 +90,7 @@
"lodash": "^4.17.15",
"luxon": "^1.23.0",
"path": "^0.12.7",
"prettier": "^2.5.1",
"prettier": "^3.0.0",
"prop-types": "^15.7.2",
"qs": "^6.9.3",
"react": "^16.13.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ class LoginWithLocalAccount extends Component {
onSubmit = async (values, actions) => {
try {
actions.setSubmitting(true);
const response = await authenticationService.loginWithLocalAccount(
values
);
const response =
await authenticationService.loginWithLocalAccount(values);
this.onSuccess(response);
} catch (error) {
const errors = getIn(error, 'response.data.errors', []);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/modules/Literature/LiteratureKeywords.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const LiteratureKeywords = ({ keywords, separator, noneMessage }) => {
return keywordValue && keywordSource
? `${keywordValue} (${keywordSource})`
: keywordValue
? keywordValue
: '';
? keywordValue
: '';
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ export const sendOverdueLoansNotificationReminder = (loanPid) => {
});

try {
const response = await loanApi.sendOverdueLoansNotificationReminder(
loanPid
);
const response =
await loanApi.sendOverdueLoansNotificationReminder(loanPid);
dispatch({
type: SUCCESS,
payload: response.data,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export class DocumentRequestStepPanels extends Component {
docReq.state === 'ACCEPTED'
? 'accepted'
: docReq.state === 'DECLINED'
? 'declined'
: '';
? 'declined'
: '';
cmp = (
<Header icon>
<Icon name="check" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ export const borrowingRequestLoanExtensionDecline = (borrowingRequestPid) => {
});

try {
const response = await borrowingRequestApi.declineExtension(
borrowingRequestPid
);
const response =
await borrowingRequestApi.declineExtension(borrowingRequestPid);
await searchReady();
dispatch({
type: SUCCESS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class DocumentCirculation extends Component {
{hasNeither
? this.renderRequestable()
: userHasPendingRequest
? this.renderPendingRequest()
: this.renderOnLoan()}
? this.renderPendingRequest()
: this.renderOnLoan()}
<Overridable
id="DocumentCirculation.Extras"
documentDetails={documentDetails}
Expand Down

0 comments on commit 181cc7d

Please sign in to comment.