【发布时间】:2019-04-14 20:39:23
【问题描述】:
我确实得到了一个Parsing error: Unexpected token linting 错误,这个line 使用standardJS。因此我的 CI 失败了。
我不明白这条线有什么问题。我该如何解决这个问题?
export default (App) => {
return class Apollo extends React.Component {
static displayName = 'withApollo(App)' // <--
static async getInitialProps (ctx) {
// ...
}
}
【问题讨论】:
标签: javascript eslint standardjs