繁体   English   中英

找不到@typescript-eslint/no-unused-expressions'

[英]@typescript-eslint/no-unused-expressions' was not found

我想使用 Jasmine 并且我正在学习 Jasmine 的教程,但是他们没有在文档中提到如何修复错误“规则'@typescript-eslint/no-unused-expressions'的定义不是found.eslint(@typescript-eslint/no-unused-expressions)"

该错误发生在文件酶.ts 中:

import { configure } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import jasmineEnzyme from "jasmine-enzyme";

configure({ adapter:  new Adapter() });

// tslint:disable-next-line: only-arrow-functions
beforeEach(function() {
  jasmineEnzyme();
});

这是 Jasmine 教程的链接:

https://jasmine.github.io/tutorials/react_with_npm

根据 docs 确实存在typescript-eslint 规则。 这里有几种可能性:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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