From 0faac52daec6c810a9f060f66cb75ec63e0b55e7 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Thu, 15 Dec 2022 11:00:58 +0000 Subject: [PATCH] Format all files with prettier --- .eslintrc.js | 30 ++- .github/PULL_REQUEST_TEMPLATE.md | 6 +- .github/renovate.json | 6 +- .github/workflows/backport.yml | 52 ++-- .github/workflows/build.yaml | 194 +++++++-------- .github/workflows/build_linux.yaml | 98 ++++---- .github/workflows/build_macos.yaml | 76 +++--- .github/workflows/build_prepare.yaml | 72 +++--- .github/workflows/build_windows.yaml | 152 ++++++------ .github/workflows/packages_index.yaml | 76 +++--- .github/workflows/pull_request.yaml | 16 +- .github/workflows/static_analysis.yaml | 64 ++--- .github/workflows/upgrade_dependencies.yml | 10 +- .prettierignore | 19 ++ .prettierrc.js | 1 + README.md | 64 ++--- babel.config.js | 5 +- docs/native-node-modules.md | 20 +- docs/updates.md | 1 - docs/windows-requirements.md | 27 ++- element.io/nightly/config.json | 6 +- element.io/release/config.json | 6 +- hak/keytar/build.ts | 16 +- hak/keytar/check.ts | 14 +- hak/matrix-seshat/build.ts | 264 +++++++++------------ hak/matrix-seshat/check.ts | 65 ++--- hak/matrix-seshat/fetchDeps.ts | 32 ++- hak/tsconfig.json | 29 +-- package.json | 3 +- packages.element.io/fonts/inter.css | 232 +++++++++--------- packages.element.io/styles.css | 83 ++++--- scripts/copy-res.ts | 17 +- scripts/electron_afterPack.js | 10 +- scripts/electron_afterSign.js | 6 +- scripts/electron_winSign.js | 28 +-- scripts/fetch-package.ts | 70 +++--- scripts/generate-packages-index.ts | 42 ++-- scripts/hak/README.md | 71 +++--- scripts/hak/clean.ts | 12 +- scripts/hak/copy.ts | 62 +++-- scripts/hak/dep.ts | 2 +- scripts/hak/fetch.ts | 24 +- scripts/hak/fetchDeps.ts | 6 +- scripts/hak/hakEnv.ts | 22 +- scripts/hak/index.ts | 75 +++--- scripts/hak/link.ts | 30 +-- scripts/hak/target.ts | 165 +++++++------ scripts/set-version.ts | 48 ++-- scripts/tsconfig.json | 33 ++- src/@types/keytar.d.ts | 2 +- src/electron-main.ts | 253 ++++++++++---------- src/ipc.ts | 67 +++--- src/keytar.ts | 2 +- src/language-helper.ts | 16 +- src/preload.ts | 35 ++- src/protocol.ts | 21 +- src/seshat.ts | 58 +++-- src/settings.ts | 14 +- src/squirrelhooks.ts | 20 +- src/tray.ts | 24 +- src/updater.ts | 57 ++--- src/utils.ts | 2 +- src/vectormenu.ts | 213 +++++++++-------- src/webcontents-handler.ts | 252 ++++++++++---------- test/launch-test.ts | 4 +- tsconfig.json | 38 ++- yarn.lock | 13 +- 67 files changed, 1760 insertions(+), 1793 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc.js diff --git a/.eslintrc.js b/.eslintrc.js index e15d9d5..a65da72 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,8 +1,6 @@ module.exports = { plugins: ["matrix-org"], - extends: [ - "plugin:matrix-org/javascript", - ], + extends: ["plugin:matrix-org/javascript"], parserOptions: { ecmaVersion: 2021, }, @@ -20,19 +18,19 @@ module.exports = { "prefer-promise-reject-errors": "off", "no-async-promise-executor": "off", }, - overrides: [{ - files: ["{src,scripts,hak}/**/*.{ts,tsx}"], - extends: [ - "plugin:matrix-org/typescript", - ], - rules: { - // Things we do that break the ideal style - "prefer-promise-reject-errors": "off", - "quotes": "off", + overrides: [ + { + files: ["{src,scripts,hak}/**/*.{ts,tsx}"], + extends: ["plugin:matrix-org/typescript"], + rules: { + // Things we do that break the ideal style + "prefer-promise-reject-errors": "off", + "quotes": "off", - "@typescript-eslint/no-explicit-any": "off", - // We're okay with assertion errors when we ask for them - "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-explicit-any": "off", + // We're okay with assertion errors when we ask for them + "@typescript-eslint/no-non-null-assertion": "off", + }, }, - }], + ], }; diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b12e372..fd9eaec 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,9 +2,9 @@ ## Checklist -* [ ] Ensure your code works with manual testing -* [ ] Linter and other CI checks pass -* [ ] Sign-off given on the changes (see [CONTRIBUTING.md](https://github.com/vector-im/element-desktop/blob/develop/CONTRIBUTING.md)) +- [ ] Ensure your code works with manual testing +- [ ] Linter and other CI checks pass +- [ ] Sign-off given on the changes (see [CONTRIBUTING.md](https://github.com/vector-im/element-desktop/blob/develop/CONTRIBUTING.md))