Browse Source

[ADD] cfworker eslint

zjcqoo 6 years ago
parent
commit
c919451a6b
1 changed files with 22 additions and 0 deletions
  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"
+  }
+}