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

chore: configure linting, hooks, jest, run lint #919

Merged
merged 4 commits into from
Feb 21, 2023

Conversation

bryce-mcmath
Copy link
Contributor

@bryce-mcmath bryce-mcmath commented Feb 15, 2023

Git hooks are now functioning as they are in bifold, the linter did catch quite a few issues so I made those changes. Jest is setup but only one test is running as it has trouble running tests of components that import from Bifold, so I'm gonna leave that ticket for someone else to take a swing at. I had to add a rule to the BC Wallet eslint config that isn't present in the bifold config, the rule to make unused-vars an error and not just a warning. This matches the behavior in bifold (not sure why bifold didn't need to explicitly state the rule.) You may need to run npx husky@7.0.0 install in the root once to get hooks working for you. Alternatively you can use the new setup script in the package.json, it does the same thing.

Apologies for touching so many files.

Blocked By

Signed-off-by: Bryce McMath <bryce.j.mcmath@gmail.com>
@bryce-mcmath bryce-mcmath marked this pull request as ready for review February 15, 2023 18:13
Signed-off-by: Bryce McMath <bryce.j.mcmath@gmail.com>
@bryce-mcmath bryce-mcmath requested review from wadeking98, jleach and amanji and removed request for jleach February 15, 2023 19:15
@cvarjao cvarjao marked this pull request as draft February 16, 2023 17:56
@cvarjao cvarjao marked this pull request as ready for review February 16, 2023 17:57
amanji
amanji previously approved these changes Feb 16, 2023
Signed-off-by: Bryce McMath <32586431+bryce-mcmath@users.noreply.github.com>
Copy link
Contributor

@amanji amanji left a comment

Choose a reason for hiding this comment

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

For this line in the package.json:

"install:bifold": "cd bifold/core && yarn install"

Can we update it to:

"install:bifold": "cd bifold/core && yarn install --frozen-lockfile",

Signed-off-by: Bryce McMath <bryce.j.mcmath@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bryce-mcmath bryce-mcmath merged commit d9765b0 into main Feb 21, 2023
@bryce-mcmath bryce-mcmath deleted the feat/jest-and-husky branch February 21, 2023 19:11
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