mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
DEV: Ember linting - disallow Ember.* variable usage (#8782)
This commit is contained in:

committed by
GitHub

parent
88779d849f
commit
499b57a9ed
@ -1,3 +1,5 @@
|
||||
import { isEmpty } from "@ember/utils";
|
||||
|
||||
function checkSelectKitIsNotExpanded(selector) {
|
||||
if (find(selector).hasClass("is-expanded")) {
|
||||
// eslint-disable-next-line no-console
|
||||
@ -90,7 +92,7 @@ function rowHelper(row) {
|
||||
},
|
||||
value() {
|
||||
const value = row.attr("data-value");
|
||||
return Ember.isEmpty(value) ? null : value;
|
||||
return isEmpty(value) ? null : value;
|
||||
},
|
||||
exists() {
|
||||
return exists(row);
|
||||
@ -105,7 +107,7 @@ function headerHelper(header) {
|
||||
return {
|
||||
value() {
|
||||
const value = header.attr("data-value");
|
||||
return Ember.isEmpty(value) ? null : value;
|
||||
return isEmpty(value) ? null : value;
|
||||
},
|
||||
name() {
|
||||
return header.attr("data-name");
|
||||
|
Reference in New Issue
Block a user