-
Notifications
You must be signed in to change notification settings - Fork 0
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
Tool integration - Standard.JS #41
Conversation
Pull Request Test Coverage Report for Build 11603627880Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also have the new package.json with standard-js?
Yes but I believe the package.json is git ignored, so if I add standard to the file it won't be saved when I commit it. I asked in class and the professor said screenshots work as installation, at least for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, will assess further when looking to merge
…kers into standard-js-tool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Make sure to include why signals aren't passing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than the lint/build checks
Local installation (Part 1)
Created new branch and ran
npm install standard --save-dev
.Ran standard tool on entire directory using
npx standard
.Proof
First screenshot shows the StandardJS tool being locally installed.
The second screenshot shows that I ran npx standard and put the outputs of the command into a file. Running
wc -l
on the two files shows the number of lines they have.Artifacts
The output of running
npx standard
was redirected tostandard.out
, but since the output was so big (~250K lines), I sampled the first 10,000 lines instandard-short.out
, which can be viewed on GitHub by clicking "View file". The first 10 lines of the output look like:The file path
/home/phillip/NodeBB-group
is my where I store the local repo for our group. Even though these first few lines only show one file, the outfile has formatting suggestions for many other files, including ones that we edited.Tool Integration (Part 2)
I added a Github Actions to pushes that triggers StandardJS on a git push or a pull request.
NOTE
Unfortunately, StandardJS formatting is not compatible with eslint formatting. I modified
public/src/modules/chat.js
to pass when runningnpx standard
, but essentially all other files will fail. Because of this change though, theeslint
er fails on that same file. I modified thestandard.out
file to show what runningnpx standard
looked like before making formatting changes.Resolves #55