提交 088fef04 authored 作者: vipcxj's avatar vipcxj

impove: 修复eslint报的错

上级 9cdc4a97
...@@ -12,7 +12,7 @@ const app = dva({ ...@@ -12,7 +12,7 @@ const app = dva({
models: [...models, routerModel], models: [...models, routerModel],
extraEnhancers: [autoRehydrate()], extraEnhancers: [autoRehydrate()],
onError(e) { onError(e) {
console.log('onError', e); console.error('onError', e); // eslint-disable-line no-console
}, },
}); });
......
import { AsyncStorage } from 'react-native';
import { NavigationActions } from 'react-navigation'; import { NavigationActions } from 'react-navigation';
export default { export default {
......
import { NativeModules } from 'react-native'; import { NativeModules } from 'react-native';
// noinspection JSUnresolvedVariable // noinspection JSUnresolvedVariable
export default NativeModules.IDCard; export default NativeModules.IDCard;
\ No newline at end of file
...@@ -11,4 +11,4 @@ class HomeScreen extends Component { ...@@ -11,4 +11,4 @@ class HomeScreen extends Component {
} }
} }
export default HomeScreen; export default HomeScreen;
\ No newline at end of file
...@@ -2,4 +2,4 @@ export { NavigationActions } from 'react-navigation'; ...@@ -2,4 +2,4 @@ export { NavigationActions } from 'react-navigation';
export const delay = time => new Promise(resolve => setTimeout(resolve, time)); export const delay = time => new Promise(resolve => setTimeout(resolve, time));
export const createAction = type => payload => ({ type, payload }); export const createAction = type => payload => ({ type, payload });
\ No newline at end of file
...@@ -11,9 +11,9 @@ export default { ...@@ -11,9 +11,9 @@ export default {
}, },
async setItem(key, value) { async setItem(key, value) {
const item = JSON.stringify(value); const item = JSON.stringify(value);
return await AsyncStorage.setItem(key, item); return AsyncStorage.setItem(key, item);
}, },
async delItem(key) { async delItem(key) {
return AsyncStorage.removeItem(key); return AsyncStorage.removeItem(key);
}, },
} };
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论