Sanjeewa merge #125
ESLint Report Analysis
48 ESLint error(s) and 2 ESLint warning(s) found in pull request changed files.
Details
Pull Request Changed Files ESLint Results:
48 ESLint error(s) and 2 ESLint warning(s) found
48 Error(s):
frontend/src/App.jsx
line 15
- Start Line:
15
- End Line:
15
- Message: 'Farmer_sidebar' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/App.jsx
line 71
- Start Line:
71
- End Line:
71
- Message: 'DLSendEmail' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/Home/DHeader.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/Home/Footer.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'FaFacebookSquare' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/Home/Footer.jsx
line 2
- Start Line:
2
- End Line:
2
- Message: 'FaTiktok' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/Home/Footer.jsx
line 3
- Start Line:
3
- End Line:
3
- Message: 'FaMedium' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/Home/Header.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/delivery/DLmanageSidebar.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/delivery/DLmanageSidebar.jsx
line 2
- Start Line:
2
- End Line:
2
- Message: 'Link' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/delivery/DLmanageSidebar.jsx
line 8
- Start Line:
8
- End Line:
8
- Message: 'FaBell' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/delivery/DeliverySidebar.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Components/delivery/DeliverySidebar.jsx
line 13
- Start Line:
13
- End Line:
13
- Message: 'driver' is missing in props validation
- From: [
react/prop-types
]
- From: [
frontend/src/Components/delivery/DeliverySidebar.jsx
line 50
- Start Line:
50
- End Line:
50
- Message: 'driver.personalImageUrl' is missing in props validation
- From: [
react/prop-types
]
- From: [
frontend/src/Components/delivery/DeliverySidebar.jsx
line 61
- Start Line:
61
- End Line:
61
- Message: 'driver.firstName' is missing in props validation
- From: [
react/prop-types
]
- From: [
frontend/src/Hooks/Delivery/Dlauth.jsx
line 12
- Start Line:
12
- End Line:
12
- Message: 'children' is missing in props validation
- From: [
react/prop-types
]
- From: [
frontend/src/Layouts/DLayout.jsx
line 2
- Start Line:
2
- End Line:
2
- Message: 'CategoryBar' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLALLdrivers.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLApproveDriver.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLDriverAccept.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLDriverDashboard.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLDriverDashboard.jsx
line 121
- Start Line:
121
- End Line:
121
- Message: 'renderDeliveryStatus' is assigned a value but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLDriverDashboard.jsx
line 134
- Start Line:
134
- End Line:
134
- Message: 'renderProgressBar' is assigned a value but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLDriverProfile.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLDriverProfile.jsx
line 5
- Start Line:
5
- End Line:
5
- Message: 'Swal' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLDriverRegistrationForm.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLDriverRegistrationForm.jsx
line 39
- Start Line:
39
- End Line:
39
- Message: 'setSuccessMessage' is assigned a value but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLImageUpload.jsx
line 2
- Start Line:
2
- End Line:
2
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLLogin.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLLogin.jsx
line 90
- Start Line:
90
- End Line:
90
- Message:
'
can be escaped with'
,‘
,'
,’
.- From: [
react/no-unescaped-entities
]
- From: [
frontend/src/Pages/delivery/DLOtable.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLSendEmail.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLViewDriver.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLeditdriver.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLeditdriver.jsx
line 11
- Start Line:
11
- End Line:
11
- Message: 'isEditing' is assigned a value but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLeditdriver.jsx
line 11
- Start Line:
11
- End Line:
11
- Message: 'setIsEditing' is assigned a value but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLeditdriver.jsx
line 123
- Start Line:
123
- End Line:
123
- Message: 'calculateAge' is assigned a value but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLmangeDash.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLmangeDash.jsx
line 89
- Start Line:
89
- End Line:
89
- Message: 'handleViewDriver' is assigned a value but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLoooo.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLviewDeliveries.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLviewDelivery.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/DLviewDelivery.jsx
line 13
- Start Line:
13
- End Line:
13
- Message: 'navigate' is assigned a value but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/Dleditprofile.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/driver/OngoingDelivery.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/driver/ViewDeliveries.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/driver/ViewDeliveries.jsx
line 5
- Start Line:
5
- End Line:
5
- Message: 'Swal' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/driver/ViewDelivery.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
frontend/src/Pages/delivery/or/orderdelete.jsx
line 1
- Start Line:
1
- End Line:
1
- Message: 'React' is defined but never used.
- From: [
no-unused-vars
]
- From: [
2 Warning(s):
frontend/src/Components/Home/Header.jsx
line 14
- Start Line:
14
- End Line:
14
- Message: The 'cartItems' logical expression could make the dependencies of useEffect Hook (at line 31) change on every render. Move it inside the useEffect callback. Alternatively, wrap the initialization of 'cartItems' in its own useMemo() Hook.
- From: [
react-hooks/exhaustive-deps
]
- From: [
frontend/src/Hooks/Delivery/Dlauth.jsx
line 7
- Start Line:
7
- End Line:
7
- Message: Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components.
- From: [
react-refresh/only-export-components
]
- From: [
Annotations
Check failure on line 15 in frontend/src/App.jsx
github-actions / ESLint Report Analysis
frontend/src/App.jsx#L15
[no-unused-vars] 'Farmer_sidebar' is defined but never used.
Check failure on line 71 in frontend/src/App.jsx
github-actions / ESLint Report Analysis
frontend/src/App.jsx#L71
[no-unused-vars] 'DLSendEmail' is defined but never used.
Check failure on line 1 in frontend/src/Components/Home/DHeader.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/Home/DHeader.jsx#L1
[no-unused-vars] 'React' is defined but never used.
Check failure on line 1 in frontend/src/Components/Home/Footer.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/Home/Footer.jsx#L1
[no-unused-vars] 'FaFacebookSquare' is defined but never used.
Check failure on line 2 in frontend/src/Components/Home/Footer.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/Home/Footer.jsx#L2
[no-unused-vars] 'FaTiktok' is defined but never used.
Check failure on line 3 in frontend/src/Components/Home/Footer.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/Home/Footer.jsx#L3
[no-unused-vars] 'FaMedium' is defined but never used.
Check failure on line 1 in frontend/src/Components/Home/Header.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/Home/Header.jsx#L1
[no-unused-vars] 'React' is defined but never used.
Check warning on line 14 in frontend/src/Components/Home/Header.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/Home/Header.jsx#L14
[react-hooks/exhaustive-deps] The 'cartItems' logical expression could make the dependencies of useEffect Hook (at line 31) change on every render. Move it inside the useEffect callback. Alternatively, wrap the initialization of 'cartItems' in its own useMemo() Hook.
Check failure on line 1 in frontend/src/Components/delivery/DLmanageSidebar.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/delivery/DLmanageSidebar.jsx#L1
[no-unused-vars] 'React' is defined but never used.
Check failure on line 2 in frontend/src/Components/delivery/DLmanageSidebar.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/delivery/DLmanageSidebar.jsx#L2
[no-unused-vars] 'Link' is defined but never used.
Check failure on line 8 in frontend/src/Components/delivery/DLmanageSidebar.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/delivery/DLmanageSidebar.jsx#L8
[no-unused-vars] 'FaBell' is defined but never used.
Check failure on line 1 in frontend/src/Components/delivery/DeliverySidebar.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/delivery/DeliverySidebar.jsx#L1
[no-unused-vars] 'React' is defined but never used.
Check failure on line 13 in frontend/src/Components/delivery/DeliverySidebar.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/delivery/DeliverySidebar.jsx#L13
[react/prop-types] 'driver' is missing in props validation
Check failure on line 50 in frontend/src/Components/delivery/DeliverySidebar.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/delivery/DeliverySidebar.jsx#L50
[react/prop-types] 'driver.personalImageUrl' is missing in props validation
Check failure on line 61 in frontend/src/Components/delivery/DeliverySidebar.jsx
github-actions / ESLint Report Analysis
frontend/src/Components/delivery/DeliverySidebar.jsx#L61
[react/prop-types] 'driver.firstName' is missing in props validation
Check warning on line 7 in frontend/src/Hooks/Delivery/Dlauth.jsx
github-actions / ESLint Report Analysis
frontend/src/Hooks/Delivery/Dlauth.jsx#L7
[react-refresh/only-export-components] Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components.
Check failure on line 12 in frontend/src/Hooks/Delivery/Dlauth.jsx
github-actions / ESLint Report Analysis
frontend/src/Hooks/Delivery/Dlauth.jsx#L12
[react/prop-types] 'children' is missing in props validation
Check failure on line 2 in frontend/src/Layouts/DLayout.jsx
github-actions / ESLint Report Analysis
frontend/src/Layouts/DLayout.jsx#L2
[no-unused-vars] 'CategoryBar' is defined but never used.
Check failure on line 1 in frontend/src/Pages/delivery/DLALLdrivers.jsx
github-actions / ESLint Report Analysis
frontend/src/Pages/delivery/DLALLdrivers.jsx#L1
[no-unused-vars] 'React' is defined but never used.
Check failure on line 1 in frontend/src/Pages/delivery/DLApproveDriver.jsx
github-actions / ESLint Report Analysis
frontend/src/Pages/delivery/DLApproveDriver.jsx#L1
[no-unused-vars] 'React' is defined but never used.
Check failure on line 1 in frontend/src/Pages/delivery/DLDriverAccept.jsx
github-actions / ESLint Report Analysis
frontend/src/Pages/delivery/DLDriverAccept.jsx#L1
[no-unused-vars] 'React' is defined but never used.
Check failure on line 1 in frontend/src/Pages/delivery/DLDriverDashboard.jsx
github-actions / ESLint Report Analysis
frontend/src/Pages/delivery/DLDriverDashboard.jsx#L1
[no-unused-vars] 'React' is defined but never used.
Check failure on line 121 in frontend/src/Pages/delivery/DLDriverDashboard.jsx
github-actions / ESLint Report Analysis
frontend/src/Pages/delivery/DLDriverDashboard.jsx#L121
[no-unused-vars] 'renderDeliveryStatus' is assigned a value but never used.
Check failure on line 134 in frontend/src/Pages/delivery/DLDriverDashboard.jsx
github-actions / ESLint Report Analysis
frontend/src/Pages/delivery/DLDriverDashboard.jsx#L134
[no-unused-vars] 'renderProgressBar' is assigned a value but never used.
Check failure on line 1 in frontend/src/Pages/delivery/DLDriverProfile.jsx
github-actions / ESLint Report Analysis
frontend/src/Pages/delivery/DLDriverProfile.jsx#L1
[no-unused-vars] 'React' is defined but never used.