javascript - Cypress eslint 插件:cypress/recommended 如何忽略“unexpected token =”?
问题描述
我正在尝试在我的 cypress 项目上运行 eslint,但它一直失败
2:19 错误解析错误:意外令牌 =
有没有办法全局忽略错误?如果我不运行 linting,我的代码可以正常工作:
class CardPage {
cardPageURL = "I've removed the url";
visit() {
cy.visit(this.cardPageURL);
}
}
export const cardPage = new CardPage();
这是我的 .eslintrc.js 文件
module.exports = { extends: ["plugin:cypress/recommended", "prettier"], };
解决方案
推荐阅读
- perl - 如何以特定格式重命名文件夹中的多个文件?perl 语法解释
- mysql - 在 MySQL 5.6.20 中释放空间 - InnoDB
- c# - 学习 Unity 中的保存和加载;由于未知原因遇到错误 CS1513
- python - Python signxml 自定义命名空间
- sql - 在另一个表中为外键创建新行
- java - 如何为 Windows 10 的 HDF5view 应用程序安装 java
- python - 为什么在 python 中以不同方式导入时 setattr 不起作用?
- visual-studio - VS2019 DataSet Designer Mangling INSERT 查询 - 删除 RETURNING 语句
- docker - 阻止 Docker 容器退出
- linux - 使用videobalance调整gstreamer管道中的对比度和亮度将相机流保存到文件