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

Fix prettier, eslint, styelint and make pre commit hooks run #174

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

nivekithan
Copy link

@nivekithan nivekithan commented Jul 6, 2023

What is the change?

There were a lot of erros and warnings from eslint and stylelint, some files are not formatted correctly using prettier. I have fixed all those.

Refer #179

Is it bug?

No it is not a bug

*Dev Tested?

I have run yarn test on my local machine. Every test has passed

  • Yes
  • No

*Tested on:

  • WSL-Ubuntu distro

Platforms

  • Web

Browsers

I have only run yarn test

  • Chrome
  • Safari
  • Firefox

Before / After Change Screenshots

None

For visual or interaction changes. Can be video / screenshot.

@vercel
Copy link

vercel bot commented Jul 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rdscal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2023 3:17pm
website-calendar ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2023 3:17pm
website-calendar-83va ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2023 3:17pm

@isVivek99
Copy link
Contributor

if yarn.lock file is empty will it not make the yarn.lock file in everyones machine empty? We don't need that file in the PR

@nivekithan
Copy link
Author

@isVivek99 , There is no difference between the yarn.lock files but due to the previous commit yarn.lock is included in this pr with no changes. That's why github is showing yarn.lock file with no diff.

You can verify that by checking how many lines have been changed. If I have emptied out the yarn.lock file, then github would have shown -14,000 lines. You can also check the yarn.lock from my branch at https://github.com/nivekithan/website-calendar/blob/niveth/fix-prettier-eslint/yarn.lock , to verify that yarn.lock file is not emptied out.

@isVivek99 isVivek99 assigned isVivek99 and nivekithan and unassigned isVivek99 Jul 7, 2023
.eslintrc.js Show resolved Hide resolved
@isVivek99 isVivek99 added the setup label Jul 8, 2023
@@ -35,6 +35,7 @@ export const Button: React.FC<ButtonProps> = ({
: 'bg-white border-gray-400 text-gray-900 hover:bg-gray-300'
}
${
// eslint-disable-next-line no-nested-ternary
Copy link
Contributor

Choose a reason for hiding this comment

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

why disable eslint here?

@harshith-venkatesh
Copy link
Contributor

Please address conflicting change and comment on eslint part

@@ -35,6 +35,7 @@ export const Button: React.FC<ButtonProps> = ({
: 'bg-white border-gray-400 text-gray-900 hover:bg-gray-300'
}
${
// eslint-disable-next-line no-nested-ternary
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you address this comment please

export const getEvents = (
HOST: string,

// eslint-disable-next-line default-param-last
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

@@ -1 +1,2 @@
// eslint-disable-next-line no-useless-escape
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

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

Successfully merging this pull request may close these issues.

4 participants