开发者社区 问答 正文

在eslint规则中不使用with语句该怎么写?

在eslint规则中不使用with语句该怎么写?

展开
收起
游客vvhuafakamuxq 2022-05-08 11:16:06 299 分享 版权
来自: 阿里技术
1 条回答
写回答
取消 提交回答
  • create(context) { return { WithStatement(node) { context.report({ node, messageId: "unexpectedWith" }); } } }

    2022-05-08 12:10:12
    赞同 展开评论
问答地址: