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 = {
11
11
} ,
12
12
rules : {
13
13
'prettier/prettier' : 'error' ,
14
- 'ember/no-observers' : 'warn' ,
15
- 'ember/no-new-mixins' : 'warn' ,
16
- 'ember/require-return-from-computed' : 'warn' ,
17
14
} ,
18
15
overrides : [
19
16
// node files
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export default Component.extend({
12
12
return this . get ( 'badge.attributes.status' ) === 'none' || ! this . get ( 'badge.attributes.status' ) ;
13
13
} ) ,
14
14
status : alias ( 'badge.attributes.status' ) ,
15
+ // eslint-disable-next-line ember/require-return-from-computed
15
16
color : computed ( 'badge' , function ( ) {
16
17
switch ( this . get ( 'badge.attributes.status' ) ) {
17
18
case 'actively-developed' :
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ export default Controller.extend({
173
173
} ,
174
174
} ,
175
175
176
+ // eslint-disable-next-line ember/no-observers
176
177
report : observer ( 'crate.readme' , function ( ) {
177
178
if ( typeof document === 'undefined' ) {
178
179
return ;
Original file line number Diff line number Diff line change 1
1
import Mixin from '@ember/object/mixin' ;
2
2
import { inject as service } from '@ember/service' ;
3
3
4
+ // eslint-disable-next-line ember/no-new-mixins
4
5
export default Mixin . create ( {
5
6
flashMessages : service ( ) ,
6
7
session : service ( ) ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { computed } from '@ember/object';
4
4
5
5
const VIEWABLE_PAGES = 9 ;
6
6
7
+ // eslint-disable-next-line ember/no-new-mixins
7
8
export default Mixin . create ( {
8
9
// Gives page numbers to the surrounding 9 pages.
9
10
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';
4
4
import { bind , later } from '@ember/runloop' ;
5
5
import $ from 'jquery' ;
6
6
7
+ // eslint-disable-next-line ember/no-new-mixins
7
8
export default Mixin . create ( {
8
9
init ( ) {
9
10
this . _super ( ...arguments ) ;
@@ -49,6 +50,7 @@ export default Mixin.create({
49
50
50
51
manageClosingEvents : on (
51
52
'didInsertElement' ,
53
+ // eslint-disable-next-line ember/no-observers
52
54
observer ( 'dropdownExpanded' , function ( ) {
53
55
let namespace = this . closingEventNamespace ;
54
56
let clickEventName = `click.${ namespace } ` ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export default Route.extend({
11
11
12
12
flashMessages : service ( ) ,
13
13
14
+ // eslint-disable-next-line ember/no-observers
14
15
refreshAfterLogin : observer ( 'session.isLoggedIn' , function ( ) {
15
16
this . refresh ( ) ;
16
17
} ) ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import PaginationMixin from '../../../mixins/pagination';
6
6
module ( 'Unit | Mixin | pagination' , function ( ) {
7
7
// Replace this with your real tests.
8
8
test ( 'it works' , function ( assert ) {
9
+ // eslint-disable-next-line ember/no-new-mixins
9
10
let PaginationObject = EmberObject . extend ( PaginationMixin ) ;
10
11
let subject = PaginationObject . create ( ) ;
11
12
assert . ok ( subject ) ;
You can’t perform that action at this time.
0 commit comments