简体   繁体   中英

Tslint not working in Emacs using Angular

I'm trying to set up Emacs with Typescript and Angular, using tide and ng2-mode . I'm having issues with enabling tslint in flycheck . My source directory is as follows:

app-dir - here is the tslint.json file

app-dir/src/main.ts - here, tslint is working normally

app-dir/src/app/app.component.ts - here tslint is not working at all, flycheck doesn't see any checker :/

Can you help me, how can I debug this?

Try putting this on your init file:

(with-eval-after-load 'tide
  (flycheck-add-mode 'typescript-tslint 'ng2-ts-mode)
  (flycheck-add-mode 'typescript-tide 'ng2-ts-mode)
)

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