Skip to content

Commit a0e34df

Browse files
authored
Merge pull request #496 from rahuldkjain/enhancement/issue-495
Enhancement/issue 495
2 parents fb6389f + 9ba8ccf commit a0e34df

Some content is hidden

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

79 files changed

+6152
-5856
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/**

.eslintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
7+
"parserOptions": {
8+
"ecmaFeatures": {
9+
"jsx": true
10+
},
11+
"ecmaVersion": 12,
12+
"sourceType": "module"
13+
},
14+
"plugins": ["react"],
15+
"rules": {
16+
"react/forbid-prop-types": 0
17+
}
18+
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ""
4+
title: ''
55
labels: bug
6-
assignees: ""
6+
assignees: ''
77
---
88

99
**Describe the bug**
@@ -39,7 +39,6 @@ If applicable, add screenshots to help explain your problem.
3939
**Additional context**
4040
Add any other context about the problem here.
4141

42-
4342
Join the **Discord Server** for further discussions.
4443

4544
<a href="https://discord.gg/HHMs7Eg">

.github/ISSUE_TEMPLATE/feature-enhancement-request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Feature/Enhancement request
33
about: Suggest an idea for this project
4-
title: ""
4+
title: ''
55
labels: enhancement, hacktoberfest
6-
assignees: ""
6+
assignees: ''
77
---
88

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ as any relevant images for UI changes._
4040
## Added to documentation?
4141

4242
- [ ] readme
43-

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.prettierrc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2-
"arrowParens": "avoid",
3-
"semi": false
2+
"singleQuote": true,
3+
"jsxSingleQuote": false,
4+
"tabWidth": 2,
5+
"printWidth": 480,
6+
"trailingComma": "all",
7+
"semi": true,
8+
"exclude": ["node_modules", "codepipeline"]
49
}

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

CODE_STYLE_GUIDE.md

Lines changed: 57 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,23 @@
99

1010
## Reusable components
1111

12-
* Do not make a new file for smaller components.
13-
* Smaller, reusable components needed in the main components should be added **above** the main component, **not** inside it.
14-
* Use ES6 arrow functions for defining components.
12+
- Do not make a new file for smaller components.
13+
- Smaller, reusable components needed in the main components should be added **above** the main component, **not** inside it.
14+
- Use ES6 arrow functions for defining components.
1515

1616
## Spacing
1717

1818
1. **JS:**
19-
* Use a space after `if`, `for`, `while`, `switch`.
20-
* Do not use a space after the opening `(` and before the closing `)`.
21-
* Use a space before and after destructuring objects.
22-
```js
23-
//good
24-
const { apple, mangoes } = fruits;
25-
26-
//bad
27-
const {apple, mangoes} = fruits;
19+
- Use a space after `if`, `for`, `while`, `switch`.
20+
- Do not use a space after the opening `(` and before the closing `)`.
21+
- Use a space before and after destructuring objects.
22+
```js
23+
//good
24+
const { apple, mangoes } = fruits;
25+
26+
//bad
27+
const { apple, mangoes } = fruits;
28+
```
2829

2930

3031
//Same for destructuring props:
@@ -36,56 +37,61 @@
3637
```
3738
3839
2. **JSX:**
39-
* Use a space before the forward slash (`/`) of a self-closing tag
40-
```js
41-
//good
42-
<Foo />
4340
44-
//bad
45-
<Foo/>
46-
```
47-
* Do **not** use spaces for JSX curly braces
48-
```js
49-
//good
50-
<Foo bar={baz} />
41+
- Use a space before the forward slash (`/`) of a self-closing tag
5142
52-
//bad
53-
<Foo bar={ baz } />
54-
```
43+
```js
44+
//good
45+
<Foo />
46+
47+
//bad
48+
<Foo/>
49+
```
50+
51+
- Do **not** use spaces for JSX curly braces
52+
53+
```js
54+
//good
55+
<Foo bar={baz} />
56+
57+
//bad
58+
<Foo bar={ baz } />
59+
```
5560

5661
## **Props:**
5762

58-
* Use camelCase for prop names, or PascalCase if the prop value is a React component.
59-
* Use new lines when props do not fit on the same line.
60-
```js
61-
//good
62-
<Foo
63-
prop1={value1}
64-
prop2={value2}
65-
prop3={value3}
66-
/>
67-
68-
//bad
69-
<Foo prop1={value1} prop2={value2} prop3={value3} />
70-
```
63+
- Use camelCase for prop names, or PascalCase if the prop value is a React component.
64+
- Use new lines when props do not fit on the same line.
65+
66+
```js
67+
//good
68+
<Foo
69+
prop1={value1}
70+
prop2={value2}
71+
prop3={value3}
72+
/>
73+
74+
//bad
75+
<Foo prop1={value1} prop2={value2} prop3={value3} />
76+
```
7177

7278
## **Best practices:**
7379

74-
* **Always** add semicolons after a line.
75-
* Use ES6 arrow functions.
76-
* Keep the indentation in your code correct.
77-
* Use 4 spaces for tabs.
78-
* Don't Repeat Yourself. If you think you're repeating too much code, make a smaller component, or a function.
79-
* **Always** add alt prop to `img` tags.
80-
* Add `rel="noopener"` for `a` tags which has `target="_blank"`.
81-
* Don't do `outline: none` on user input elements. If you do not want outline, give them faint, visible background on focus. This is for accessibility.
80+
- **Always** add semicolons after a line.
81+
- Use ES6 arrow functions.
82+
- Keep the indentation in your code correct.
83+
- Use 4 spaces for tabs.
84+
- Don't Repeat Yourself. If you think you're repeating too much code, make a smaller component, or a function.
85+
- **Always** add alt prop to `img` tags.
86+
- Add `rel="noopener"` for `a` tags which has `target="_blank"`.
87+
- Don't do `outline: none` on user input elements. If you do not want outline, give them faint, visible background on focus. This is for accessibility.
8288

8389
### Other things to note
8490

85-
* We are using [octicons](https://primer.style/octicons/) for icons. Use this if you need to add icons. Do **not** add a new library for icons.
86-
* Try to not commit changes in `package.json`, `package-lock.json`.
87-
* Discuss with contributors on discord if you're planning to add/remove a package.
91+
- We are using [octicons](https://primer.style/octicons/) for icons. Use this if you need to add icons. Do **not** add a new library for icons.
92+
- Try to not commit changes in `package.json`, `package-lock.json`.
93+
- Discuss with contributors on discord if you're planning to add/remove a package.
8894

8995
## Further reading:
9096

91-
This guide is based on [airbnb's react guide](https://github.com/airbnb/javascript/tree/master/react). You can read all the best practices there.
97+
This guide is based on [airbnb's react guide](https://github.com/airbnb/javascript/tree/master/react). You can read all the best practices there.

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454

5555
This tool provides an easy way to create a GitHub profile readme with the latest add-ons such as `visitors count`, `github stats`, etc.
5656

57+
## 🚀 Demo
5758

58-
## 🚀 Demo
5959
<a href="https://rahuldkjain.github.io/gh-profile-readme-generator" target="blank">
6060
<img src="https://img.shields.io/website?url=https%3A%2F%2Frahuldkjain.github.io%2Fgh-profile-readme-generator&logo=github&style=flat-square" />
6161
</a>
@@ -126,11 +126,11 @@ Please contribute using [GitHub Flow](https://guides.github.com/introduction/flo
126126
Please read [`CONTRIBUTING`](CONTRIBUTING.md) for details on our [`CODE OF CONDUCT`](CODE_OF_CONDUCT.md), and the process for submitting pull requests to us.
127127

128128
## 💻 Built with
129+
129130
- [Gatsby](https://www.gatsbyjs.com/)
130131
- [Tailwind CSS](https://tailwindcss.com/): for styling
131132
- [GSAP](https://greensock.com/gsap/): for small SVG Animations
132133

133-
134134
## 🙇 Special Thanks
135135

136136
- [Anurag Hazra](https://github.com/anuraghazra) for amazing [github-readme-stats](https://github.com/anuraghazra/github-readme-stats)
@@ -146,7 +146,6 @@ Please read [`CONTRIBUTING`](CONTRIBUTING.md) for details on our [`CODE OF CONDU
146146
- [Aadit Kamat](https://github.com/aaditkamat) find the tool useful and showed support with his donation. A big thanks to him.
147147
- [Jean-Michel Fayard](https://github.com/jmfayard) used the generator to create his GitHub Profile README and he loved it. Thanks to him for showing support to the tool with the donation.
148148

149-
150149
## 🙏 Support
151150

152151
<p align="left">
@@ -163,7 +162,6 @@ Please read [`CONTRIBUTING`](CONTRIBUTING.md) for details on our [`CODE OF CONDU
163162
<a href="https://www.buymeacoffee.com/rahuldkjain" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="23" width="100" style="border-radius:2px" />
164163
</p>
165164

166-
167165
<hr>
168166
<p align="center">
169167
Developed with ❤️ in India 🇮🇳

0 commit comments

Comments
 (0)