From 768d6ce5876b7dc8063aaa9dd9977326fde3dfcc Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Sun, 27 Jan 2019 15:33:01 -0500 Subject: [PATCH] eslint . --fix --- .template-lintrc.js | 2 +- config/ember-try.js | 54 +++++++++++++++---------------- config/environment.js | 2 +- index.js | 2 +- testem.js | 16 ++++----- tests/dummy/app/app.js | 2 +- tests/dummy/app/router.js | 5 ++- tests/dummy/config/environment.js | 6 ++-- tests/dummy/config/targets.js | 8 ++--- 9 files changed, 44 insertions(+), 53 deletions(-) diff --git a/.template-lintrc.js b/.template-lintrc.js index b45e96f..f35f61c 100644 --- a/.template-lintrc.js +++ b/.template-lintrc.js @@ -1,5 +1,5 @@ 'use strict'; module.exports = { - extends: 'recommended' + extends: 'recommended', }; diff --git a/config/ember-try.js b/config/ember-try.js index 534df49..ec08a5b 100644 --- a/config/ember-try.js +++ b/config/ember-try.js @@ -6,54 +6,54 @@ module.exports = function() { return Promise.all([ getChannelURL('release'), getChannelURL('beta'), - getChannelURL('canary') - ]).then((urls) => { + getChannelURL('canary'), + ]).then(urls => { return { useYarn: true, scenarios: [ { name: 'ember-lts-2.18', env: { - EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }) + EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }), }, npm: { devDependencies: { '@ember/jquery': '^0.5.1', - 'ember-source': '~2.18.0' - } - } + 'ember-source': '~2.18.0', + }, + }, }, { name: 'ember-lts-3.4', npm: { devDependencies: { - 'ember-source': '~3.4.0' - } - } + 'ember-source': '~3.4.0', + }, + }, }, { name: 'ember-release', npm: { devDependencies: { - 'ember-source': urls[0] - } - } + 'ember-source': urls[0], + }, + }, }, { name: 'ember-beta', npm: { devDependencies: { - 'ember-source': urls[1] - } - } + 'ember-source': urls[1], + }, + }, }, { name: 'ember-canary', npm: { devDependencies: { - 'ember-source': urls[2] - } - } + 'ember-source': urls[2], + }, + }, }, // The default `.travis.yml` runs this scenario via `yarn test`, // not via `ember try`. It's still included here so that running @@ -62,23 +62,23 @@ module.exports = function() { { name: 'ember-default', npm: { - devDependencies: {} - } + devDependencies: {}, + }, }, { name: 'ember-default-with-jquery', env: { EMBER_OPTIONAL_FEATURES: JSON.stringify({ - 'jquery-integration': true - }) + 'jquery-integration': true, + }), }, npm: { devDependencies: { - '@ember/jquery': '^0.5.1' - } - } - } - ] + '@ember/jquery': '^0.5.1', + }, + }, + }, + ], }; }); }; diff --git a/config/environment.js b/config/environment.js index 0dfaed4..9707ea6 100644 --- a/config/environment.js +++ b/config/environment.js @@ -1,5 +1,5 @@ 'use strict'; module.exports = function(/* environment, appConfig */) { - return { }; + return {}; }; diff --git a/index.js b/index.js index 2e1d1d8..0ca063d 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ 'use strict'; module.exports = { - name: require('./package').name + name: require('./package').name, }; diff --git a/testem.js b/testem.js index 726d187..b060477 100644 --- a/testem.js +++ b/testem.js @@ -1,12 +1,8 @@ module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, - launch_in_ci: [ - 'Chrome' - ], - launch_in_dev: [ - 'Chrome' - ], + launch_in_ci: ['Chrome'], + launch_in_dev: ['Chrome'], browser_args: { Chrome: { ci: [ @@ -18,8 +14,8 @@ module.exports = { '--disable-software-rasterizer', '--mute-audio', '--remote-debugging-port=0', - '--window-size=1440,900' - ].filter(Boolean) - } - } + '--window-size=1440,900', + ].filter(Boolean), + }, + }, }; diff --git a/tests/dummy/app/app.js b/tests/dummy/app/app.js index b3b2bd6..f08aaaf 100644 --- a/tests/dummy/app/app.js +++ b/tests/dummy/app/app.js @@ -6,7 +6,7 @@ import config from './config/environment'; const App = Application.extend({ modulePrefix: config.modulePrefix, podModulePrefix: config.podModulePrefix, - Resolver + Resolver, }); loadInitializers(App, config.modulePrefix); diff --git a/tests/dummy/app/router.js b/tests/dummy/app/router.js index d0bb009..8f6f459 100644 --- a/tests/dummy/app/router.js +++ b/tests/dummy/app/router.js @@ -3,10 +3,9 @@ import config from './config/environment'; const Router = EmberRouter.extend({ location: config.locationType, - rootURL: config.rootURL + rootURL: config.rootURL, }); -Router.map(function() { -}); +Router.map(function() {}); export default Router; diff --git a/tests/dummy/config/environment.js b/tests/dummy/config/environment.js index 182d3fc..d831480 100644 --- a/tests/dummy/config/environment.js +++ b/tests/dummy/config/environment.js @@ -13,14 +13,14 @@ module.exports = function(environment) { }, EXTEND_PROTOTYPES: { // Prevent Ember Data from overriding Date.parse. - Date: false - } + Date: false, + }, }, APP: { // Here you can pass flags/options to your application instance // when it is created - } + }, }; if (environment === 'development') { diff --git a/tests/dummy/config/targets.js b/tests/dummy/config/targets.js index 8ffae36..f143193 100644 --- a/tests/dummy/config/targets.js +++ b/tests/dummy/config/targets.js @@ -1,10 +1,6 @@ 'use strict'; -const browsers = [ - 'last 1 Chrome versions', - 'last 1 Firefox versions', - 'last 1 Safari versions' -]; +const browsers = ['last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions']; const isCI = !!process.env.CI; const isProduction = process.env.EMBER_ENV === 'production'; @@ -14,5 +10,5 @@ if (isCI || isProduction) { } module.exports = { - browsers + browsers, };