Skip to content

Commit 4d1e48f

Browse files
authored
Merge pull request #217 from Bashamega/prettier
Prettier Integration
2 parents 3cdd6a6 + a4192c5 commit 4d1e48f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+753
-624
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
---
22
name: Custom issue template
33
about: Describe this issue template's purpose here.
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
9-
10-

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ updates:
44
- package-ecosystem: "github-actions"
55
directory: "/"
66
schedule:
7-
interval: "daily"
7+
interval: "daily"

.github/workflows/greetings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
issue-message: "Congratulations, ${{ github.actor }}! 🎉 Thank you for creating your first issue in GES. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work!"
16-
pr-message: "Great job, ${{ github.actor }}! 🎉 Thank you for submitting your first pull request to GES. Your contribution is valuable and we appreciate your efforts to improve our project. We'll review your changes and provide feedback as soon as possible. Keep up the great work!"
16+
pr-message: "Great job, ${{ github.actor }}! 🎉 Thank you for submitting your first pull request to GES. Your contribution is valuable and we appreciate your efforts to improve our project. We'll review your changes and provide feedback as soon as possible. Keep up the great work!"

.github/workflows/jsoncheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
- name: json-syntax-check
1515
uses: limitusus/json-syntax-check@v2
1616
with:
17-
pattern: "\\.json$"
17+
pattern: "\\.json$"

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 4,
3+
"useTabs": true
4+
}

CODE_OF_CONDUCT.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

contributing.md

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,71 @@
1-
### How to contribute.
1+
### How to contribute.
22

33
> There two ways you can contribute here
4-
- Direct from GitHub
5-
- Using a code editor(e.g vs code)
6-
74
5+
- Direct from GitHub
6+
- Using a code editor(e.g vs code)
87

98
First Fork the repository
109
![First Fork the repository](https://user-images.githubusercontent.com/88102392/226692241-59d8adad-78ac-437a-99bb-c1396b9e61cf.png)
1110

1211
# 1. Step Direct from GitHub
13-
- After forking the repository click on `go to file`
1412

15-
![Go to file](https://user-images.githubusercontent.com/88102392/226693809-e96e3bfd-c5c2-4463-871e-5bcc1f8ef9e3.png)
13+
- After forking the repository click on `go to file`
1614

17-
- Navigate to the `src/data/error.json`
15+
![Go to file](https://user-images.githubusercontent.com/88102392/226693809-e96e3bfd-c5c2-4463-871e-5bcc1f8ef9e3.png)
1816

19-
![image](https://user-images.githubusercontent.com/88102392/226694741-92c67935-db29-4340-ae15-8beaa2651b09.png)
20-
21-
- Add your code in the `error.json` file usng this format
17+
- Navigate to the `src/data/error.json`
2218

23-
```code
24-
{
25-
"type": "<Problem-type (e.g push, merge etc.)>",
26-
"title": "<Exact title of the error>",
27-
"description": "<Description of the error>",
28-
"solutions": "<Soliution of the error>"
29-
}
19+
![image](https://user-images.githubusercontent.com/88102392/226694741-92c67935-db29-4340-ae15-8beaa2651b09.png)
3020

31-
```
32-
- Now add a suitable commit message like this & create a new branch by clicking the second option. Click on Propose changes
21+
- Add your code in the `error.json` file usng this format
3322

34-
![image](https://user-images.githubusercontent.com/88102392/226696447-ca59da05-47e9-48d4-9b11-0821356d7dab.png)
23+
```code
24+
{
25+
"type": "<Problem-type (e.g push, merge etc.)>",
26+
"title": "<Exact title of the error>",
27+
"description": "<Description of the error>",
28+
"solutions": "<Soliution of the error>"
29+
}
30+
31+
```
3532

33+
- Now add a suitable commit message like this & create a new branch by clicking the second option. Click on Propose changes
3634

37-
- Click on `Compare & across forks `, Select `devvsakib/github-error-solve` in the base repository & also click on `Create Pull Request ` button.
35+
![image](https://user-images.githubusercontent.com/88102392/226696447-ca59da05-47e9-48d4-9b11-0821356d7dab.png)
3836

39-
![image](https://user-images.githubusercontent.com/88102392/226697482-95f5b392-bfae-4301-bd9d-eead9734045f.png)
37+
- Click on `Compare & across forks `, Select `devvsakib/github-error-solve` in the base repository & also click on `Create Pull Request ` button.
4038

41-
- Fill the description & add a best commit title & create Pull request
39+
![image](https://user-images.githubusercontent.com/88102392/226697482-95f5b392-bfae-4301-bd9d-eead9734045f.png)
4240

43-
![image](https://user-images.githubusercontent.com/88102392/226698872-e2254cf0-a794-4e76-8926-cd1aa3bbb804.png)
44-
45-
41+
- Fill the description & add a best commit title & create Pull request
4642

47-
That's it.
43+
![image](https://user-images.githubusercontent.com/88102392/226698872-e2254cf0-a794-4e76-8926-cd1aa3bbb804.png)
44+
45+
That's it.
46+
47+
# 2. Using a Code editor(e.g Vs code)
4848

49-
# 2. Using a Code editor(e.g Vs code)
50-
5149
Clone the repository.
50+
5251
```console
5352
git clone https://github.com/<Your-GitHub-Username>/github-error-solve.git
5453
```
54+
5555
- Navigate to folder
56+
5657
```console
5758
cd github-error-solve
5859
```
60+
5961
- Install node dependencies
62+
6063
```console
6164
yarn
6265
```
66+
6367
- Start the project
68+
6469
```console
6570
yarn run dev
6671
```
@@ -70,7 +75,9 @@ yarn run dev
7075
```console
7176
git checkout -b <name-of-your-branch>
7277
```
73-
- Add upstream command
78+
79+
- Add upstream command
80+
7481
```console
7582
git remote add upstream https://github.com/devvsakib/github-error-solve.git
7683
```
@@ -101,11 +108,11 @@ or
101108

102109
- The response should be like this
103110

104-
105111
```console
106112
On branch <name-of-your-branch>
107113
nothing to commit, working tree clean
108114
```
115+
109116
- Pushing your repository to GitHub.
110117

111118
```console
@@ -117,4 +124,4 @@ nothing to commit, working tree clean
117124
- Click on that button, this will load a new page, comparing the local branch in your forked repository against the main branch. Click the green `Create Pull Request` button.
118125

119126
**Troubleshoot**
120-
Facing problem starting the server or any other problem? Please let us know by raising an <a href="https://github.com/devvsakib/github-error-solve/issues/new">Issue</a>
127+
Facing problem starting the server or any other problem? Please let us know by raising an <a href="https://github.com/devvsakib/github-error-solve/issues/new">Issue</a>

index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>GitHub Error Solve - Opensource Projects</title>
8-
<link rel="shortcut icon" href="githubfavicon.png" type="image/x-icon">
8+
<link rel="shortcut icon" href="githubfavicon.png" type="image/x-icon" />
99
<link rel="stylesheet" href="./dist/output.css" />
1010
<link rel="preconnect" href="https://fonts.googleapis.com" />
1111
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1212
<link
1313
href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap"
1414
rel="stylesheet"
1515
/>
16-
<meta name="google-site-verification" content="%VITE_GOOGLE_SITE_VERIFICATION%" />
16+
<meta
17+
name="google-site-verification"
18+
content="%VITE_GOOGLE_SITE_VERIFICATION%"
19+
/>
1720
</head>
1821
<body>
1922
<div id="root"></div>
2023
<script type="module" src="/src/main.jsx"></script>
2124
</body>
22-
</html>
25+
</html>

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"dev": "vite --open",
88
"build": "vite build",
9-
"preview": "vite preview"
9+
"preview": "vite preview",
10+
"format": "prettier src/. --write"
1011
},
1112
"dependencies": {
1213
"@ant-design/icons": "^5.3.7",
@@ -15,7 +16,7 @@
1516
"antd": "^5.19.1",
1617
"axios": "^1.2.2",
1718
"framer-motion": "^10.8.3",
18-
"prettier": "^3.3.3",
19+
"prettier": "3.3.3",
1920
"react": "^18.2.0",
2021
"react-dom": "^18.2.0",
2122
"react-hot-toast": "^2.4.0",

postcss.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ module.exports = {
33
tailwindcss: {},
44
autoprefixer: {},
55
},
6-
}
6+
};

public/assets/posts/git_hooks_automating_your_workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ Remember, while hooks are powerful, they should be used judiciously. Overly rest
118118

119119
Happy coding, and may your Git hooks serve you well!
120120

121-
> Written by **Sakib Ahmed** | [GitHub](https://github.com/devvsakib)
121+
> Written by **Sakib Ahmed** | [GitHub](https://github.com/devvsakib)

public/assets/posts/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
{
99
"title": "git_hooks_automating_your_workflow"
1010
}
11-
]
11+
]

public/assets/posts/mastering_git_branching_strategies.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ Additional supporting branches include:
2525
- Hotfix branches
2626

2727
#### Pros:
28+
2829
- Clear separation of concerns
2930
- Suitable for projects with scheduled releases
3031

3132
#### Cons:
33+
3234
- Can be complex for smaller projects
3335
- May lead to long-lived feature branches
3436

@@ -44,10 +46,12 @@ GitHub Flow is a simpler alternative to GitFlow. It uses a single main branch an
4446
6. Merge to `main`
4547

4648
#### Pros:
49+
4750
- Simple and easy to understand
4851
- Encourages continuous delivery
4952

5053
#### Cons:
54+
5155
- Less suitable for projects with multiple versions in production
5256

5357
### 3. Trunk-Based Development
@@ -59,10 +63,12 @@ This strategy involves keeping branches short-lived and merging frequently to a
5963
- `main` is always in a releasable state
6064

6165
#### Pros:
66+
6267
- Supports continuous integration effectively
6368
- Reduces merge conflicts
6469

6570
#### Cons:
71+
6672
- Requires a robust testing and CI/CD pipeline
6773
- May be challenging for less experienced teams
6874

@@ -94,4 +100,4 @@ Remember, the best strategy is one that your team can follow effectively. Start
94100

95101
Happy branching!
96102

97-
> Written by **Sakib Ahmed** | [GitHub](https://github.com/devvsakib)
103+
> Written by **Sakib Ahmed** | [GitHub](https://github.com/devvsakib)

0 commit comments

Comments
 (0)