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:
Florian Müllner
2019-02-12 11:09:02 +01:00
parent d5a1044244
commit b50074fd37

View File

@@ -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",
{