浏览代码

add eslint root, single quotes rule

Garrett Johnson 4 年之前
父节点
当前提交
8382314c7f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      package.json

+ 5 - 0
package.json

@@ -27,6 +27,7 @@
     "test": "test"
   },
   "eslintConfig": {
+    "root": true,
     "parser": "@typescript-eslint/parser",
     "extends": "mdcs",
     "plugins": [
@@ -44,6 +45,10 @@
           "SwitchCase": 1
         }
       ],
+      "quotes": [
+        "error",
+        "single"
+      ],
       "prefer-const": [
         "error",
         {