Prefer default export to make XO happy (#931)
* Comply with prefer-default-export rule for findBySession function * Remove XO's prefer-default-export rule * Comply with prefer-default-export rule for init function * Comply with prefer-default-export rule for getRootGroups function * Comply with prefer-default-export rule for INIT constant * Comply with prefer-default-export rule for isExecutable function * Fix default export for constants * Comply with prefer-default-export rule for last function * Comply with prefer-default-export rule for getColorList function
This commit is contained in:
parent
de5b384ccd
commit
8f28573fc0
16 changed files with 24 additions and 21 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import rpc from '../rpc';
|
||||
import {INIT} from '../constants';
|
||||
import INIT from '../constants';
|
||||
|
||||
export function init() {
|
||||
export default function init() {
|
||||
return dispatch => {
|
||||
dispatch({
|
||||
type: INIT,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import rpc from '../rpc';
|
||||
import getURL from '../utils/url-command';
|
||||
import {keys} from '../utils/object';
|
||||
import {findBySession} from '../utils/term-groups';
|
||||
import findBySession from '../utils/term-groups';
|
||||
import {
|
||||
SESSION_ADD,
|
||||
SESSION_RESIZE,
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import {
|
|||
TERM_GROUP_EXIT_ACTIVE
|
||||
} from '../constants/term-groups';
|
||||
import {SESSION_REQUEST} from '../constants/sessions';
|
||||
import {findBySession} from '../utils/term-groups';
|
||||
import {getRootGroups} from '../selectors';
|
||||
import findBySession from '../utils/term-groups';
|
||||
import getRootGroups from '../selectors';
|
||||
import {setActiveSession, ptyExitSession, userExitSession} from './sessions';
|
||||
|
||||
function requestSplit(direction) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import * as shellEscape from 'php-escape-shell';
|
||||
import {last} from '../utils/array';
|
||||
import {isExecutable} from '../utils/file';
|
||||
import {getRootGroups} from '../selectors';
|
||||
import {findBySession} from '../utils/term-groups';
|
||||
import last from '../utils/array';
|
||||
import isExecutable from '../utils/file';
|
||||
import getRootGroups from '../selectors';
|
||||
import findBySession from '../utils/term-groups';
|
||||
import notify from '../utils/notify';
|
||||
import rpc from '../rpc';
|
||||
import {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue