[gnome-shell-extensions/wip/fmuellner/sync-lint] lint: Sync with gjs



commit 6e63edd7378874048e9e8870cd5e2616fde9f88b
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Mar 1 02:41:12 2019 +0100

    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

 lint/eslintrc-gjs.json   | 17 +++++++++++++++++
 lint/eslintrc-shell.json | 24 ------------------------
 2 files changed, 17 insertions(+), 24 deletions(-)
---
diff --git a/lint/eslintrc-gjs.json b/lint/eslintrc-gjs.json
index b467299..74cadf2 100644
--- a/lint/eslintrc-gjs.json
+++ b/lint/eslintrc-gjs.json
@@ -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"
diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json
index eb96266..fc6f581 100644
--- a/lint/eslintrc-shell.json
+++ b/lint/eslintrc-shell.json
@@ -1,6 +1,5 @@
 {
     "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",
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]