未找到@@ typescript-eslint / no-unused-expressions

问题描述 投票:1回答:1

我想使用Jasmine,我在Jasmine教程的中间,但是他们没有在文档中提及如何解决错误“规则'@ typescript-eslint / no-unused-expressions的定义”找不到。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

reactjs typescript jasmine eslint tslint
1个回答
0
投票

该打字稿保留规则does exist per the docs。这里有两种可能:

© www.soinside.com 2019 - 2024. All rights reserved.