style: Disable camelcase rule for GObject properties

For GObject properties, we follow the convention of all-lowercase,
dash-separated names. Those translate to underscores in getters/setters,
so exempt them from the newly added "camelcase" rule.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/627
This commit is contained in:
Florian Müllner
2019-02-01 01:16:20 +01:00
parent e357559582
commit 1e13f32cea
6 changed files with 16 additions and 0 deletions

View File

@ -662,6 +662,7 @@ class AppIcon extends St.BoxLayout {
this.add(this.label, { x_fill: false });
}
// eslint-disable-next-line camelcase
set_size(size) {
this.icon = this.app.create_icon_texture(size);
this._iconBin.child = this.icon;