Quellcode durchsuchen

[ADD] cfworker eslint

zjcqoo vor 6 Jahren
Ursprung
Commit
c919451a6b
1 geänderte Dateien mit 22 neuen und 0 gelöschten Zeilen
  1. 22 0
      cf-worker/.eslintrc.json

+ 22 - 0
cf-worker/.eslintrc.json

@@ -0,0 +1,22 @@
+{
+  "env": {
+    "browser": true,
+    "es6": true
+  },
+  "extends": "eslint:recommended",
+  "globals": {
+    "Atomics": "readonly",
+    "SharedArrayBuffer": "readonly"
+  },
+  "parserOptions": {
+    "ecmaVersion": 2017,
+    "sourceType": "module"
+  },
+  "rules": {
+    "no-console": "warn",
+    "no-empty": "warn",
+    "no-unused-vars": "warn",
+    "no-debugger": "warn",
+    "no-constant-condition": "warn"
+  }
+}