angular - Tslint 无法在使用 Angular 的 Emacs 中工作

标签 angular typescript emacs tslint flycheck

我正在尝试使用 tideng2-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/

相关文章:

emacs - 使用自动填充模式自动重新填充整个段落?

macos - 如何在 Mac Emacs 中运行 Scheme? - "process scheme exited abnormally with code 1/126"

angular - 未处理的 promise 拒绝 : Cannot match any routes

typescript :在将可选类型与必需类型合并时创建并集而不是交集

javascript - Angular 2更改className更改类名称,然后将其删除

Typescript React 组件装饰器

typescript - angular2 rxjs 可观察的 forkjoin

emacs - 希腊字符影响 emacs 中的行间距

javascript - Angular Material 拖放 : Custom Pipe Issue

css - Angular Material 导航栏不是响应式的