ESLint: Be explicit with Ember Data attribute types

no issue
- https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/no-empty-attrs.md
This commit is contained in:
Kevin Ansfield 2018-01-11 09:29:42 +00:00
parent fda94fedab
commit b6ae61c22f
4 changed files with 7 additions and 7 deletions

View File

@ -101,7 +101,7 @@ export default Model.extend(Comparable, ValidationEngine, {
status: attr('string', {defaultValue: 'draft'}),
title: attr('string', {defaultValue: ''}),
updatedAtUTC: attr('moment-utc'),
updatedBy: attr(),
updatedBy: attr('number'),
url: attr('string'),
uuid: attr('string'),

View File

@ -8,8 +8,8 @@ export default Model.extend({
description: attr('string'),
createdAtUTC: attr('moment-utc'),
updatedAtUTC: attr('moment-utc'),
createdBy: attr(),
updatedBy: attr(),
createdBy: attr('number'),
updatedBy: attr('number'),
lowerCaseName: computed('name', function () {
return this.get('name').toLocaleLowerCase();

View File

@ -11,15 +11,15 @@ export default Model.extend(ValidationEngine, {
name: attr('string'),
slug: attr('string'),
description: attr('string'),
parent: attr(),
parent: attr('string'), // unused
metaTitle: attr('string'),
metaDescription: attr('string'),
featureImage: attr('string'),
visibility: attr('string', {defaultValue: 'public'}),
createdAtUTC: attr('moment-utc'),
updatedAtUTC: attr('moment-utc'),
createdBy: attr(),
updatedBy: attr(),
createdBy: attr('number'),
updatedBy: attr('number'),
count: attr('raw'),
isInternal: equal('visibility', 'internal'),

View File

@ -17,7 +17,7 @@ export default Factory.extend({
status: 'active',
tour: null,
updatedAt: '2015-11-02T16:12:05.000Z',
updatedBy: '2015-09-02T13:41:50.000Z',
updatedBy: '1',
website: 'http://example.com',
roles() { return []; }
});