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

Linting formatting additions #19

Merged
merged 3 commits into from Oct 1, 2020
Merged

Linting formatting additions #19

merged 3 commits into from Oct 1, 2020

Conversation

ghost
Copy link

@ghost ghost commented Sep 30, 2020

So @ZumDeWald and I were talking the other night about issues with eslint and prettier for the front-end. I went through and added some rules to help with the errors he was seeing.

This PR adds eslint recommendation to the base eslint extensions as well as prettier integration for eslint.
It allows JSX in .js files which was the reason every line had a red underline in Atom
And a more subtle problem was that imports weren't being resolved by eslint so I added a settings property that takes care of import/resolving issues.

The two things that are still showing as problems for eslint are prop-validation which is something airbnb wants (this can be easily turned off but I didn't want to make that decision for the team as a whole) and also because the a11y eslint plugin was already installed I'm assuming we want to be a11y conformant. A problem with Next.js is how they handle anchor tags. There is already a discussion that hasn't made much head way on their repo vercel/next.js#5533. This rule, I image, can be turned off as well so we don't get the red underline indication that our project is horrible in some way, but I felt we should discuss it as a team as well.

Andrew Knox added 3 commits September 29, 2020 21:35
turning on the eslint recommended rules
integrating prettier extension with eslint
allowing jsx in js files
adjusting import/resolver settings as eslint wasn't able to find next.js
imports
@ghost ghost requested review from Soreg, cMikolai and ZumDeWald September 30, 2020 05:19
Copy link
Contributor

@ZumDeWald ZumDeWald left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for cleaning this up.

@rmcguire6 rmcguire6 self-requested a review October 1, 2020 16:32
Copy link
Contributor

@rmcguire6 rmcguire6 left a comment

Choose a reason for hiding this comment

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

It looks good to me.

@rmcguire6 rmcguire6 merged commit 9041377 into chingu-voyages:dev Oct 1, 2020
@ghost ghost deleted the linting-formatting-additions branch March 14, 2021 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants