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

ESLint Configration #93

Merged
merged 19 commits into from
Aug 14, 2023
Merged

ESLint Configration #93

merged 19 commits into from
Aug 14, 2023

Conversation

ansulagrawal
Copy link
Member

No description provided.

@ansulagrawal ansulagrawal linked an issue Aug 3, 2023 that may be closed by this pull request
@ansulagrawal
Copy link
Member Author

Still Chages Required in below files:

  1. react-big-schedule/src/components/SchedulerData.js
  2. react-big-schedule/src/components/DnDSource.js
  3. react-big-schedule/src/components/DnDContext.js

1. Disable `react/forbid-prop-types` in eslint
2.  Fix Eslint error in `Add More.jsx`, `AddMorePopover.jsx`.
3. Formated and fix eslint error in `HeaderView.jsx`.
4. Fix File: `SchedulerHeader.jsx`.
5. Converted arrow base to functional base `WrapperFun.jsx`
scripts/build.js Dismissed Show dismissed Hide dismissed
let { slotId, slotName } = resourceEvents;
let action = 'New';
const isEvent = type === DnDTypes.EVENT;
if (isEvent) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical blocks of code found in 2 locations. Consider refactoring.

newEnd = localeDayjs(newStart)
.add(localeDayjs(event.end).diff(localeDayjs(event.start)), 'ms')
const isEvent = type === DnDTypes.EVENT;
if (isEvent) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical blocks of code found in 2 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Aug 14, 2023

Code Climate has analyzed commit e90a956 and detected 27 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 26
Bug Risk 1

View more on Code Climate.

@ansulagrawal ansulagrawal merged commit 564ff61 into master Aug 14, 2023
4 of 5 checks passed
@ansulagrawal ansulagrawal deleted the config/eslint branch August 14, 2023 19:15
@DamyanBG
Copy link
Contributor

Hey, how is going?

@ansulagrawal
Copy link
Member Author

Configuration is done need to fix eslint errors

@ansulagrawal
Copy link
Member Author

I am busy now so may take more time, if you have time please continue

@DamyanBG
Copy link
Contributor

Unfortunately these days I am really busy, but I will try to find some time.

@ansulagrawal
Copy link
Member Author

ansulagrawal commented Aug 18, 2023

No problem, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix ESLint Errors in Several Files
3 participants