我确实收到了一个standardJs lint 错误
/lib/with-apollo-client.js:7:24: Parsing error: Unexpected token =
对于这个片段,它来自https://github.com/zeit/next.js/blob/canary/examples/with-apollo/lib/with-apollo-client.js
import initApollo from './init-apollo'
import Head from 'next/head'
import { getDataFromTree } from 'react-apollo'
export default (App) => {
return class Apollo extends React.Component {
static displayName = 'withApollo(App)' // <-
static async getInitialProps (ctx) {
// ...
}
}
}
那有什么问题?我正在使用standardJs 11.0.1