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

Add JavaScript/JSON/CSS linting #187

Merged
merged 4 commits into from
Nov 17, 2021
Merged

Conversation

machikoyasuda
Copy link
Member

@machikoyasuda machikoyasuda commented Nov 17, 2021

closes #184

What this PR does

  • Add prettier to the pre-commit list of linters
  • Configures prettier to lint .js, .json, .css files only
  • Lints all .css, .js and .json files
  • Add Prettier VSCode extension

Decisions

  • We decided to lint CSS, JS, JSON for now. HTML will require more careful testing, so we're not adding HTML yet. Created a ticket in backlog.

@github-actions github-actions bot added the deployment-dev [auto] Changes that will trigger a deploy if merged to dev label Nov 17, 2021
@machikoyasuda
Copy link
Member Author

Discussion Q: @thekaveman @angela-tran Should we configure Prettier to also lint HTML, CSS?

@machikoyasuda machikoyasuda added this to the November 2021 milestone Nov 17, 2021
@thekaveman
Copy link
Member

Discussion Q: @thekaveman @angela-tran Should we configure Prettier to also lint HTML, CSS?

Yes, I think so! Let's make it our de-facto all things front-end

@machikoyasuda
Copy link
Member Author

Going to add CSS, but not HTML. HTML is going to be a larger linting change, so I'll add it as a ticket to the backlog.

@machikoyasuda machikoyasuda changed the title Add JavaScript/JSON linting Add JavaScript/JSON/CSS linting Nov 17, 2021
Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

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

This looks great!

I'll need to clean up the new files in #185, so let's merge this first and I'll rebase to get all the prettier goodness 😄

@machikoyasuda machikoyasuda merged commit 5707ee3 into dev Nov 17, 2021
@machikoyasuda machikoyasuda deleted the chore/precommit-prettier branch November 17, 2021 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment-dev [auto] Changes that will trigger a deploy if merged to dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JavaScript, CSS linting and formatting
2 participants