Updated .eslintrc.json and disabled exception handler in dev mode (#712)
* Updated .eslintrc.json to require space between async keyword and brackets * Disabled exception handler in dev mode
This commit is contained in:
parent
fd977df9e3
commit
cd7db1454d
3 changed files with 4 additions and 4 deletions
|
|
@ -246,7 +246,7 @@
|
|||
"sort-imports": 0,
|
||||
"sort-keys": 0,
|
||||
"space-before-blocks": [2, "always"],
|
||||
"space-before-function-paren": [2, "never"],
|
||||
"space-before-function-paren": [2, {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
|
||||
"space-in-parens": [2, "never"],
|
||||
"space-infix-ops": 2,
|
||||
"space-unary-ops": [2, { "words": true, "nonwords": false }],
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ export function toggleGMChannel(channelId, visible) {
|
|||
}
|
||||
|
||||
export function closeDMChannel(channel) {
|
||||
return async(dispatch, getState) => {
|
||||
return async (dispatch, getState) => {
|
||||
const state = getState();
|
||||
|
||||
if (channel.isFavorite) {
|
||||
|
|
@ -273,7 +273,7 @@ export function closeDMChannel(channel) {
|
|||
}
|
||||
|
||||
export function closeGMChannel(channel) {
|
||||
return async(dispatch, getState) => {
|
||||
return async (dispatch, getState) => {
|
||||
const state = getState();
|
||||
|
||||
if (channel.isFavorite) {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ registerScreens(store, Provider);
|
|||
export default class Mattermost {
|
||||
constructor() {
|
||||
this.isConfigured = false;
|
||||
setJSExceptionHandler(this.errorHandler, true);
|
||||
setJSExceptionHandler(this.errorHandler, false);
|
||||
Orientation.lockToPortrait();
|
||||
this.unsubscribeFromStore = store.subscribe(this.listenForHydration);
|
||||
AppState.addEventListener('change', this.handleAppStateChange);
|
||||
|
|
|
|||
Loading…
Reference in a new issue