-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from UTDNebula/prettier-changes
Prettier changes & fixes
- Loading branch information
Showing
10 changed files
with
400 additions
and
291 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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
if [ $status == 0 ]; then | ||
echo "## Formatting Check passed 🥳" >>$GITHUB_STEP_SUMMARY | ||
echo "All files are formatted correctly" >>$GITHUB_STEP_SUMMARY | ||
exit 0 | ||
if [ $status == 'success' ]; then | ||
echo "## Formatting Check passed 🥳" >>$GITHUB_STEP_SUMMARY | ||
echo "All files are formatted correctly" >>$GITHUB_STEP_SUMMARY | ||
exit 0 | ||
else | ||
echo "## Formatting Check Failed 😅" >>$GITHUB_STEP_SUMMARY | ||
echo "Please run prettier using \`npx prettier . --write\` in order to format your code" >>$GITHUB_STEP_SUMMARY | ||
echo "### Files with bad formatting:" >>$GITHUB_STEP_SUMMARY | ||
for file in $files; do | ||
echo "- $file" >>$GITHUB_STEP_SUMMARY | ||
echo "::error file=$file::$file not formatted correctly" | ||
done | ||
exit 1 | ||
echo "## Formatting Check Failed 😅" >>$GITHUB_STEP_SUMMARY | ||
echo "Please run prettier using \`npx prettier . --write\` in order to format your code" >>$GITHUB_STEP_SUMMARY | ||
echo "### Files with bad formatting:" >>$GITHUB_STEP_SUMMARY | ||
for file in $files; do | ||
echo "- $file" >>$GITHUB_STEP_SUMMARY | ||
echo "::error file=$file::$file not formatted correctly" | ||
done | ||
exit 1 | ||
fi |
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 was deleted.
Oops, something went wrong.
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,16 @@ | ||
/** | ||
* @see https://prettier.io/docs/en/configuration.html | ||
* @type {import("prettier").Config} | ||
*/ | ||
const config = { | ||
printWidth: 80, | ||
semi: true, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'all', | ||
useTabs: false, | ||
bracketSameLine: false, | ||
plugins: ['prettier-plugin-tailwindcss'], | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.