Use import syntax

This commit is contained in:
Blade Barringer
2015-09-19 19:45:53 -05:00
parent b7cd46a6fe
commit 301ce56a5b
6 changed files with 7 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
let each = require('lodash').each;
let t = require('../helpers/translator');
import {each} from 'lodash';
import t from '../helpers/translator';
const DROP_EGGS = [
'Wolf',

View File

@@ -1,4 +1,4 @@
let t = require('./helpers/translator');
import t from './helpers/translator';
const NUMBER_OF_QUESTIONS = 12;

View File

@@ -1,7 +1,5 @@
'use strict';
require('coffee-script');
var i18n = require('../../../../script/i18n.coffee');
import i18n from '../../../../script/i18n.coffee';
var t = function(string, vars) {
var func = function(lang) {

View File

@@ -1,4 +1,4 @@
let each = require('lodash').each;
import {each} from 'lodash';
let mysterySets = {
201402: {

View File

@@ -1,6 +1,4 @@
'use strict';
var t = require('../helpers/translator.js');
import t from '../helpers/translator';
/*
---------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
let t = require('./helpers/translator');
import t from './helpers/translator';
let stable = {
pets: {