为什么 eslint 会抛出这个错误?Javascript 在 React Native 中运行没有问题。代码取自 react-navigation 示例:https ://reactnavigation.org/docs/intro/
Javascript:
static navigationOptions = { header: null };
错误:
error Parsing error: Unexpected token =
.eslintrc.js 文件:
module.exports = {
"extends": "standard",
"plugins": [
"react",
"react-native"
]
};