Skip to content

Commit

Permalink
sort require statements, phetsims/tasks#963
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 25, 2018
1 parent 69ef7f0 commit 31d5167
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion js/LongTermStringStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
'use strict';

// modules
const _ = require( 'underscore' ); // eslint-disable-line
const nodeFetch = require( 'node-fetch' ); // eslint-disable-line
const octonode = require( 'octonode' );
const Queue = require( 'promise-queue' ); // eslint-disable-line
const RosettaConstants = require( './RosettaConstants' );
const winston = require( 'winston' );
const _ = require( 'underscore' ); // eslint-disable-line

// constants
const PREFERENCES = global.preferences;
Expand Down
2 changes: 1 addition & 1 deletion js/ServerTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
'use strict';

// modules
const _ = require( 'underscore' ); // eslint-disable-line
const LongTermStringStorage = require( './LongTermStringStorage' );
const nodeFetch = require( 'node-fetch' ); // eslint-disable-line
const winston = require( 'winston' );
const _ = require( 'underscore' ); // eslint-disable-line

// constants
const PASS = true;
Expand Down
4 changes: 2 additions & 2 deletions js/TranslationUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
/* eslint-env node */
'use strict';

const _ = require( 'underscore' ); // eslint-disable-line
const email = require( 'emailjs/email' );
const nodeFetch = require( 'node-fetch' ); // eslint-disable-line
const https = require( 'https' );
const nodeFetch = require( 'node-fetch' ); // eslint-disable-line
const octonode = require( 'octonode' );
const RosettaConstants = require( './RosettaConstants' );
const winston = require( 'winston' );
const _ = require( 'underscore' ); // eslint-disable-line

// globals
const preferences = global.preferences;
Expand Down
2 changes: 1 addition & 1 deletion js/localeInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/* eslint-env node */
'use strict';
// imports
const _ = require( 'lodash' ); // eslint-disable-line
const nodeFetch = require( 'node-fetch' ); // eslint-disable-line
const RosettaConstants = require( './RosettaConstants' );
const winston = require( 'winston' );
const _ = require( 'lodash' ); // eslint-disable-line

// constants
const CACHED_DATA_VALID_TIME = 86400; // in seconds
Expand Down
6 changes: 3 additions & 3 deletions js/routeHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
'use strict';

// node modules
// const query = require( 'pg-query' ); // eslint-disable-line
const _ = require( 'underscore' ); // eslint-disable-line
const https = require( 'https' );
const nodeFetch = require( 'node-fetch' ); // eslint-disable-line
const { Client } = require( 'pg' ); // eslint-disable-line
// const query = require( 'pg-query' ); // eslint-disable-line
const winston = require( 'winston' );
const _ = require( 'underscore' ); // eslint-disable-line
const { Client } = require( 'pg' ); // eslint-disable-line

// server modules
const localeInfo = require( './localeInfo' );
Expand Down
2 changes: 1 addition & 1 deletion js/simData.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
'use strict';

// imports
const _ = require( 'underscore' ); // eslint-disable-line
const request = require( 'request' );
const RosettaConstants = require( './RosettaConstants' );
const winston = require( 'winston' );
const _ = require( 'underscore' ); // eslint-disable-line

// constants
const CACHED_DATA_VALID_TIME = 1800; // in seconds
Expand Down
4 changes: 2 additions & 2 deletions js/stringSubmissionQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

// modules
// const async = require( 'async' );
const _ = require( 'underscore' ); // eslint-disable-line
const LongTermStringStorage = require( './LongTermStringStorage' );
const nodeFetch = require( 'node-fetch' ); // eslint-disable-line
const query = require( 'pg-query' ); // eslint-disable-line
const winston = require( 'winston' );
const RosettaConstants = require( './RosettaConstants' );
const _ = require( 'underscore' ); // eslint-disable-line
const simData = require( './simData' );
const winston = require( 'winston' );

// constants
const PRODUCTION_SERVER_URL = RosettaConstants.PRODUCTION_SERVER_URL;
Expand Down

0 comments on commit 31d5167

Please sign in to comment.