-
I'm getting stuck at the very beginning of Lesson 7 trying to follow along with Patrick's steps. I'm not sure if this just because of the newer version of hardhat where we have to choose javascript project instead of advanced javascript project so our beginning project files are different than what's in the video, but I've been messing around for 2 hours and have started over a few times but seem to be getting stuck first on solhint and now prettier formatting isn't working so I'm not sure where I've gone wrong. Problem 1: SolhintSolhint doesn't come automatically setup when you create a new javascript project in hardhat. I first followed the advice in this discussion which got solhint to work but was later having problems with the solidity compiler version so ended up skipping this the 2nd time around. Has anyone gotten solhint to work another way? For now I'm just ignoring this part. Problem 2: prettierAfter messing around for a few hours, I started over but my prettier formatting isn't working in my new project. I have it configured in the vs code settings json file, and I ran From this These feel like silly questions to ask but I'm new to vscode and I really want to understand the fundamentals of how to set up new projects without just copying code from the repo. I'm going to keep plugging away but would love to hear any advice if you can tell what might be going wrong. I've been following along with the previous lessons so far but for some reason can't get my basic project set up right now :/ :( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Well folks, I answered my own question about prettier. I was missing ".*" in my prettierignore file. I added that and it seems to be formatting everything as expected now. Still dont have the answer for solhint but I think I can keep skipping that for now so I can move forward with the rest of hardhat setup for Lesson 7. |
Beta Was this translation helpful? Give feedback.
-
Maybe you can try to install the hardhat version used in the video, use the command |
Beta Was this translation helpful? Give feedback.
Well folks, I answered my own question about prettier. I was missing ".*" in my prettierignore file. I added that and it seems to be formatting everything as expected now.
Still dont have the answer for solhint but I think I can keep skipping that for now so I can move forward with the rest of hardhat setup for Lesson 7.