diff --git a/.eslintrc.json b/.eslintrc.json
index d4d0bee..4972523 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,36 +1,18 @@
{
- "extends": [
- "next",
- "next/core-web-vitals"
- ],
+ "extends": ["next", "next/core-web-vitals", "plugin:prettier/recommended"],
"rules": {
- "indent": [
- "error",
- 2,
- {
- "SwitchCase": 1
- }
- ],
- "linebreak-style": [
- "error",
- "unix"
- ],
+ "linebreak-style": ["error", "unix"],
"quotes": [
"error",
- "single"
- ],
- "semi": [
- "error",
- "always"
- ],
- "comma-dangle": [
- "error",
- "always-multiline"
- ],
- "jsx-quotes": [
- "error",
- "prefer-single"
+ "single",
+ {
+ "avoidEscape": true
+ }
],
+ "semi": ["error", "always"],
+ "comma-dangle": ["error", "always-multiline"],
+ "jsx-quotes": ["error", "prefer-single"],
+ "indent": "off",
"react/prop-types": "off",
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off",
@@ -48,4 +30,4 @@
"jsx-a11y/alt-text": "off",
"react/display-name": "off"
}
-}
\ No newline at end of file
+}
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 0000000..8801992
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,5 @@
+{
+ "singleQuote": true,
+ "jsxSingleQuote": true,
+ "printWidth": 110
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index a6f68b1..9440a0a 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -2,4 +2,4 @@
"editor.tabSize": 2,
"files.eol": "\n",
"typescript.tsdk": "node_modules/typescript/lib"
-}
\ No newline at end of file
+}
diff --git a/.yarnrc.yml b/.yarnrc.yml
index 6338fc6..f0bb94f 100644
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -2,8 +2,8 @@ nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
- spec: "@yarnpkg/plugin-interactive-tools"
+ spec: '@yarnpkg/plugin-interactive-tools'
yarnPath: .yarn/releases/yarn-3.2.1.cjs
-checksumBehavior: "update"
\ No newline at end of file
+checksumBehavior: 'update'
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f878979..66f2688 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,18 +1,23 @@
# Contributing
## Bug reports
+
Create an issue on GitHub, please include the following (if one of them is not applicable to the issue then it's not needed):
-* The steps to reproduce the bug
-* Logs of Zipline
-* The version of Zipline
-* Your OS & Browser including server OS
-* What you were expecting to see
+
+- The steps to reproduce the bug
+- Logs of Zipline
+- The version of Zipline
+- Your OS & Browser including server OS
+- What you were expecting to see
## Feature requests
+
Create an issue on GitHub, please include the following:
-* Breif explanation of the feature in the title (very breif please)
-* How it would work (detailed, but optional)
+
+- Breif explanation of the feature in the title (very breif please)
+- How it would work (detailed, but optional)
## Pull Requests (contributions to the codebase)
+
Create a pull request on GitHub. If your PR does not pass the action checks, then please fix the errors. If your PR was submitted before a release, and I have pushed a new release, please make sure to update your PR to reflect any changes, usually this is handled by GitHub.
Please make sure your code also reflects the style of the rest of the code.
diff --git a/README.md b/README.md
index 7525623..3316609 100644
--- a/README.md
+++ b/README.md
@@ -1,20 +1,21 @@
- A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!
+A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!
- ![Stars](https://img.shields.io/github/stars/diced/zipline?logo=github&style=flat)
- ![Version](https://img.shields.io/github/package-json/v/diced/zipline?logo=git&logoColor=white&style=flat)
- ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/diced/zipline/trunk?logo=git&logoColor=white&style=flat)
- [![Discord](https://img.shields.io/discord/729771078196527176?color=%23777ed3&label=discord&logo=discord&logoColor=white&style=flat)](https://discord.gg/EAhCRfGxCF)
+![Stars](https://img.shields.io/github/stars/diced/zipline?logo=github&style=flat)
+![Version](https://img.shields.io/github/package-json/v/diced/zipline?logo=git&logoColor=white&style=flat)
+![GitHub last commit (branch)](https://img.shields.io/github/last-commit/diced/zipline/trunk?logo=git&logoColor=white&style=flat)
+[![Discord](https://img.shields.io/discord/729771078196527176?color=%23777ed3&label=discord&logo=discord&logoColor=white&style=flat)](https://discord.gg/EAhCRfGxCF)
- ![Build](https://img.shields.io/github/workflow/status/diced/zipline/Build?logo=github&style=flat)
- [![Docker Image (trunk)](https://img.shields.io/github/workflow/status/diced/zipline/Push%20Docker%20Images?label=Docker%20%28trunk%29&logo=github&style=flat)](https://github.com/diced/zipline/pkgs/container/zipline/?tag=trunk)
- [![Docker Image (release)](https://img.shields.io/github/workflow/status/diced/zipline/Push%20Release%20Docker%20Images?label=Docker%20%28release%29&logo=github&style=flat)](https://github.com/diced/zipline/pkgs/container/zipline/?tag=latest)
+![Build](https://img.shields.io/github/workflow/status/diced/zipline/Build?logo=github&style=flat)
+[![Docker Image (trunk)](https://img.shields.io/github/workflow/status/diced/zipline/Push%20Docker%20Images?label=Docker%20%28trunk%29&logo=github&style=flat)](https://github.com/diced/zipline/pkgs/container/zipline/?tag=trunk)
+[![Docker Image (release)](https://img.shields.io/github/workflow/status/diced/zipline/Push%20Release%20Docker%20Images?label=Docker%20%28release%29&logo=github&style=flat)](https://github.com/diced/zipline/pkgs/container/zipline/?tag=latest)