Adding Prettier

There's not much to re-installing Prettier, and all we need is a npm command, plus the .prettierrc file we've been working with. For the former, just use the following command:

npm install --save-dev prettier

For configuration, we can use the contents of this .prettierrc file:

{
"tabWidth": 4,
"printWidth": 75
}

Now, we are set! We can check it's working; let's do that.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.70.203