Skip to content

Commit

Permalink
CU-86a0edtew - Setup eslint/prettier and Git hooks on merged tstools …
Browse files Browse the repository at this point in the history
…repository
  • Loading branch information
Leonardo de Jesus Diz Conde committed Aug 31, 2023
1 parent 8b59c4e commit c01b497
Show file tree
Hide file tree
Showing 33 changed files with 3,612 additions and 807 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# Get the values from workflow outputs
hasPublishedDappkit="${{ steps.dappkit.outputs.type }}"
hasPublishedDappkitType="${{ steps.dappkit_type.outputs.type }}"
if [[ ! "$hasPublishedDappkitType" && ! "$hasPublishedDappkit" ]]; then
# Both packages failed to publish
echo "::error ::NPM release error: Both packages failed to publish. Please review the package.json version and try again."
Expand Down
30 changes: 30 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#-------------------------------------------------------------------------------------------------------------------
# Keep this section in sync with .gitignore
#-------------------------------------------------------------------------------------------------------------------

👋 (copy + paste your .gitignore file contents here) 👋

#-------------------------------------------------------------------------------------------------------------------
# Prettier-specific overrides
#-------------------------------------------------------------------------------------------------------------------

# Rush files
common/changes/
common/scripts/
common/config/
CHANGELOG.*

# Package manager files
pnpm-lock.yaml
yarn.lock
package-lock.json
shrinkwrap.json

# Build outputs
dist/
lib/
docs/

# Prettier reformats code blocks inside Markdown, which affects rendered output
*.md
*.html
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2
}
36 changes: 36 additions & 0 deletions common/autoinstallers/rush-format/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions common/autoinstallers/rush-format/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "rush-format",
"version": "1.0.0",
"private": true,
"scripts": {
"update-script": "rush update-autoinstaller --name rush-format"
},
"dependencies": {
"prettier": "^3.0.3"
}
}
15 changes: 15 additions & 0 deletions common/autoinstallers/rush-format/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c01b497

Please sign in to comment.