Skip to content

Commit 226475a

Browse files
Merge branch 'main' into patch-1
2 parents d38ac7d + 0aca506 commit 226475a

31 files changed

+1023
-192
lines changed

.github/CODEOWNERS

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# ---------- Our awesome maintainers ----------
2+
3+
# Global maintainers
4+
* @Mathys-Gasnier
5+
6+
# Code maintainers
7+
/src/ @Yugveer06 @GreenMan36
8+
9+
# Snippets maintainers
10+
/public/data @Mathys-Gasnier
11+
12+
13+
# ---------- What is a maintainer ----------
14+
15+
# Maintainers will be notified when there is a pull request
16+
# with a change in the folder/file assigned to them. They will
17+
# have to approve the pull request before it can be merged.
18+
19+
20+
# ---------- How to be a maintainer ----------
21+
22+
# To maintain trust and collaboration with reviewers, first,
23+
# we will need to prove that you can contribute to the project well.
24+
# As you contribute more, the more responsibility you will have.
25+
26+
# We will assign maintainers for specific languages as well.
27+
# As we notice more contribution from your side, we will let you know
28+
# and assign you a language.

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: technoph1le
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist
33
.vite
44
coverage
55
package-lock.json
6+
.md

CONTRIBUTING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ Look for the categoryName where your snippet belongs.
3636
{
3737
"title": "Name of the snippet",
3838
"description": "A short explanation of what the snippet does",
39-
"code": ["your code goes here", " this is a newline with a space"],
39+
"code": [
40+
"your code goes here",
41+
" this is a newline with a space"
42+
],
4043
"tags": ["tag1", "tag2", "tag3"],
4144
"author": "your_github_username"
4245
}
@@ -81,7 +84,10 @@ Use this format:
8184
{
8285
"title": "Name of the snippet",
8386
"description": "A short explanation of what it does",
84-
"code": ["your code goes here", " this is a newline with a space"],
87+
"code": [
88+
"your code goes here",
89+
" this is a newline with a space"
90+
],
8591
"tags": ["tag1", "tag2", "tag3"],
8692
"author": "your_github_username"
8793
}

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@
22

33
An open-source project that categorizes handy code snippets across various programming languages. Built with love and powered by an awesome community. 🚀
44

5-
<div style="display: flex">
65
<a href="https://youtu.be/BhRi7fJzPgk?si=z1sVXU7uRS0bkSEt" target="_blank" style="text-decoration: none;">
76
<img src="https://img.shields.io/static/v1?label=&message=Watch%20on%20YouTube&labelColor=FFFFFF&color=FF0000&style=for-the-badge&logo=youtube&logoColor=FF0000" alt="Watch on YouTube" style="margin-right: 20px">
87
</a>
98

10-
<a href="https://ko-fi.com/D1D217QALD" target="_blank" style="text-decoration: none;">
11-
<img src="https://img.shields.io/static/v1?label=&message=Support%20this%20project&labelColor=FFFFFF&color=FF5E5B&style=for-the-badge&logo=ko-fi&logoColor=FF5E5B" alt="Support this project">
12-
</a>
13-
</div>
14-
159
<br>
1610

1711
![Website preview](/public/preview.png)
@@ -41,7 +35,10 @@ If you’d like to add a snippet for an **existing language** and **category**,
4135
{
4236
"title": "Name of the snippet",
4337
"description": "A short explanation of what the snippet does",
44-
"code": ["your code goes here", " this is a newline with a space"],
38+
"code": [
39+
"your code goes here",
40+
" this is a newline with a space"
41+
],
4542
"tags": ["tag1", "tag2", "tag3"],
4643
"author": "your_github_username"
4744
}
@@ -62,3 +59,7 @@ Following these guidelines helps me (and everyone else) review and merge your co
6259
## License
6360

6461
QuickSnip is licensed under the [MIT License](/LICENSE). Feel free to use and share it as you like.
62+
63+
<a href="https://www.producthunt.com/products/quicksnip" target="_blank" style="text-decoration: none;">
64+
<img src="https://img.shields.io/static/v1?label=&message=Leave%20a%20Review&labelColor=FFFFFF&color=DA552F&style=for-the-badge&logo=product-hunt&logoColor=DA552F" alt="Leave a Review">
65+
</a>

eslint.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import globals from "globals";
33
import reactHooks from "eslint-plugin-react-hooks";
44
import reactRefresh from "eslint-plugin-react-refresh";
55
import tseslint from "typescript-eslint";
6-
import prettier from "eslint-plugin-prettier";
6+
import prettier from "eslint-plugin-prettier/recommended";
77

88
export default tseslint.config(
99
{ ignores: ["dist"] },
1010
{
1111
extends: [
1212
js.configs.recommended,
1313
...tseslint.configs.recommended,
14-
"plugin:prettier/recommended",
14+
prettier,
1515
],
1616
files: ["**/*.{ts,tsx}"],
1717
languageOptions: {
@@ -21,7 +21,6 @@ export default tseslint.config(
2121
plugins: {
2222
"react-hooks": reactHooks,
2323
"react-refresh": reactRefresh,
24-
prettier,
2524
},
2625
rules: {
2726
...reactHooks.configs.recommended.rules,

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<title>QuickSnip</title>
2525
</head>
2626
<body>
27-
<div id="root"></div>
27+
<div id="root" role="presentation"></div>
2828
<div id="modal-root"></div>
2929
<script type="module" src="/src/main.tsx"></script>
3030
</body>

package-lock.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"@eslint/js": "^9.11.1",
23+
"@types/eslint-plugin-react-refresh": "^0.4.0",
2324
"@types/react": "^18.3.10",
2425
"@types/react-dom": "^18.3.0",
2526
"@types/react-syntax-highlighter": "^15.5.13",

0 commit comments

Comments
 (0)