async-labs / saas

Build your own SaaS business with SaaS boilerplate. Productive stack: React, Material-UI, Next, MobX, WebSockets, Express, Node, Mongoose, MongoDB. Written with TypeScript.
https://saas-app.async-await.com
MIT License
4.12k stars 685 forks source link

ESLint for TypeScript #46

Closed tima101 closed 5 years ago

tima101 commented 5 years ago

Things to do to enable highlighting and auto-fixing of TS code by ESLint on VS code editor:

Highlighting by ESLint: Screenshot from 2019-10-20 12-55-34

To fix, press Ctrl + S.

Add your own formatting rules to .eslintrc.js

tima101 commented 5 years ago

@delgermurun @klyburke I will close this issue when done updating all chapters and main app.

delgermurun commented 5 years ago

@tima101 It works.

zamgill commented 5 years ago

For anyone having an issue under ./book/1-begin/app folder please add the following line in settings.json

{ "directory": "./book/1-begin/app", "changeProcessCWD": true },

tima101 commented 5 years ago

@zamgill Thanks.

Workspace settings for VS code editor: https://github.com/async-labs/saas/blob/master/.vscode/settings.json