Quellcode durchsuchen

chore: nest some prettier rules under ".ts" overrides

Paul Razvan Berg vor 3 Jahren
Ursprung
Commit
9188454fe9
2 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6 4
      .prettierrc.yml
  2. 0 2
      .solhint.json

+ 6 - 4
.prettierrc.yml

@@ -1,10 +1,6 @@
 arrowParens: avoid
 bracketSpacing: true
 endOfLine: auto
-importOrder: ["<THIRD_PARTY_MODULES>", "^[./]"]
-importOrderParserPlugins: ["typescript"]
-importOrderSeparation: true
-importOrderSortSpecifiers: true
 printWidth: 120
 singleQuote: false
 tabWidth: 2
@@ -15,3 +11,9 @@ overrides:
     options:
       compiler: "0.8.15"
       tabWidth: 4
+  - files: "*.ts"
+    options:
+      importOrder: ["<THIRD_PARTY_MODULES>", "^[./]"]
+      importOrderParserPlugins: ["typescript"]
+      importOrderSeparation: true
+      importOrderSortSpecifiers: true

+ 0 - 2
.solhint.json

@@ -4,8 +4,6 @@
   "rules": {
     "code-complexity": ["error", 8],
     "compiler-version": ["error", ">=0.8.4"],
-    "const-name-snakecase": "off",
-    "constructor-syntax": "error",
     "func-visibility": ["error", { "ignoreConstructors": true }],
     "max-line-length": ["error", 120],
     "not-rely-on-time": "off",