瀏覽代碼

Update .eslintrc.json

Garrett Johnson 3 年之前
父節點
當前提交
b9fcdb49d4
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      .eslintrc.json

+ 13 - 1
.eslintrc.json

@@ -8,6 +8,18 @@
 	"plugins": [ "jest" ],
 
 	"rules": {
-		"no-unused-vars": [ 1, { "args": "none" } ]
+		"no-unused-vars": [ 1, { "args": "none" } ],
+		"no-throw-literal": [
+			"error"
+		],
+		"prefer-const": [
+			"error",
+			{
+				"destructuring": "any",
+				"ignoreReadBeforeAssign": false
+			}
+		],
+		"quotes": [ "error", "single" ],
+		"indent": [ "error", "tab" ]
 	}
 }