简体   繁体   中英

How to setup proper typescript linting for an angular project in vscode?

I would like to setup an angular project which uses the airbnb typescript styleguide and also formats the code on save in vscode. I've tried to configure it with tslint-config-airbnb and also the prettier extension. But somehow I can't manage it. Any help and suggestion is highly welcome!

Install this plugin if not already there.

VC Code should be linting your project dynamically as you code and show errors just in time they appear.

You may need to run linting manually (or on a testing environment). In this case, you must be able to find "lint" script in your package.json which you execute as npm run lint .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM