Change prettier rules

This commit is contained in:
ErickSkrauch
2020-05-24 02:08:24 +03:00
parent 73f0c37a6a
commit f85b9d8d35
382 changed files with 24137 additions and 26046 deletions

View File

@@ -2,66 +2,61 @@ import { Action as ReduxAction } from 'redux';
import { Account } from 'app/components/accounts/reducer';
interface AddAction extends ReduxAction {
type: 'accounts:add';
payload: Account;
type: 'accounts:add';
payload: Account;
}
export function add(account: Account): AddAction {
return {
type: 'accounts:add',
payload: account,
};
return {
type: 'accounts:add',
payload: account,
};
}
interface RemoveAction extends ReduxAction {
type: 'accounts:remove';
payload: Account;
type: 'accounts:remove';
payload: Account;
}
export function remove(account: Account): RemoveAction {
return {
type: 'accounts:remove',
payload: account,
};
return {
type: 'accounts:remove',
payload: account,
};
}
interface ActivateAction extends ReduxAction {
type: 'accounts:activate';
payload: Account;
type: 'accounts:activate';
payload: Account;
}
export function activate(account: Account): ActivateAction {
return {
type: 'accounts:activate',
payload: account,
};
return {
type: 'accounts:activate',
payload: account,
};
}
interface ResetAction extends ReduxAction {
type: 'accounts:reset';
type: 'accounts:reset';
}
export function reset(): ResetAction {
return {
type: 'accounts:reset',
};
return {
type: 'accounts:reset',
};
}
interface UpdateTokenAction extends ReduxAction {
type: 'accounts:updateToken';
payload: string;
type: 'accounts:updateToken';
payload: string;
}
export function updateToken(token: string): UpdateTokenAction {
return {
type: 'accounts:updateToken',
payload: token,
};
return {
type: 'accounts:updateToken',
payload: token,
};
}
export type Action =
| AddAction
| RemoveAction
| ActivateAction
| ResetAction
| UpdateTokenAction;
export type Action = AddAction | RemoveAction | ActivateAction | ResetAction | UpdateTokenAction;