Skip to content

Commit dd95ed2

Browse files
author
Chris Garrett
committed
convert option default to single quote
1 parent 06404b4 commit dd95ed2

28 files changed

Lines changed: 222 additions & 232 deletions

test/fixtures/input/app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import config from './config/environment';
66
const App = Application.extend({
77
modulePrefix: config.modulePrefix,
88
podModulePrefix: config.podModulePrefix,
9-
Resolver
9+
Resolver,
1010
});
1111

1212
loadInitializers(App, config.modulePrefix);
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import Component from "@ember/component";
2-
import { computed } from "@ember/object";
1+
import Component from '@ember/component';
2+
import { computed } from '@ember/object';
33

44
function fullNameMacro() {
5-
return computed("firstName", "lastName", function() {
5+
return computed('firstName', 'lastName', function() {
66
return `${this.firstName} ${this.lastName}`;
77
});
88
}
99

1010
export default Component.extend({
11-
fullName: fullNameMacro()
11+
fullName: fullNameMacro(),
1212
});

test/fixtures/input/app/router.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ import config from './config/environment';
33

44
const Router = EmberRouter.extend({
55
location: config.locationType,
6-
rootURL: config.rootURL
6+
rootURL: config.rootURL,
77
});
88

9-
Router.map(function() {
10-
});
9+
Router.map(function() {});
1110

1211
export default Router;

test/fixtures/output/app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import classic from "ember-classic-decorator";
1+
import classic from 'ember-classic-decorator';
22
import Application from '@ember/application';
33
import Resolver from './resolver';
44
import loadInitializers from 'ember-load-initializers';

test/fixtures/output/app/components/test-component.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import classic from "ember-classic-decorator";
2-
import { computed } from "@ember/object";
3-
import Component from "@ember/component";
1+
import classic from 'ember-classic-decorator';
2+
import { computed } from '@ember/object';
3+
import Component from '@ember/component';
44

55
function fullNameMacro() {
6-
return computed("firstName", "lastName", function() {
6+
return computed('firstName', 'lastName', function() {
77
return `${this.firstName} ${this.lastName}`;
88
});
99
}

test/fixtures/output/app/router.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import classic from "ember-classic-decorator";
1+
import classic from 'ember-classic-decorator';
22
import EmberRouter from '@ember/routing/router';
33
import config from './config/environment';
44

@@ -8,7 +8,6 @@ class RouterRouter extends EmberRouter {
88
rootURL = config.rootURL;
99
}
1010

11-
RouterRouter.map(function() {
12-
});
11+
RouterRouter.map(function() {});
1312

1413
export default RouterRouter;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import classic from "ember-classic-decorator";
2-
import Component from "@ember/component";
1+
import classic from 'ember-classic-decorator';
2+
import Component from '@ember/component';
33

44
@classic
55
export default class FireSauceComponent extends Component {}

transforms/ember-object/__testfixtures__/action-invalid.input.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,43 @@ const Foo = EmberObject.extend({
22
actions: {
33
bar() {
44
this._super(...arguments);
5-
this.get("bar")();
6-
}
7-
}
5+
this.get('bar')();
6+
},
7+
},
88
});
99

1010
const Foo = EmberObject.extend({
1111
actions: {
1212
biz() {
1313
this._super(...arguments);
14-
get(this, "biz")();
15-
}
16-
}
14+
get(this, 'biz')();
15+
},
16+
},
1717
});
1818

1919
const Foo = EmberObject.extend({
2020
actions: {
2121
baz() {
2222
this._super(...arguments);
23-
tryInvoke(this, "baz");
24-
}
25-
}
23+
tryInvoke(this, 'baz');
24+
},
25+
},
2626
});
2727

2828
const Foo = EmberObject.extend({
2929
actions: {
3030
sendBaz() {
3131
this._super(...arguments);
32-
this.send("sendBaz");
33-
}
34-
}
32+
this.send('sendBaz');
33+
},
34+
},
3535
});
3636

3737
const Foo = EmberObject.extend({
3838
actions: {
3939
thisBaz() {
4040
this._super(...arguments);
4141
this.thisBaz();
42-
}
43-
}
42+
},
43+
},
4444
});

transforms/ember-object/__testfixtures__/action-invalid.output.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,43 @@ const Foo = EmberObject.extend({
22
actions: {
33
bar() {
44
this._super(...arguments);
5-
this.get("bar")();
6-
}
7-
}
5+
this.get('bar')();
6+
},
7+
},
88
});
99

1010
const Foo = EmberObject.extend({
1111
actions: {
1212
biz() {
1313
this._super(...arguments);
14-
get(this, "biz")();
15-
}
16-
}
14+
get(this, 'biz')();
15+
},
16+
},
1717
});
1818

1919
const Foo = EmberObject.extend({
2020
actions: {
2121
baz() {
2222
this._super(...arguments);
23-
tryInvoke(this, "baz");
24-
}
25-
}
23+
tryInvoke(this, 'baz');
24+
},
25+
},
2626
});
2727

2828
const Foo = EmberObject.extend({
2929
actions: {
3030
sendBaz() {
3131
this._super(...arguments);
32-
this.send("sendBaz");
33-
}
34-
}
32+
this.send('sendBaz');
33+
},
34+
},
3535
});
3636

3737
const Foo = EmberObject.extend({
3838
actions: {
3939
thisBaz() {
4040
this._super(...arguments);
4141
this.thisBaz();
42-
}
43-
}
42+
},
43+
},
4444
});

transforms/ember-object/__testfixtures__/basic.input.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const Foo = Test.extend(MyMixin, {
55
/**
66
* Property comments
77
*/
8-
prop: "defaultValue",
8+
prop: 'defaultValue',
99
boolProp: true,
1010
numProp: 123,
11-
[MY_VAL]: "val",
11+
[MY_VAL]: 'val',
1212
queryParams: {},
1313
someVal,
1414

@@ -31,7 +31,7 @@ const Foo = Test.extend(MyMixin, {
3131

3232
anotherMethod() {
3333
this._super(...arguments);
34-
}
34+
},
3535
});
3636

3737
const Foo = EmberObject.extend(MixinA, MixinB);

0 commit comments

Comments
 (0)