用了这个注释 ,它又提示 “Unexpected unlimited 'eslint-disable-next-line' comment. Specify some rule names to disable
甘凌云
@onLing
要指定规则
Leo Wang
@leowang199303
不指定规则不行吗
甘凌云
@onLing
你不用 // eslint-disable-next-line它报什么,你就在后面加什么
// eslint-disable-next-line no-plusplus
Leo Wang
@leowang199303
说的是 component should be a pure function
甘凌云
@onLing
方便截图不
Leo Wang
@leowang199303
Component should be written as a pure function
这是个啥规则
甘凌云
@onLing
看看你的组件咋写的
写法不对
Leo Wang
@leowang199303
不用看了
我就想把这个检查跳过去
我知道我的代码为啥报这个错
但是我就想让eslint跳过去
leah
@dundishi
引入import GGEditor from 'gg-editor';报错 ./node_modules/_gg-editor@3.0.0-beta.0@gg-editor/src/components/GGEditor/index.tsx Module parse failed: The keyword 'interface' is reserved (12:0) You may need an appropriate loader to handle this file type. | import EditorPrivateContext, { EditorPrivateContextProps } from '../../common/context/EditorPrivateContext'; | | interface GGEditorProps { | [EditorEvent.onBeforeExecuteCommand]?: EventHandle<CommandEvent>; | [EditorEvent.onAfterExecuteCommand]?: EventHandle<CommandEvent>; 能帮我看一下怎么解决吗?
Leo Wang
@leowang199303
不知道 gg-editor...
leah
@dundishi
那有自定义过拓扑编辑器吗?
有大佬做过拓扑流程图吗
_
leah
@dundishi
有人下载区块的时候碰到这样的吗 sudo umi block add EditorKoni --path=your/path/here Password: ✔ 😁 Parse url and args ✔ 🚒 Git fetch ✔ 🚛 Git checkout master ✔ 🚀 Git pull ✔ 👀 update submodule ✖ error AssertionError [ERR_ASSERTION]: /Users/xs01/.umi/blocks/github.com/umijs/umi-blocks/EditorKoni don't exists at /usr/local/share/.config/yarn/global/node_modules/umi-build-dev/lib/plugins/commands/block/index.js:165:27 at Generator.next (<anonymous>) at asyncGeneratorStep (/usr/local/share/.config/yarn/global/node_modules/umi-build-dev/lib/plugins/commands/block/index.js:46:103) at _next (/usr/local/share/.config/yarn/global/node_modules/umi-build-dev/lib/plugins/commands/block/index.js:48:194) at process._tickCallback (internal/process/next_tick.js:68:7)