File tree Expand file tree Collapse file tree 8 files changed +8
-3
lines changed Expand file tree Collapse file tree 8 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ module.exports = {
1111 } ,
1212 rules : {
1313 'prettier/prettier' : 'error' ,
14- 'ember/no-observers' : 'warn' ,
15- 'ember/no-new-mixins' : 'warn' ,
16- 'ember/require-return-from-computed' : 'warn' ,
1714 } ,
1815 overrides : [
1916 // node files
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export default Component.extend({
1212 return this . get ( 'badge.attributes.status' ) === 'none' || ! this . get ( 'badge.attributes.status' ) ;
1313 } ) ,
1414 status : alias ( 'badge.attributes.status' ) ,
15+ // eslint-disable-next-line ember/require-return-from-computed
1516 color : computed ( 'badge' , function ( ) {
1617 switch ( this . get ( 'badge.attributes.status' ) ) {
1718 case 'actively-developed' :
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ export default Controller.extend({
173173 } ,
174174 } ,
175175
176+ // eslint-disable-next-line ember/no-observers
176177 report : observer ( 'crate.readme' , function ( ) {
177178 if ( typeof document === 'undefined' ) {
178179 return ;
Original file line number Diff line number Diff line change 11import Mixin from '@ember/object/mixin' ;
22import { inject as service } from '@ember/service' ;
33
4+ // eslint-disable-next-line ember/no-new-mixins
45export default Mixin . create ( {
56 flashMessages : service ( ) ,
67 session : service ( ) ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { computed } from '@ember/object';
44
55const VIEWABLE_PAGES = 9 ;
66
7+ // eslint-disable-next-line ember/no-new-mixins
78export default Mixin . create ( {
89 // Gives page numbers to the surrounding 9 pages.
910 pages : computed ( 'currentPage' , 'availablePages' , function ( ) {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { on } from '@ember/object/evented';
44import { bind , later } from '@ember/runloop' ;
55import $ from 'jquery' ;
66
7+ // eslint-disable-next-line ember/no-new-mixins
78export default Mixin . create ( {
89 init ( ) {
910 this . _super ( ...arguments ) ;
@@ -49,6 +50,7 @@ export default Mixin.create({
4950
5051 manageClosingEvents : on (
5152 'didInsertElement' ,
53+ // eslint-disable-next-line ember/no-observers
5254 observer ( 'dropdownExpanded' , function ( ) {
5355 let namespace = this . closingEventNamespace ;
5456 let clickEventName = `click.${ namespace } ` ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export default Route.extend({
1111
1212 flashMessages : service ( ) ,
1313
14+ // eslint-disable-next-line ember/no-observers
1415 refreshAfterLogin : observer ( 'session.isLoggedIn' , function ( ) {
1516 this . refresh ( ) ;
1617 } ) ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import PaginationMixin from '../../../mixins/pagination';
66module ( 'Unit | Mixin | pagination' , function ( ) {
77 // Replace this with your real tests.
88 test ( 'it works' , function ( assert ) {
9+ // eslint-disable-next-line ember/no-new-mixins
910 let PaginationObject = EmberObject . extend ( PaginationMixin ) ;
1011 let subject = PaginationObject . create ( ) ;
1112 assert . ok ( subject ) ;
You can’t perform that action at this time.
0 commit comments