Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Static Analysis Tool] Prettier Tool #49

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

a-khaldi
Copy link
Contributor

@a-khaldi a-khaldi commented Oct 20, 2023

Prettier: Prettier is a tool that automatically adjusts JavaScript and TypeScript code to look consistent, making it easier to read and reducing minor issues during code reviews.

I did the following to install it onto my branch:
npm install --save-dev --save-exact prettier

and then I created an empty config file:
node --eval "fs.writeFileSync('.prettierrc','{}\n')"

I also created files such as .prettierignore (to show what files should NOT be formatted according to prettier) and prettierrc.json.

Screenshot 2023-10-22 at 9 37 26 AM Screenshot 2023-10-22 at 9 37 45 AM

In order to run the tool I used the following line in the command line:
npx prettier . --write

Screenshot 2023-10-22 at 10 00 21 AM Screenshot 2023-10-22 at 9 59 10 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant