[英]eslint/standard gives paring error
I'm using standardJS (eslint). 我正在使用standardJS(eslint)。 For this line I do get a
parsing error: Unexpected token = (null)
, which I do not understand: 对于这一行,我确实得到了一个
parsing error: Unexpected token = (null)
,我不明白:
static displayName = `WithData(${getComponentDisplayName(ComposedComponent)})`
Do I have to add any configuration? 我是否需要添加任何配置? I am just using this in my package.json:
我只是在我的package.json中使用它:
"standard": {
"env": [
"mocha"
],
"global": [
"React"
]
}
我为standardJS添加了"parser": "babel-eslint"
选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.