소스 검색

[ADD] cfworker eslint

zjcqoo 6 년 전
부모
커밋
c919451a6b
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  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"
+  }
+}