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