Commit 6e63edd7 authored by Florian Müllner's avatar Florian Müllner

lint: Sync with gjs

Some of our custom rules have been upstreamed[0], update the
rule sets accordingly.

[0] https://gitlab.gnome.org/GNOME/gjs/merge_requests/272
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/59
parent 55ecd393
......@@ -12,6 +12,7 @@
"error",
"never"
],
"arrow-spacing": "error",
"brace-style": "error",
"comma-spacing": [
"error",
......@@ -24,6 +25,9 @@
"error",
4,
{
"ignoredNodes": [
"CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child"
],
"MemberExpression": "off"
}
],
......@@ -57,6 +61,19 @@
"allow": ["!!"]
}
],
"no-restricted-properties": [
"error",
{
"object": "Lang",
"property": "bind",
"message": "Use arrow notation or Function.prototype.bind()"
},
{
"object": "Lang",
"property": "Class",
"message": "Use ES6 classes"
}
],
"nonblock-statement-body-position": [
"error",
"below"
......
{
"rules": {
"arrow-spacing": "error",
"camelcase": [
"error",
{
......@@ -8,29 +7,6 @@
"allow": ["^vfunc_"]
}
],
"indent": [
"error",
4,
{
"ignoredNodes": [
"CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child"
],
"MemberExpression": "off"
}
],
"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",
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment