cleanup: Define GObject accessors in camelCase
gjs is smart enough to match a propertyName getter/setter to the corresponding property-name GObject property, so use that and get rid of the eslint camelcase rule exceptions. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1611>
This commit is contained in:
@ -79,13 +79,11 @@ var MonitorConstraint = GObject.registerClass({
|
||||
this.notify('index');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
get work_area() {
|
||||
get workArea() {
|
||||
return this._workArea;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
set work_area(v) {
|
||||
set workArea(v) {
|
||||
if (v == this._workArea)
|
||||
return;
|
||||
this._workArea = v;
|
||||
|
Reference in New Issue
Block a user