Browse Source

chore: enable proseWrap only for Markdown

chore: delete default Prettier rules
Paul Razvan Berg 4 months ago
parent
commit
f92e2e2117
2 changed files with 4 additions and 3 deletions
  1. 1 2
      .github/workflows/use-template.yml
  2. 3 1
      .prettierrc.yml

+ 1 - 2
.github/workflows/use-template.yml

@@ -19,8 +19,7 @@ jobs:
       - name: "Update package.json"
         env:
           GITHUB_REPOSITORY_DESCRIPTION: ${{ github.event.repository.description }}
-        run:
-          ./.github/scripts/rename.sh "$GITHUB_REPOSITORY" "$GITHUB_REPOSITORY_OWNER" "$GITHUB_REPOSITORY_DESCRIPTION"
+        run: ./.github/scripts/rename.sh "$GITHUB_REPOSITORY" "$GITHUB_REPOSITORY_OWNER" "$GITHUB_REPOSITORY_DESCRIPTION"
 
       - name: "Add rename summary"
         run: |

+ 3 - 1
.prettierrc.yml

@@ -2,10 +2,12 @@ plugins:
   - "@trivago/prettier-plugin-sort-imports"
   - "prettier-plugin-solidity"
 printWidth: 120
-proseWrap: "always"
 trailingComma: "all"
 
 overrides:
+  - files: "*.md"
+    options:
+      proseWrap: "always"
   - files: "*.sol"
     options:
       compiler: "0.8.17"