Browse Source

Move ESLint config

Lutz Roeder 4 years ago
parent
commit
605e731686
2 changed files with 24 additions and 24 deletions
  1. 0 24
      .eslintrc.json
  2. 24 0
      package.json

+ 0 - 24
.eslintrc.json

@@ -1,24 +0,0 @@
-{
-    "env": {
-        "es6": true,
-        "browser": true,
-        "node": true
-    },
-    "extends": "eslint:recommended",
-    "parserOptions": {
-        "ecmaVersion": 2015,
-        "sourceType": "module"
-    },
-    "rules": {
-        "brace-style": [ "error", "stroustrup", { "allowSingleLine": true } ],
-        "indent": [ "error", 4, { "SwitchCase": 1 } ],
-        "linebreak-style": "off",
-        "no-trailing-spaces": "error",
-        "prefer-const": ["error", { "destructuring": "all" } ],
-        "semi": [ "error", "always" ]
-    },
-    "globals": {
-        "flatbuffers": "readonly",
-        "protobuf": "readonly"
-    }
-}

+ 24 - 0
package.json

@@ -25,5 +25,29 @@
         "electron-notarize": "1.1.1",
         "eslint": "7.32.0",
         "@xmldom/xmldom": "0.7.5"
+    },
+    "eslintConfig": {
+        "env": {
+            "es6": true,
+            "browser": true,
+            "node": true
+        },
+        "extends": "eslint:recommended",
+        "parserOptions": {
+            "ecmaVersion": 2015,
+            "sourceType": "module"
+        },
+        "rules": {
+            "brace-style": [ "error", "stroustrup", { "allowSingleLine": true } ],
+            "indent": [ "error", 4, { "SwitchCase": 1 } ],
+            "linebreak-style": "off",
+            "no-trailing-spaces": "error",
+            "prefer-const": ["error", { "destructuring": "all" } ],
+            "semi": [ "error", "always" ]
+        },
+        "globals": {
+            "flatbuffers": "readonly",
+            "protobuf": "readonly"
+        }
     }
 }