这是我的 eslintrc。它抱怨
let state = {dataObjects: insurances }
不正确。我应该怎么做才能解决这个问题?否则代码运行时没有错误。
.eslintrc
{
"extends": "airbnb",
"env": {
"es6": true
},
"parserOptions": {
"sourceType": "module"
}
}
文本屏幕
12 class TextablesScreen extends React.PureComponent {
13 /* ***********************************************************
14 * STEP 1
15 * This is an array of objects with the properties you desire
16 * Usually this should come from Redux mapStateToProps
17 ************************************************************ */
>> 18 let state = {
19 dataObjects: insurances
20 }