Closed tima101 closed 5 years ago
@delgermurun @klyburke I will close this issue when done updating all chapters and main app.
@tima101 It works.
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 },
@zamgill Thanks.
Workspace settings for VS code editor: https://github.com/async-labs/saas/blob/master/.vscode/settings.json
Things to do to enable highlighting and auto-fixing of TS code by ESLint on VS code editor:
install extension:
dbaeumer.vscode-eslint
set TS parsing and proper directory by adding settings to
settings.json
for Workspace:add
.eslintrc.js
to the root of your project, for example./book/1-end/app
add all necessary packages to
devDependencies
, for./book/1-end/app
, I have:you may need to restart VS code editor
you can also add command
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
topackage.json
Highlighting by ESLint:
To fix, press
Ctrl + S
.Add your own formatting rules to
.eslintrc.js