Skip to content

Commit 360d9f2

Browse files
committed
eslint: re-enable ember/no-get rule
1 parent 35364c8 commit 360d9f2

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ module.exports = {
1919
'no-multiple-empty-lines': [2, { max: 1 }],
2020

2121
'ember/no-jquery': 'off',
22-
'ember/no-get': 'off',
2322
'ember/no-classic-classes': 'off',
2423
'ember/no-classic-components': 'off',
2524
'ember/require-tagless-components': 'off',

addon/components/input-wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ export default Component.extend({
1010
classNameBindings: ['errorful', 'hasHelp'],
1111

1212
errorful: computed('error', function () {
13-
if (this.get('error') != null) {
13+
if (this.error !== null) {
1414
return 'upf-input-container--errorful';
1515
}
1616
return '';
1717
}),
1818

1919
hasHelp: computed('help', function () {
20-
if (this.get('help') != null) {
20+
if (this.help !== null) {
2121
return 'upf-input-container--has-help';
2222
}
2323
return '';

addon/components/upf-progress.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export default Component.extend({
99
colorClass: null,
1010

1111
maxWidthStyle: computed('value', function () {
12-
return `max-width: ${this.get('value')}%`;
12+
return `max-width: ${this.value}%`;
1313
})
1414
});

0 commit comments

Comments
 (0)