ui: update eslint rules

This commit is contained in:
undefined committed 2022-09-03 14:28:18 +08:00
1 parent 0e07c64cad
commit 5e8d2b1286
30 files changed
+73 -72

No files matched your search

@@ -21,7 +21,7 @@ function scrollToViewport() {
}
}
export default function reducer(state = null, action) {
export default function reducer(state = null, action: any = {}) {
switch (action.type) {
case 'DIALOGUES_SWITCH_TO': {
scrollToViewport();
@@ -1,6 +1,6 @@
import _ from 'lodash';
export default function reducer(state = {}, action) {
export default function reducer(state = {}, action = {}) {
switch (action.type) {
case 'DIALOGUES_LOAD_DIALOGUES_FULFILLED': {
const { messages } = action.payload;
@@ -1,6 +1,6 @@
import _ from 'lodash';
export default function reducer(state = {}, action) {
export default function reducer(state = {}, action = {}) {
switch (action.type) {
case 'DIALOGUES_LOAD_DIALOGUES_FULFILLED': {
const dialogues = action.payload.messages;
@@ -1,7 +1,7 @@
import _ from 'lodash';
import Notification from 'vj/components/notification';
export default function reducer(state = {}, action) {
export default function reducer(state = {}, action: any = {}) {
switch (action.type) {
case 'DIALOGUES_LOAD_DIALOGUES_FULFILLED': {
const dialogues = action.payload.messages;