lint: Restrict deprecated Lang API
Now that we moved to ES standard replacements, let's make sure they don't creep back in accidentally. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/57
This commit is contained in:
@@ -35,6 +35,19 @@
|
||||
"afterColon": true
|
||||
}
|
||||
],
|
||||
"no-restricted-properties": [
|
||||
"error",
|
||||
{
|
||||
"object": "Lang",
|
||||
"property": "bind",
|
||||
"message": "Please use arrow notation or Function.prototype.bind()."
|
||||
},
|
||||
{
|
||||
"object": "Lang",
|
||||
"property": "Class",
|
||||
"message": "Please use ES6 classes."
|
||||
}
|
||||
],
|
||||
"no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user