Skip to content

Commit 60da329

Browse files
committed
Fix lint error
1 parent 4c2ad67 commit 60da329

File tree

8 files changed

+35
-37
lines changed

8 files changed

+35
-37
lines changed

app/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import Application from '@ember/application';
2-
import Resolver from './resolver';
32
import loadInitializers from 'ember-load-initializers';
3+
import Resolver from './resolver';
44
import config from './config/environment';
55

66
const App = Application.extend({
77
modulePrefix: config.modulePrefix,
88
podModulePrefix: config.podModulePrefix,
9-
Resolver
9+
Resolver,
1010
});
1111

1212
loadInitializers(App, config.modulePrefix);

app/initializers/showdown.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
/* global showdown */
22
export function initialize() {
33
showdown.setFlavor('github');
4-
showdown.extension("issueWrap", function() {
5-
return [{
6-
type: 'html',
7-
regex: '<pre>',
8-
replace: '<pre style="white-space: pre-wrap">'
9-
},
10-
{
11-
type: 'html',
12-
regex: '<p>',
13-
replace: '<p style="overflow-wrap: break-word;">'
14-
}];
15-
});
4+
showdown.extension('issueWrap', () => [{
5+
type: 'html',
6+
regex: '<pre>',
7+
replace: '<pre style="white-space: pre-wrap">',
8+
},
9+
{
10+
type: 'html',
11+
regex: '<p>',
12+
replace: '<p style="overflow-wrap: break-word;">',
13+
}]);
1614
}
1715

1816
export default {
1917
name: 'showdown',
20-
initialize
18+
initialize,
2119
};

config/environment.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
module.exports = function(environment) {
4-
let ENV = {
3+
module.exports = function environmentConfig(environment) {
4+
const ENV = {
55
APP: {
66
// Here you can pass flags/options to your application instance
77
// when it is created
@@ -13,18 +13,18 @@ module.exports = function(environment) {
1313
},
1414
EXTEND_PROTOTYPES: {
1515
// Prevent Ember Data from overriding Date.parse.
16-
Date: false
16+
Date: false,
1717
},
1818
// LOG_STACKTRACE_ON_DEPRECATION: false,
1919
},
20-
environment: environment,
20+
environment,
2121
locationType: 'auto',
2222

2323
modulePrefix: 'git-task-list',
2424
rootURL: '/',
2525
showdown: {
26-
simplifiedAutoLink: true
27-
}
26+
simplifiedAutoLink: true,
27+
},
2828
};
2929

3030
if (environment === 'development') {
@@ -49,7 +49,7 @@ module.exports = function(environment) {
4949

5050
if (environment === 'production') {
5151
ENV.locationType = 'hash';
52-
ENV.rootURL = ENV.rootURL + (process.env.PATH_PREFIX || '');
52+
ENV.rootURL += (process.env.PATH_PREFIX || '');
5353
}
5454

5555
return ENV;

config/targets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const browsers = [
44
'last 1 Chrome versions',
55
'last 1 Firefox versions',
6-
'last 1 Safari versions'
6+
'last 1 Safari versions',
77
];
88

99
const isCI = !!process.env.CI;
@@ -14,5 +14,5 @@ if (isCI || isProduction) {
1414
}
1515

1616
module.exports = {
17-
browsers
17+
browsers,
1818
};

ember-cli-build.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
44

5-
const environment = process.env.EMBER_ENV;
6-
const isTesting = environment === 'test';
7-
85
module.exports = function emberCliBuild(defaults) {
96
const app = new EmberApp(defaults, {
107
// Add options here

testem.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
2+
'use strict';
3+
14
module.exports = {
25
test_page: 'tests/index.html?hidepassed',
36
disable_watching: true,
47
launch_in_ci: [
5-
'Chrome'
8+
'Chrome',
69
],
710
launch_in_dev: [
8-
'Chrome'
11+
'Chrome',
912
],
1013
browser_args: {
1114
Chrome: {
@@ -17,8 +20,8 @@ module.exports = {
1720
'--disable-gpu',
1821
'--headless',
1922
'--remote-debugging-port=0',
20-
'--window-size=1440,900'
21-
].filter(Boolean)
22-
}
23-
}
23+
'--window-size=1440,900',
24+
].filter(Boolean),
25+
},
26+
},
2427
};

tests/test-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import Application from '../app';
2-
import config from '../config/environment';
31
import { setApplication } from '@ember/test-helpers';
42
import { start } from 'ember-qunit';
3+
import Application from '../app';
4+
import config from '../config/environment';
55

66
setApplication(Application.create(config.APP));
77

tests/unit/controllers/application-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ moduleFor('controller:application', 'Unit | Controller | application', {
66
});
77

88
// Replace this with your real tests.
9-
test('it exists', function(assert) {
10-
let controller = this.subject();
9+
test('it exists', function applicationControllerTest(assert) {
10+
const controller = this.subject();
1111
assert.ok(controller);
1212
});

0 commit comments

Comments
 (0)