【发布时间】:2019-02-13 07:49:17
【问题描述】:
我是Standard 的长期用户,现在我正在做一个新项目,我被要求开始写分号。
我正在尝试同时使用 xo、Babel 和 React,但是当我尝试 lint 代码时,我不断收到错误消息:
document is not defined. no-undef
我尝试在我的 package.json 文件中的 xo 字段中添加一个 env 选项,但没有成功。
我的xo 配置:
"xo": {
"esnext": true,
"extends": "xo-react",
"space": true,
"rules": {
"react/jsx-space-before-closing": 0
}
}
【问题讨论】:
标签: javascript eslint