-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[config] - instala prettier e configura rotina de pre commit
- Loading branch information
1 parent
1c507ec
commit b78573c
Showing
28 changed files
with
384 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/coverage/* | ||
/build/* | ||
/node-modules/* | ||
/.github/* | ||
/.husky/* | ||
/dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
echo '🏗️👷 Estilizando, testando e buildando seu código antes de commitar . . .\n' | ||
|
||
# Check Prettier standards | ||
npm run check-format || | ||
( | ||
echo '\n🤢🤮 Parece haver um problema de estilo 🤢🤮 | ||
Checagem do Prettier falhou... Rode um npm run format, adicione as alterações e tente novamente.\n'; | ||
false; | ||
) | ||
|
||
# Check ESLint Standards | ||
npm run lint || | ||
( | ||
echo '\n😤🏀👋😤 Daqui não passa! 😤🏀👋😤 | ||
Checagem do ESLint falhou... Faça as alterações listadas acima e tente novamente.\n' | ||
false; | ||
) | ||
|
||
# If everything passes... Now we can commit | ||
echo '\n🤔🤔🤔🤔... Tudo bem... Parece que o código tá legal... Vamos tentar buildar. 🤔🤔🤔🤔\n' | ||
|
||
npm run build || | ||
( | ||
echo '\n❌👷🔨❌ Seu build falhou!!!! ❌👷🔨❌ | ||
Falha ao buildar o React: entenda o que aconteceu vendo os erros acima.\n' | ||
false; | ||
) | ||
|
||
# If everything passes... Now we can commit | ||
echo '\n\n✅✅✅✅ Você ganhou dessa vez, commitando agora. ✅✅✅✅\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
.github | ||
*.md | ||
coverage | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"endOfLine": "lf", | ||
"semi": true, | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.