mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
e357559582
commit
1e13f32cea
6 changed files with 16 additions and 0 deletions
|
|
@ -81,10 +81,12 @@ var MonitorConstraint = GObject.registerClass({
|
|||
this.notify('index');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
get work_area() {
|
||||
return this._workArea;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
set work_area(v) {
|
||||
if (v == this._workArea)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue