0
爲什麼eslint會拋出這個錯誤? JavaScript在React Native內運行時沒有問題。 https://reactnavigation.org/docs/intro/eslint解析錯誤:意外的令牌=
使用Javascript::代碼從反應導航例如在截取
static navigationOptions = { header: null };
eslint錯誤:
error Parsing error: Unexpected token =
.eslintrc.js文件:
module.exports = {
"extends": "standard",
"plugins": [
"react",
"react-native"
]
};
是配置ES6您eslint? – amiramw