Skip to content

Commit

Permalink
refactor(import): use import insted of require
Browse files Browse the repository at this point in the history
  • Loading branch information
akameco committed Nov 11, 2017
1 parent 2d0ae2d commit 08252bb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/s2s-cli/src/cli/loadConfig.js
@@ -1,8 +1,7 @@
// @flow
import findUp from 'find-up'
import type { Opts } from 'types'

const findUp = require('find-up')

const S2S_CONFIG_JS = 's2s.config.js'

export default function loadConfig(cwd: string = process.cwd()): Opts {
Expand Down
2 changes: 1 addition & 1 deletion packages/s2s-helper-get-action-obj/src/index.test.js
@@ -1,5 +1,5 @@
// @flow
const helper = require('./').default
import helper from '.'

test('return [] when empty object', () => {
const fixture = `
Expand Down
2 changes: 1 addition & 1 deletion packages/s2s-helper-get-initial-state/src/index.test.js
@@ -1,5 +1,5 @@
// @flow
const helper = require('./').default
import helper from '.'

test('get initalState', () => {
const fixture = `
Expand Down
2 changes: 1 addition & 1 deletion packages/s2s-helper-get-reducer-case/src/index.test.js
@@ -1,5 +1,5 @@
// @flow
const helper = require('./').default
import helper from '.'

test('get Actions', () => {
const fixture = `
Expand Down

0 comments on commit 08252bb

Please sign in to comment.