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:
@ -117,13 +117,11 @@ var ModemBase = GObject.registerClass({
|
||||
this._signalQuality = 0;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
get operator_name() {
|
||||
get operatorName() {
|
||||
return this._operatorName;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
get signal_quality() {
|
||||
get signalQuality() {
|
||||
return this._signalQuality;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user