From ee6dcdcc5bbc8f30a5c1982da13ab3a139ba0a2d Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Fri, 29 Dec 2023 12:21:22 -0500 Subject: [PATCH] added prettier settings --- .devcontainer/devcontainer.json | 26 +- .prettierignore | 11 + .prettierrc.json | 4 + components/FilterSearchDropdown.tsx | 4 +- .../LinkViews/LinkComponents/LinkDate.tsx | 6 +- components/ModalContent/DeleteLinkModal.tsx | 4 +- .../EditCollectionSharingModal.tsx | 8 +- components/ModalContent/EditLinkModal.tsx | 14 +- components/PreserverdFormatRow.tsx | 6 +- components/SearchBar.tsx | 4 +- hooks/useSort.tsx | 4 +- lib/api/controllers/links/postLink.ts | 4 +- lib/api/storage/removeFolder.ts | 5 +- lib/api/verifyUser.ts | 3 +- package.json | 4 +- pages/_app.tsx | 2 +- pages/api/v1/logins/index.ts | 632 +++++++++++------- pages/settings/delete.tsx | 4 +- playwright.config.ts | 20 +- postcss.config.js | 2 +- store/localSettings.ts | 4 +- 21 files changed, 480 insertions(+), 291 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6aff804..a6c0153 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,22 +1,22 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node { - "name": "Node.js & TypeScript", - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", + "name": "Node.js & TypeScript", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "yarn install", + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", - // Configure tool-specific properties. - // "customizations": {}, + // Configure tool-specific properties. + // "customizations": {}, - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - "remoteUser": "root" + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + "remoteUser": "root" } diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..3742dae --- /dev/null +++ b/.prettierignore @@ -0,0 +1,11 @@ +node_modules +.next +public + +*.lock +*.log + +.github + +data +pgdata diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..d7fe5a6 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,4 @@ +{ + "trailingComma": "es5", + "tabWidth": 2 +} diff --git a/components/FilterSearchDropdown.tsx b/components/FilterSearchDropdown.tsx index 1fa2634..9ab2946 100644 --- a/components/FilterSearchDropdown.tsx +++ b/components/FilterSearchDropdown.tsx @@ -22,9 +22,7 @@ export default function FilterSearchDropdown({ role="button" className="btn btn-sm btn-square btn-ghost" > - +