michaelmano / webrtc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting up on windows.

NVM

Install NVM from https://github.com/coreybutler/nvm-windows/releases and then nvm install v16.13.2 && nvm use v16.13.2 && npm install -g npm@8.15.1

Global Node Packages

npm install -g eslint

Editor setup

use VSCode or an editor of your choice as long as it has the following extensions:

Extensions required are: Vue Language Features (Volar) and ESLint

Config setup

Config and settings:

File > Prefrences > Settings > search for onsave > extensions in the sidebar > eslint > edit in settings.json replace all with the following.

{
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true
    },
    "eslint.validate": [
      "javascript",
      "typescriptreact",
      "javascriptreact",
      "vue"
    ],
    "files.eol": "\n"
}

Before commiting

npm run lint
npm run test

About


Languages

Language:JavaScript 70.4%Language:TypeScript 18.4%Language:Vue 9.8%Language:HTML 1.2%Language:CSS 0.2%