mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
lint: Enforce consistent return
While all javascript functions have a return value - either an explicit one from a return statement, or an implicit "undefined" - mixing both in the same function is almost certainly an oversight, and more often than not a bug. Enable the corresponding eslint rule to catch those errors. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/635
This commit is contained in:
parent
1117f4760c
commit
2a041e9d8d
1 changed files with 1 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
"allow": ["^vfunc_", "^on_"]
|
"allow": ["^vfunc_", "^on_"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"consistent-return": "error",
|
||||||
"key-spacing": [
|
"key-spacing": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue