eslint Parsing error: Unexpected token =
问题 Why is eslint throwing this error? The Javascript runs without issue inside of React Native. The code was taken from the react-navigation example at : https://reactnavigation.org/docs/intro/ Javascript: static navigationOptions = { header: null }; eslint error: error Parsing error: Unexpected token = .eslintrc.js file: module.exports = { "extends": "standard", "plugins": [ "react", "react-native" ] }; 回答1: The syntax is not yet standardised, but a stage-2 proposal for inclusion in Javascript