DEV: fix linting

This commit is contained in:
Daniel Waterworth 2019-11-20 14:03:45 +00:00
parent d541183906
commit 3b5c214ac3
2 changed files with 11 additions and 3 deletions

View File

@ -25,7 +25,9 @@ export default Component.extend({
this, this,
key, key,
computed("deprecatedArgs", () => { computed("deprecatedArgs", () => {
deprecated(`The ${key} property is deprecated, but is being used in ${this.layoutName}`); deprecated(
`The ${key} property is deprecated, but is being used in ${this.layoutName}`
);
return (this.deprecatedArgs || {})[key]; return (this.deprecatedArgs || {})[key];
}) })

View File

@ -30,7 +30,10 @@ import Component from "@ember/component";
The list of disabled plugins is returned via the `Site` singleton. The list of disabled plugins is returned via the `Site` singleton.
**/ **/
import { renderedConnectorsFor, buildArgsWithDeprecations } from "discourse/lib/plugin-connectors"; import {
renderedConnectorsFor,
buildArgsWithDeprecations
} from "discourse/lib/plugin-connectors";
export default Component.extend({ export default Component.extend({
tagName: "span", tagName: "span",
@ -46,7 +49,10 @@ export default Component.extend({
this._super(...arguments); this._super(...arguments);
const name = this.name; const name = this.name;
if (name) { if (name) {
const args = buildArgsWithDeprecations(this.args || {}, this.deprecatedArgs || {}); const args = buildArgsWithDeprecations(
this.args || {},
this.deprecatedArgs || {}
);
this.set("connectors", renderedConnectorsFor(name, args, this)); this.set("connectors", renderedConnectorsFor(name, args, this));
} }
} }