我正在使用standardJS (eslint)。对于这一行,我得到了一个我不理解的parsing error: Unexpected token = (null):
static displayName = `WithData(${getComponentDisplayName(ComposedComponent)})`我需要添加任何配置吗?我只是在我的package.json中使用这个:
"standard": {
"env": [
"mocha"
],
"global": [
"React"
]
}发布于 2017-10-24 03:33:26
我已经为standardJS添加了"parser": "babel-eslint"选项。
https://stackoverflow.com/questions/46896908
复制相似问题