Shift3 / standards-and-practices

Standards and Practices for Bitwise Industries
https://shift3.github.io/standards-and-practices/
63 stars 41 forks source link

Helpful Development Plugins #231

Closed PrestonMoore44 closed 3 years ago

PrestonMoore44 commented 3 years ago

Is your feature request related to a problem? Please describe. A list of your most helpful web plugins

Describe the solution you'd like A helpful list of safe plugins we've found to be helpful while developing.

Some common web plugins for React Development:

If you know of any others feel free to add them!

Karvel commented 3 years ago

I have a list I wrote up a while back for my recommended Visual Studio Code Extensions:

Visual Studio Code

Recommended Extensions

Angular

Settings

In addition to the above extensions, I have some settings I configure in Visual Studio Code:

codysmith287 commented 3 years ago

@Karvel Awesome list! I was just thinking of putting together a list of fairly nonopinionated and helpful extensions for Visual Studio exactly like this one.

What do you think about Prettier?

I know Prettier is pretty opinionated, but I like that it saves time and attention on formatting. It is lazy? Ehh... yeah, probably. A couple of things I would recommend one do if using Prettier in your Visual Studio Code settings would be: 1) Have Prettier formatting run on each time you save a file rather than run as an npm script. image 2) Have Prettier format only if a Prettier config file (.prettierrc) exists in the root directory of a project. That way if you're working on a project where Prettier is not wanted it won't create unnecessarily huge file diffs. If this wasn't an option I wouldn't use Prettier as it's really annoying when you don't want it or it is not used among other developers on your team. image

Another extension I like is indent-rainbow. I would venture to say it shouldn't be opinionated as Prettier because it's more individual to the developer.

codysmith287 commented 3 years ago

@Karvel Also is your list already somewhere in the S&P repo? Thanks for sharing this as there were a few game changer extensions on your list that I didn't have.

Karvel commented 3 years ago

@Karvel Awesome list! I was just thinking of putting together a list of fairly nonopinionated and helpful extensions for Visual Studio exactly like this one.

What do you think about Prettier?

I know Prettier is pretty opinionated, but I like that it saves time and attention on formatting. It is lazy? Ehh... yeah, probably. A couple of things I would recommend one do if using Prettier in your Visual Studio Code settings would be:

1. Have Prettier formatting run on each time you save a file rather than run as an npm script.
   ![image](https://user-images.githubusercontent.com/20328572/104073934-c75a7980-51c3-11eb-8a40-a27ace8ed2ba.png)

2. Have Prettier format **only** if a Prettier config file (`.prettierrc`) exists in the root directory of a project. That way if you're working on a project where Prettier is not wanted it won't create unnecessarily **huge** file diffs. If this wasn't an option I wouldn't use Prettier as it's really annoying when you don't want it or it is not used among other developers on your team.
   ![image](https://user-images.githubusercontent.com/20328572/104074745-b7dc3000-51c5-11eb-92f9-aa717e139615.png)

Another extension I like is indent-rainbow. I would venture to say it shouldn't be opinionated as Prettier because it's more individual to the developer.

I have started setting up prettier in my projects with a pre-commit hook. This enforces its styling project-wide. I don't actually like some of its styling, but I do like not having to think about style preferences anymore, or having to worry about constant style change deltas between individual editor settings. Here is the PR where I added it to the Angular boilerplate. The process should basically be the same for any Javascript project using npm.

@Karvel Also is your list already somewhere in the S&P repo? Thanks for sharing this as there were a few game changer extensions on your list that I didn't have.

Not at the moment, that's why I responded here! I have shared it in the mentoring slack channel. I originally created it for a new cohort sometime last year.