phillip-niakoulov / 307-ecommerce-site

Team 2's ecommerce site for CSC 307
0 stars 0 forks source link

E-SHOP (PRO)

Team 2's ecommerce site for CSC 307

Init

Running dev

Contributing

Setting Up Your IDE

Optional if you don't want to type npx eslint . --fix and npm run format every time.

For VSCode:

  1. Install the ESLint and Prettier extensions (and also a spellcheck extension).

Under File > Preferences> Settings > Open Settings (JSON) icon (in the top right, looks like a document with an arrow), paste the following in the file:

{
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
  1. Follow instructions on Prettier extension install page to add to Open Settings (JSON). Here was what I needed to do:
    {
     "editor.defaultFormatter": "esbenp.prettier-vscode",
     "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    }
    }