ESLint Set Up - GeorgeDonev/tab-tracker GitHub Wiki

Run this in the server, or client directories to initialize ESLint and generate a .eslintrc profile.

machine@machine:~/tab-tracker-master/server$ node ./node_modules/eslint/bin/eslint.js --init

Place the eslint command like-wise in the scripts "start" or other keywords as needed. "Start" keyword has everything raw for best transparency.

 "scripts": {
     "start": "eslint src/**/*.js && nodemon ./src/app.js --exec",
     "server": "eslint src/**/*.js && node ./src/app.js",
     "lint": "eslint src/**/*.js",
     "lint:fix": "eslint src/**/*.js  --fix",
     "seed": "node seed"
   },

**try to implement eslint --fix in some capacity in the future.

Make sure to set-up Webstorm styling guidelines and auto-checker for ECMA6 : > To set the JavaScript Standard Style as default

Open the Code Style. JavaScript page (in the Settings/Preferences dialog (Ctrl+Alt+S), choose Editor | Code Style | JavaScript), click Set from, and then choose Predefined Style | JavaScript Standard Style. The style will replace your current scheme.