瀏覽代碼

ignore type params in eslint indent rule

Alexander Rose 5 年之前
父節點
當前提交
53dbd1aedf
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      .eslintrc.json

+ 5 - 2
.eslintrc.json

@@ -16,7 +16,10 @@
         "@typescript-eslint/class-name-casing": "off",
         "@typescript-eslint/indent": [
             "warn",
-            4
+            4,
+            {
+                "ignoredNodes": ["TSTypeParameterInstantiation"]
+            }
         ],
         "@typescript-eslint/member-delimiter-style": [
             "off",
@@ -35,7 +38,7 @@
         "@typescript-eslint/quotes": [
             "warn",
             "single",
-            { 
+            {
                 "avoidEscape": true,
                 "allowTemplateLiterals": true
             }