Skip to content

Instantly share code, notes, and snippets.

@xomaczar
xomaczar / .eslintrc.js
Created September 25, 2019 18:34 — forked from alexdiliberto/.eslintrc.js
Integrate Prettier with Ember
/*
'plugin:prettier/recommended' does the following:
extends: ['prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error'
}
*/
module.exports = {
@xomaczar
xomaczar / .eslintrc.js
Created September 25, 2019 18:34 — forked from alexdiliberto/.eslintrc.js
Integrate Prettier with Ember
/*
'plugin:prettier/recommended' does the following:
extends: ['prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error'
}
*/
module.exports = {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
isGTSUser: Ember.computed('userType', function() {
return this.get('user.userType') === 'gts_user'
}),
actions: {
@xomaczar
xomaczar / controllers.application.js
Last active March 2, 2017 15:05 — forked from samselikoff/controllers.application.js
ember-cli-mirage with restSerializer
import Ember from 'ember';
export default Ember.Controller.extend({
});