我正在尝试使用 tide
和 ng2-mode
设置带有 Typescript 和 Angular 的 Emacs。我在 flycheck
中启用 tslint
时遇到问题。我的源码目录如下:
app-dir - 这是 tslint.json 文件
app-dir/src/main.ts - 此处,tslint 正常工作
app-dir/src/app/app.component.ts - 这里 tslint 根本不起作用,flycheck 没有看到任何检查器:/
你能帮我吗,我该如何调试这个?
最佳答案
尝试将其放入您的初始化文件中:
(with-eval-after-load 'tide
(flycheck-add-mode 'typescript-tslint 'ng2-ts-mode)
(flycheck-add-mode 'typescript-tide 'ng2-ts-mode)
)
关于angular - Tslint 无法在使用 Angular 的 Emacs 中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46856356/