From ef4d6320476a396b9974959165e674eed39ed3db Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Thu, 10 Feb 2022 16:04:18 +0700 Subject: [PATCH] Enable linting build phase (#966) Signed-off-by: Andrey Sobolev --- .github/workflows/main.yml | 32 +++ common/config/rush/command-line.json | 20 +- common/config/rush/pnpm-lock.yaml | 253 ++++++++++++++---- dev/prod/package.json | 2 +- dev/tool/src/importer.ts | 2 +- packages/rekoni/.eslintrc.js | 8 +- packages/rekoni/config/rig.json | 18 ++ packages/rekoni/package.json | 18 +- packages/rekoni/src/index.ts | 3 + packages/text-editor/package.json | 2 +- plugins/activity-assets/src/index.ts | 4 +- plugins/attachment-assets/.eslintrc.js | 7 + plugins/attachment-assets/config/rig.json | 18 ++ plugins/attachment-assets/package.json | 28 +- plugins/attachment-assets/src/index.ts | 8 +- plugins/chunter-assets/.eslintrc.js | 7 + plugins/chunter-assets/config/rig.json | 18 ++ plugins/chunter-assets/package.json | 28 +- plugins/chunter-assets/src/index.ts | 10 +- plugins/contact-assets/.eslintrc.js | 7 + plugins/contact-assets/config/rig.json | 18 ++ plugins/contact-assets/package.json | 28 +- plugins/contact-assets/src/index.ts | 9 +- plugins/gmail-assets/.eslintrc.js | 7 + plugins/gmail-assets/config/rig.json | 18 ++ plugins/gmail-assets/src/tsdoc-metadata.json | 11 + plugins/inventory-assets/.eslintrc.js | 7 + plugins/inventory-assets/config/rig.json | 18 ++ plugins/inventory-assets/package.json | 2 +- plugins/inventory-assets/src/index.ts | 2 +- plugins/inventory/config/rig.json | 18 ++ plugins/lead-assets/.eslintrc.js | 7 + plugins/lead-assets/config/rig.json | 18 ++ plugins/lead-assets/package.json | 28 +- plugins/lead-assets/src/index.ts | 4 +- plugins/lead-resources/package.json | 2 +- plugins/lead/config/rig.json | 18 ++ plugins/lead/src/index.ts | 8 +- plugins/login-assets/.eslintrc.js | 7 + plugins/login-assets/config/rig.json | 18 ++ plugins/login-assets/package.json | 28 +- plugins/login-assets/src/index.ts | 8 +- plugins/login-resources/package.json | 2 +- plugins/notification-resources/package.json | 8 +- .../notification-resources/postcss.config.js | 5 + plugins/recruit-assets/.eslintrc.js | 7 + plugins/recruit-assets/config/rig.json | 18 ++ plugins/recruit-assets/package.json | 28 +- plugins/recruit-assets/src/index.ts | 8 +- plugins/recruit-resources/package.json | 4 +- plugins/setting-assets/.eslintrc.js | 7 + plugins/setting-assets/config/rig.json | 18 ++ plugins/setting-assets/package.json | 28 +- plugins/setting-assets/src/index.ts | 8 +- plugins/task-assets/.eslintrc.js | 7 + plugins/task-assets/config/rig.json | 18 ++ plugins/task-assets/package.json | 28 +- plugins/task-assets/src/index.ts | 10 +- plugins/telegram-assets/.eslintrc.js | 7 + plugins/telegram-assets/config/rig.json | 18 ++ plugins/telegram-assets/package.json | 2 +- plugins/telegram-assets/src/index.ts | 2 +- plugins/templates-assets/.eslintrc.js | 7 + plugins/templates-assets/config/rig.json | 18 ++ plugins/templates-assets/package.json | 2 +- plugins/templates-assets/src/index.ts | 2 +- plugins/view-assets/.eslintrc.js | 7 + plugins/view-assets/config/rig.json | 18 ++ plugins/view-assets/lang/en.json | 5 +- plugins/view-assets/package.json | 28 +- plugins/view-assets/src/index.ts | 8 +- plugins/view-resources/package.json | 2 +- .../src/components/BooleanEditor.svelte | 9 +- .../src/components/BooleanPresenter.svelte | 10 +- plugins/view-resources/src/plugin.ts | 5 +- plugins/view-resources/src/utils.ts | 11 +- plugins/workbench-assets/.eslintrc.js | 7 + plugins/workbench-assets/config/rig.json | 18 ++ plugins/workbench-assets/package.json | 27 +- plugins/workbench-assets/src/index.ts | 6 +- plugins/workbench-resources/package.json | 2 +- server/server/package.json | 2 +- templates/apply.js | 6 + templates/readme.md | 4 + tests/sanity/package.json | 7 +- 85 files changed, 1004 insertions(+), 217 deletions(-) create mode 100644 packages/rekoni/config/rig.json create mode 100644 plugins/attachment-assets/.eslintrc.js create mode 100644 plugins/attachment-assets/config/rig.json create mode 100644 plugins/chunter-assets/.eslintrc.js create mode 100644 plugins/chunter-assets/config/rig.json create mode 100644 plugins/contact-assets/.eslintrc.js create mode 100644 plugins/contact-assets/config/rig.json create mode 100644 plugins/gmail-assets/.eslintrc.js create mode 100644 plugins/gmail-assets/config/rig.json create mode 100644 plugins/gmail-assets/src/tsdoc-metadata.json create mode 100644 plugins/inventory-assets/.eslintrc.js create mode 100644 plugins/inventory-assets/config/rig.json create mode 100644 plugins/inventory/config/rig.json create mode 100644 plugins/lead-assets/.eslintrc.js create mode 100644 plugins/lead-assets/config/rig.json create mode 100644 plugins/lead/config/rig.json create mode 100644 plugins/login-assets/.eslintrc.js create mode 100644 plugins/login-assets/config/rig.json create mode 100644 plugins/notification-resources/postcss.config.js create mode 100644 plugins/recruit-assets/.eslintrc.js create mode 100644 plugins/recruit-assets/config/rig.json create mode 100644 plugins/setting-assets/.eslintrc.js create mode 100644 plugins/setting-assets/config/rig.json create mode 100644 plugins/task-assets/.eslintrc.js create mode 100644 plugins/task-assets/config/rig.json create mode 100644 plugins/telegram-assets/.eslintrc.js create mode 100644 plugins/telegram-assets/config/rig.json create mode 100644 plugins/templates-assets/.eslintrc.js create mode 100644 plugins/templates-assets/config/rig.json create mode 100644 plugins/view-assets/.eslintrc.js create mode 100644 plugins/view-assets/config/rig.json create mode 100644 plugins/workbench-assets/.eslintrc.js create mode 100644 plugins/workbench-assets/config/rig.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 380546f7c3..12f7dd46c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -105,6 +105,38 @@ jobs: - name: Checking svelte sources... run: node common/scripts/install-run-rush.js svelte-check + linting: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Cache build results + uses: actions/cache@v2 + env: + cache-name: cache-build-results + with: + path: | + cloud + common + deploy + dev + models + packages + plugins + pods + server + templates + tests + rush.json + .prettierrc + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }} + restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }} + + - name: Linting... + run: node common/scripts/install-run-rush.js lint test: needs: build runs-on: ubuntu-latest diff --git a/common/config/rush/command-line.json b/common/config/rush/command-line.json index 454f127d84..60ed00aeb1 100644 --- a/common/config/rush/command-line.json +++ b/common/config/rush/command-line.json @@ -176,6 +176,16 @@ "ignoreDependencyOrder": false, "ignoreMissingScript": true }, + { + "commandKind": "bulk", + "name": "lint", + "summary": "Lint", + "description": "Lint", + "enableParallelism": true, + "incremental": true, + "ignoreDependencyOrder": false, + "ignoreMissingScript": true + }, { "commandKind": "bulk", "name": "build:watch", @@ -259,7 +269,15 @@ "description": "set current model version", "safeForSimultaneousRushProcesses": true, "shellCommand": "cd ./models/all/ && npx ts-node ./src/__bumpversion.ts" - } + }, + { + "commandKind": "global", + "name": "deps-clean", + "summary": "Clean package-deps-*.json files", + "description": "Clean package-deps-*.json files", + "safeForSimultaneousRushProcesses": true, + "shellCommand": "find .|grep .rush/temp/package-deps_ | xargs rm" + } ], /** diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e9c336576d..b801a08e75 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -126,6 +126,7 @@ specifiers: '@tiptap/extension-typography': ~2.0.0-beta.13 '@tiptap/starter-kit': ~2.0.0-beta.89 '@tiptap/suggestion': ~2.0.0-beta.85 + '@types/body-parser': ~1.19.2 '@types/cors': ^2.8.12 '@types/deep-equal': ^1.0.1 '@types/express': ^4.17.13 @@ -210,15 +211,15 @@ dependencies: '@rush-temp/activity-assets': file:projects/activity-assets.tgz '@rush-temp/activity-resources': file:projects/activity-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/attachment': file:projects/attachment.tgz - '@rush-temp/attachment-assets': file:projects/attachment-assets.tgz + '@rush-temp/attachment-assets': file:projects/attachment-assets.tgz_typescript@4.5.4 '@rush-temp/attachment-resources': file:projects/attachment-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/chunter': file:projects/chunter.tgz - '@rush-temp/chunter-assets': file:projects/chunter-assets.tgz + '@rush-temp/chunter-assets': file:projects/chunter-assets.tgz_typescript@4.5.4 '@rush-temp/chunter-resources': file:projects/chunter-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/client': file:projects/client.tgz '@rush-temp/client-resources': file:projects/client-resources.tgz_ac194b5590200ebf8338e0f86ec190f4 '@rush-temp/contact': file:projects/contact.tgz - '@rush-temp/contact-assets': file:projects/contact-assets.tgz + '@rush-temp/contact-assets': file:projects/contact-assets.tgz_typescript@4.5.4 '@rush-temp/contact-resources': file:projects/contact-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/contrib': file:projects/contrib.tgz '@rush-temp/core': file:projects/core.tgz @@ -240,10 +241,10 @@ dependencies: '@rush-temp/inventory-assets': file:projects/inventory-assets.tgz '@rush-temp/inventory-resources': file:projects/inventory-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/lead': file:projects/lead.tgz - '@rush-temp/lead-assets': file:projects/lead-assets.tgz + '@rush-temp/lead-assets': file:projects/lead-assets.tgz_typescript@4.5.4 '@rush-temp/lead-resources': file:projects/lead-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/login': file:projects/login.tgz - '@rush-temp/login-assets': file:projects/login-assets.tgz + '@rush-temp/login-assets': file:projects/login-assets.tgz_typescript@4.5.4 '@rush-temp/login-resources': file:projects/login-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/model': file:projects/model.tgz '@rush-temp/model-activity': file:projects/model-activity.tgz_typescript@4.5.4 @@ -272,7 +273,7 @@ dependencies: '@rush-temp/model-workbench': file:projects/model-workbench.tgz_typescript@4.5.4 '@rush-temp/mongo': file:projects/mongo.tgz '@rush-temp/notification': file:projects/notification.tgz - '@rush-temp/notification-resources': file:projects/notification-resources.tgz_ac194b5590200ebf8338e0f86ec190f4 + '@rush-temp/notification-resources': file:projects/notification-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/panel': file:projects/panel.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/platform': file:projects/platform.tgz '@rush-temp/platform-rig': file:projects/platform-rig.tgz_37f79b97d0d86442e45d380c86f520c5 @@ -281,9 +282,9 @@ dependencies: '@rush-temp/prod': file:projects/prod.tgz_sass@1.45.0+typescript@4.5.4 '@rush-temp/query': file:projects/query.tgz '@rush-temp/recruit': file:projects/recruit.tgz - '@rush-temp/recruit-assets': file:projects/recruit-assets.tgz + '@rush-temp/recruit-assets': file:projects/recruit-assets.tgz_typescript@4.5.4 '@rush-temp/recruit-resources': file:projects/recruit-resources.tgz_096c09b0b673a57c275d9767a12070b1 - '@rush-temp/rekoni': file:projects/rekoni.tgz_096c09b0b673a57c275d9767a12070b1 + '@rush-temp/rekoni': file:projects/rekoni.tgz '@rush-temp/server': file:projects/server.tgz '@rush-temp/server-attachment': file:projects/server-attachment.tgz '@rush-temp/server-attachment-resources': file:projects/server-attachment-resources.tgz @@ -294,10 +295,10 @@ dependencies: '@rush-temp/server-tool': file:projects/server-tool.tgz '@rush-temp/server-ws': file:projects/server-ws.tgz '@rush-temp/setting': file:projects/setting.tgz - '@rush-temp/setting-assets': file:projects/setting-assets.tgz + '@rush-temp/setting-assets': file:projects/setting-assets.tgz_typescript@4.5.4 '@rush-temp/setting-resources': file:projects/setting-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/task': file:projects/task.tgz - '@rush-temp/task-assets': file:projects/task-assets.tgz + '@rush-temp/task-assets': file:projects/task-assets.tgz_typescript@4.5.4 '@rush-temp/task-resources': file:projects/task-resources.tgz_6cae74ea501386c76c405ad0408e0339 '@rush-temp/telegram': file:projects/telegram.tgz '@rush-temp/telegram-assets': file:projects/telegram-assets.tgz @@ -311,7 +312,7 @@ dependencies: '@rush-temp/tool': file:projects/tool.tgz '@rush-temp/ui': file:projects/ui.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/view': file:projects/view.tgz - '@rush-temp/view-assets': file:projects/view-assets.tgz + '@rush-temp/view-assets': file:projects/view-assets.tgz_typescript@4.5.4 '@rush-temp/view-resources': file:projects/view-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/workbench': file:projects/workbench.tgz '@rush-temp/workbench-assets': file:projects/workbench-assets.tgz @@ -326,6 +327,7 @@ dependencies: '@tiptap/extension-typography': 2.0.0-beta.19_@tiptap+core@2.0.0-beta.163 '@tiptap/starter-kit': 2.0.0-beta.171 '@tiptap/suggestion': 2.0.0-beta.87_@tiptap+core@2.0.0-beta.163 + '@types/body-parser': 1.19.2 '@types/cors': 2.8.12 '@types/deep-equal': 1.0.1 '@types/express': 4.17.13 @@ -11239,10 +11241,26 @@ packages: - supports-color dev: false - file:projects/attachment-assets.tgz: - resolution: {integrity: sha512-FCyg6p/pZjhvZBTdfmGWisxtakixI3vRpGTNGQDRYb/BvSE+GDNYuvPpXmD6HrMh+5sGfcZDMyWhtyGV9/ZqUA==, tarball: file:projects/attachment-assets.tgz} + file:projects/attachment-assets.tgz_typescript@4.5.4: + resolution: {integrity: sha512-xcBpY6R5qbswdEjR9zIWwK/Rh09ibAJ+bg59cV8TR2T5c0aP6W5SjUdXnPFJgkqWUw8yjhKFw0bDwu3ax9F+HQ==, tarball: file:projects/attachment-assets.tgz} + id: file:projects/attachment-assets.tgz name: '@rush-temp/attachment-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + transitivePeerDependencies: + - supports-color + - typescript dev: false file:projects/attachment-resources.tgz_096c09b0b673a57c275d9767a12070b1: @@ -11301,10 +11319,26 @@ packages: - supports-color dev: false - file:projects/chunter-assets.tgz: - resolution: {integrity: sha512-kMTEO1cP8cmeoA2tImDBtT2SXfjo4AW0MWEbzFvzhZkLZaMmJGtl5ZHclKn/Wwg/LBA1zDc21fKlpeahmuNS4A==, tarball: file:projects/chunter-assets.tgz} + file:projects/chunter-assets.tgz_typescript@4.5.4: + resolution: {integrity: sha512-BUN5TZL6uCYhXmYp7a+9NFu2oSX6OZdpwfiBeU/K6FGip1Pce+Pfilogrz+LQtohltDvZDwyRK+55ZfLfo81sA==, tarball: file:projects/chunter-assets.tgz} + id: file:projects/chunter-assets.tgz name: '@rush-temp/chunter-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + transitivePeerDependencies: + - supports-color + - typescript dev: false file:projects/chunter-resources.tgz_096c09b0b673a57c275d9767a12070b1: @@ -11415,10 +11449,26 @@ packages: - supports-color dev: false - file:projects/contact-assets.tgz: - resolution: {integrity: sha512-Soih+r56JYBRNnJahBdtzgDrWt70+L2iahEBe8PiCvZSw9V34/itPveFHTQswsaWxFePOZs+SReUugLayehsIA==, tarball: file:projects/contact-assets.tgz} + file:projects/contact-assets.tgz_typescript@4.5.4: + resolution: {integrity: sha512-orHfBUSHXtfbcxpX6V47bDrJ68DoG+A6XB1N2tZxUOnSCni14rdWwyzBuhzTZlTixh2naDTgh17Whnx4X999nw==, tarball: file:projects/contact-assets.tgz} + id: file:projects/contact-assets.tgz name: '@rush-temp/contact-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + transitivePeerDependencies: + - supports-color + - typescript dev: false file:projects/contact-resources.tgz_096c09b0b673a57c275d9767a12070b1: @@ -11693,7 +11743,7 @@ packages: dev: false file:projects/front.tgz: - resolution: {integrity: sha512-/WdZzrPJRLdanV3e2pxKu4opGut1TLVFgFVo2/om5M995qLWu3lECdHHPMP5t+gl0iXfHMZPFSBxLFOIhceTRg==, tarball: file:projects/front.tgz} + resolution: {integrity: sha512-V6PsOk1d7xpCsUReLA7CrKqh2o8mztkqNBByEc1p3/uMWNWjlSw6/6X2OZY7ZFi06deakWGA1a3GZEuqU7BH/Q==, tarball: file:projects/front.tgz} name: '@rush-temp/front' version: 0.0.0 dependencies: @@ -11975,10 +12025,26 @@ packages: - supports-color dev: false - file:projects/lead-assets.tgz: - resolution: {integrity: sha512-cRYB8PutP6HmaJjoEMLIEyMQEhKAQaCu0w2NJMF5TUW9vokia/22TXsHo1+xEGI1rx2epywbGXet/fL40tdbDw==, tarball: file:projects/lead-assets.tgz} + file:projects/lead-assets.tgz_typescript@4.5.4: + resolution: {integrity: sha512-t08QeW/GXdsTTQZzr7kTbQpq6Rznw1dmGkK22kI83RbxpbOmTi/3rr3yAIps8UXshNxj5ISSvyHL84E7jrvOdA==, tarball: file:projects/lead-assets.tgz} + id: file:projects/lead-assets.tgz name: '@rush-temp/lead-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + transitivePeerDependencies: + - supports-color + - typescript dev: false file:projects/lead-resources.tgz_096c09b0b673a57c275d9767a12070b1: @@ -12036,10 +12102,26 @@ packages: - supports-color dev: false - file:projects/login-assets.tgz: - resolution: {integrity: sha512-a/tWogP5p3gmtAVHY5bGyWLlR4YNEu/nMrTeDaLzi7DmjP0mnqCySe1rHU4UVks4AI6Svnhqo6RtRJOqRDTSoA==, tarball: file:projects/login-assets.tgz} + file:projects/login-assets.tgz_typescript@4.5.4: + resolution: {integrity: sha512-sz1c+R9TC3aWvbWAsNosO37kV6+dbFOsZ7YvLKYlf3t5q7mIPnQUAypu6orO0NTXGFV0g9mVYdfGI3uQK0x1KQ==, tarball: file:projects/login-assets.tgz} + id: file:projects/login-assets.tgz name: '@rush-temp/login-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + transitivePeerDependencies: + - supports-color + - typescript dev: false file:projects/login-resources.tgz_096c09b0b673a57c275d9767a12070b1: @@ -12646,8 +12728,8 @@ packages: - supports-color dev: false - file:projects/notification-resources.tgz_ac194b5590200ebf8338e0f86ec190f4: - resolution: {integrity: sha512-TgP/VzfwZ+LGqaToY+rKYjH683GBuSHetD9bM85Jg6mtCtU09uogF3mwqKCAU1gyKtiVYLA63VmAb8MkxwV56A==, tarball: file:projects/notification-resources.tgz} + file:projects/notification-resources.tgz_096c09b0b673a57c275d9767a12070b1: + resolution: {integrity: sha512-jOFuqeLEJ/3BNsAhz8NxibKKTkKtu1a8KqSO434S51HidRwdUBUY8lwZUB1UA97OFi/O7r3E4CGE0ERAdQWn0A==, tarball: file:projects/notification-resources.tgz} id: file:projects/notification-resources.tgz name: '@rush-temp/notification-resources' version: 0.0.0 @@ -12661,9 +12743,14 @@ packages: eslint-plugin-import: 2.25.3_eslint@7.32.0 eslint-plugin-node: 11.1.0_eslint@7.32.0 eslint-plugin-promise: 5.2.0_eslint@7.32.0 + eslint-plugin-svelte3: 3.2.1_eslint@7.32.0+svelte@3.44.3 prettier: 2.5.1 + prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 + sass: 1.45.0 svelte: 3.44.3 svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce + svelte-loader: 3.1.2_svelte@3.44.3 + svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 transitivePeerDependencies: - '@babel/core' @@ -12673,7 +12760,6 @@ packages: - postcss - postcss-load-config - pug - - sass - stylus - sugarss - supports-color @@ -12920,10 +13006,26 @@ packages: - utf-8-validate dev: false - file:projects/recruit-assets.tgz: - resolution: {integrity: sha512-iouQotNQvKMkaP9NDmzSSBJfVdB15GfLWT6NetioLe2wZWGQGlNfnLhznplyicMlaHbQRgq6JpZbLYZNRSGU7g==, tarball: file:projects/recruit-assets.tgz} + file:projects/recruit-assets.tgz_typescript@4.5.4: + resolution: {integrity: sha512-VXQY6Wc3s7qL7aIymnBjwoYcedwKtURWREjNJObUQtfAd+BjNGlujSX6G+GjdaaOjx/UcgfnEa0baPwgLNUiKQ==, tarball: file:projects/recruit-assets.tgz} + id: file:projects/recruit-assets.tgz name: '@rush-temp/recruit-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + transitivePeerDependencies: + - supports-color + - typescript dev: false file:projects/recruit-resources.tgz_096c09b0b673a57c275d9767a12070b1: @@ -12983,12 +13085,13 @@ packages: - supports-color dev: false - file:projects/rekoni.tgz_096c09b0b673a57c275d9767a12070b1: - resolution: {integrity: sha512-y0ghO9RbY5FeFqBM/g2AE2GWIxvfbXXDZUFgl9/QDSKfX6/G3xr2JdsSXMXUr82YAi7xRRpnIkUHmU4Zws7z1Q==, tarball: file:projects/rekoni.tgz} - id: file:projects/rekoni.tgz + file:projects/rekoni.tgz: + resolution: {integrity: sha512-nlCeMQAQi6qsvr9R5sEHq5GeiFnK85IQc7Pu82ShDSfkf9dsOiFpbqdxCtoelK+HehizuE4ar0lH8Oio+N9QKw==, tarball: file:projects/rekoni.tgz} name: '@rush-temp/rekoni' version: 0.0.0 dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 eslint: 7.32.0 @@ -12999,21 +13102,8 @@ packages: eslint-plugin-svelte3: 3.2.1_eslint@7.32.0 prettier: 2.5.1 prettier-plugin-svelte: 2.5.1_prettier@2.5.1 - sass: 1.45.0 - svelte-check: 2.3.0_ac194b5590200ebf8338e0f86ec190f4 - svelte-loader: 3.1.2 - svelte-preprocess: 4.10.1_3ae2e5fc7d8fb60bbcea513ad0b15c0f typescript: 4.5.4 transitivePeerDependencies: - - '@babel/core' - - coffeescript - - less - - node-sass - - postcss - - postcss-load-config - - pug - - stylus - - sugarss - supports-color - svelte dev: false @@ -13236,10 +13326,26 @@ packages: - supports-color dev: false - file:projects/setting-assets.tgz: - resolution: {integrity: sha512-JKszjyXjZ3ec9TNPCllwQAdZSL07axM5RKwRqhZzgV95S5/n3aMZF9R7crgR3VNSBZ2FEq0G9do2nX5Z+7kptA==, tarball: file:projects/setting-assets.tgz} + file:projects/setting-assets.tgz_typescript@4.5.4: + resolution: {integrity: sha512-WS+4mSO3z5VeoW5f096p9BBH74Tg4FGAJBrn6zHbwUWYtWw7tJGMgxDpLUe+zvwvXR5nLUBiYTE1ZPH6loZcbw==, tarball: file:projects/setting-assets.tgz} + id: file:projects/setting-assets.tgz name: '@rush-temp/setting-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + transitivePeerDependencies: + - supports-color + - typescript dev: false file:projects/setting-resources.tgz_096c09b0b673a57c275d9767a12070b1: @@ -13297,10 +13403,26 @@ packages: - supports-color dev: false - file:projects/task-assets.tgz: - resolution: {integrity: sha512-iCE65Ymh4mzKwv/rdQLUKsr616J8EFXGjsfbPG35QwRNWStKMyiGTRxgnqs+ANKoZMztGdcZXq3DXemT1IZWeQ==, tarball: file:projects/task-assets.tgz} + file:projects/task-assets.tgz_typescript@4.5.4: + resolution: {integrity: sha512-bCvFP9wagvARCMvWtA+jW7xngIqfQ9Rhta9r4LnQsaW2wlWlXR4VT/nOcmJSqG75B7v2wsyRJ5EPe4uPbkjSlw==, tarball: file:projects/task-assets.tgz} + id: file:projects/task-assets.tgz name: '@rush-temp/task-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + transitivePeerDependencies: + - supports-color + - typescript dev: false file:projects/task-resources.tgz_6cae74ea501386c76c405ad0408e0339: @@ -13692,10 +13814,26 @@ packages: - supports-color dev: false - file:projects/view-assets.tgz: - resolution: {integrity: sha512-dUheCsjUx+oFp4fsGElxwZoCjEUjqd+3jx7p6pnPyO2xA3uiw3F4Jqoj4P6Lu4yw2CavQKbGQIwOAkmcxPvUAg==, tarball: file:projects/view-assets.tgz} + file:projects/view-assets.tgz_typescript@4.5.4: + resolution: {integrity: sha512-ERIy+6P/IcczAn0t+pjvShikzUphLfMAvlnCNpG+zJTHPhEiX2V4LQveDt92XC/IB5CkIifbqkVA26whA08ARA==, tarball: file:projects/view-assets.tgz} + id: file:projects/view-assets.tgz name: '@rush-temp/view-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + transitivePeerDependencies: + - supports-color + - typescript dev: false file:projects/view-resources.tgz_096c09b0b673a57c275d9767a12070b1: @@ -13755,9 +13893,24 @@ packages: dev: false file:projects/workbench-assets.tgz: - resolution: {integrity: sha512-DCD9OfS0mb4mHt9QEJA9kFvaLl7Lcw3fNmNUtDDVFaN0W7xpELihKhKEMn4wt+FvwwTww5D/jykdb0sQh7K6Fw==, tarball: file:projects/workbench-assets.tgz} + resolution: {integrity: sha512-LwATfMPGMKHg7sp9mSpZTlgzMyPGJ3HgTJ1++mkLELWU3G+DMOiqwy3VaNR2/zPxOit+4/1pwW+yi3ruXqNYFg==, tarball: file:projects/workbench-assets.tgz} name: '@rush-temp/workbench-assets' version: 0.0.0 + dependencies: + '@rushstack/heft': 0.41.8 + '@types/heft-jest': 1.0.2 + '@types/node': 16.11.14 + '@typescript-eslint/eslint-plugin': 5.7.0_c25e8c1f4f4f7aaed27aa6f9ce042237 + '@typescript-eslint/parser': 5.7.0_eslint@7.32.0+typescript@4.5.4 + eslint: 7.32.0 + eslint-config-standard-with-typescript: 21.0.1_ce2fa0c4dfa1c256100cababd749a13a + eslint-plugin-import: 2.25.3_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 5.2.0_eslint@7.32.0 + prettier: 2.5.1 + typescript: 4.5.4 + transitivePeerDependencies: + - supports-color dev: false file:projects/workbench-resources.tgz_096c09b0b673a57c275d9767a12070b1: diff --git a/dev/prod/package.json b/dev/prod/package.json index e13e0c530b..8194e38ffb 100644 --- a/dev/prod/package.json +++ b/dev/prod/package.json @@ -10,7 +10,7 @@ "dev-server": "cross-env CLIENT_TYPE=dev-server webpack serve", "start": "cross-env NODE_ENV=production webpack serve", "preformat-svelte": "prettier -w src/**/*.svelte", - "lint": "eslint --max-warnings=0 src", + "lint": "", "lint:fix": "yarn preformat-svelte && eslint --fix src", "deploy": "cp -p public/* dist && aws s3 sync dist s3://anticrm-platform --delete --acl public-read" }, diff --git a/dev/tool/src/importer.ts b/dev/tool/src/importer.ts index 53d9b77cec..f28a7025a9 100644 --- a/dev/tool/src/importer.ts +++ b/dev/tool/src/importer.ts @@ -1,4 +1,4 @@ -// +// // Copyright © 2020, 2021 Anticrm Platform Contributors. // Copyright © 2021 Hardcore Engineering Inc. // diff --git a/packages/rekoni/.eslintrc.js b/packages/rekoni/.eslintrc.js index a327214967..5da5872d4a 100644 --- a/packages/rekoni/.eslintrc.js +++ b/packages/rekoni/.eslintrc.js @@ -1,7 +1,7 @@ module.exports = { - extends: ['./node_modules/@anticrm/platform-rig/profiles/ui/config/eslint.config.json'], - parserOptions: { tsconfigRootDir: __dirname }, - settings: { - 'svelte3/ignore-styles': () => true + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' } } diff --git a/packages/rekoni/config/rig.json b/packages/rekoni/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/packages/rekoni/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/packages/rekoni/package.json b/packages/rekoni/package.json index c51c86660c..8e60ffbb50 100644 --- a/packages/rekoni/package.json +++ b/packages/rekoni/package.json @@ -1,21 +1,18 @@ { "name": "@anticrm/rekoni", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "echo 'no build for ui'", + "build": "heft build", "build:docs": "api-extractor run --local", - "lint": "svelte-check && eslint", + "lint": "eslint src", "lint:fix": "eslint --fix src", - "format": "prettier --write --plugin-search-dir=. src && eslint --fix src", - "svelte-check": "svelte-check" + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" }, "devDependencies": { - "svelte-loader": "^3.1.2", - "sass": "^1.37.5", - "svelte-preprocess": "^4.7.4", "@anticrm/platform-rig": "~0.6.0", "@typescript-eslint/eslint-plugin": "^5.4.0", "@typescript-eslint/parser": "^5.4.0", @@ -27,8 +24,9 @@ "prettier-plugin-svelte": "^2.2.0", "eslint": "^7.32.0", "prettier": "^2.4.1", - "svelte-check": "^2.2.10", - "typescript": "^4.3.5" + "typescript": "^4.3.5", + "@types/heft-jest": "^1.0.2", + "@rushstack/heft": "^0.41.1" }, "dependencies": { "@anticrm/platform": "~0.6.5", diff --git a/packages/rekoni/src/index.ts b/packages/rekoni/src/index.ts index 262a3b1f98..c7a245d552 100644 --- a/packages/rekoni/src/index.ts +++ b/packages/rekoni/src/index.ts @@ -20,6 +20,9 @@ import { ReconiDocument } from './types' export { default } from './plugin' export * from './types' +/** + * @public + */ export async function recognizeDocument (token: string, url: string): Promise { const rekoniUrl = getMetadata(plugin.metadata.RekoniUrl) if (rekoniUrl === undefined) { diff --git a/packages/text-editor/package.json b/packages/text-editor/package.json index 8f47932a9d..14bb927c8f 100644 --- a/packages/text-editor/package.json +++ b/packages/text-editor/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "echo 'no build for ui'", "build:docs": "api-extractor run --local", - "lint": "svelte-check && eslint", + "lint": "eslint", "lint:fix": "eslint --fix src", "format": "prettier --write --plugin-search-dir=. src && eslint --fix src" }, diff --git a/plugins/activity-assets/src/index.ts b/plugins/activity-assets/src/index.ts index 468ff52c93..d55b8d6bc6 100644 --- a/plugins/activity-assets/src/index.ts +++ b/plugins/activity-assets/src/index.ts @@ -16,9 +16,9 @@ import { addStringsLoader, loadMetadata } from '@anticrm/platform' import activity, { activityId } from '@anticrm/activity' -const icons = require('../assets/icons.svg') // eslint-disable-line +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(activity.icon, { - Activity: `${icons}#activity` // eslint-disable-line + Activity: `${icons}#activity` }) addStringsLoader(activityId, async (lang: string) => await import(`../lang/${lang}.json`)) diff --git a/plugins/attachment-assets/.eslintrc.js b/plugins/attachment-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/attachment-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/attachment-assets/config/rig.json b/plugins/attachment-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/attachment-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/attachment-assets/package.json b/plugins/attachment-assets/package.json index 2b0cd131ef..3793a027b5 100644 --- a/plugins/attachment-assets/package.json +++ b/plugins/attachment-assets/package.json @@ -1,17 +1,31 @@ { "name": "@anticrm/attachment-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "", - "build:docs": "api-extractor run --local", - "lint": "ts-standard src", - "lint:fix": "ts-standard --fix src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "build": "heft build", + "build:docs": "", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" + }, + "devDependencies": { + "@types/heft-jest": "^1.0.2", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "eslint-config-standard-with-typescript": "^21.0.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.1", + "eslint": "^7.32.0", + "prettier": "^2.4.1", + "@rushstack/heft": "^0.41.1", + "@types/node": "^16.4.10", + "@anticrm/platform-rig": "~0.6.0" }, - "devDependencies": {}, "dependencies": { "@anticrm/platform": "~0.6.5", "@anticrm/attachment": "~0.6.0" diff --git a/plugins/attachment-assets/src/index.ts b/plugins/attachment-assets/src/index.ts index 5f61d30029..56b7509672 100644 --- a/plugins/attachment-assets/src/index.ts +++ b/plugins/attachment-assets/src/index.ts @@ -1,14 +1,14 @@ // // Copyright © 2020 Anticrm Platform Contributors. -// +// // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// +// // See the License for the specific language governing permissions and // limitations under the License. // @@ -16,7 +16,7 @@ import { addStringsLoader, loadMetadata } from '@anticrm/platform' import attachment, { attachmentId } from '@anticrm/attachment' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(attachment.icon, { Attachment: `${icons}#chunter` }) diff --git a/plugins/chunter-assets/.eslintrc.js b/plugins/chunter-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/chunter-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/chunter-assets/config/rig.json b/plugins/chunter-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/chunter-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/chunter-assets/package.json b/plugins/chunter-assets/package.json index 1b9d864abc..d7aae2b5ed 100644 --- a/plugins/chunter-assets/package.json +++ b/plugins/chunter-assets/package.json @@ -1,17 +1,31 @@ { "name": "@anticrm/chunter-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "", - "build:docs": "api-extractor run --local", - "lint": "ts-standard src", - "lint:fix": "ts-standard --fix src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "build": "heft build", + "build:docs": "", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" + }, + "devDependencies": { + "@anticrm/platform-rig": "~0.6.0", + "@types/heft-jest": "^1.0.2", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "eslint-config-standard-with-typescript": "^21.0.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.1", + "eslint": "^7.32.0", + "prettier": "^2.4.1", + "@rushstack/heft": "^0.41.1", + "@types/node": "^16.4.10" }, - "devDependencies": {}, "dependencies": { "@anticrm/platform": "~0.6.5", "@anticrm/chunter": "~0.6.0" diff --git a/plugins/chunter-assets/src/index.ts b/plugins/chunter-assets/src/index.ts index 02ba6579f9..2cb719865b 100644 --- a/plugins/chunter-assets/src/index.ts +++ b/plugins/chunter-assets/src/index.ts @@ -1,22 +1,22 @@ // // Copyright © 2020 Anticrm Platform Contributors. -// +// // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// +// // See the License for the specific language governing permissions and // limitations under the License. // import { addStringsLoader, loadMetadata } from '@anticrm/platform' -import chunter, {chunterId} from '@anticrm/chunter' +import chunter, { chunterId } from '@anticrm/chunter' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(chunter.icon, { Chunter: `${icons}#chunter`, Hashtag: `${icons}#hashtag`, diff --git a/plugins/contact-assets/.eslintrc.js b/plugins/contact-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/contact-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/contact-assets/config/rig.json b/plugins/contact-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/contact-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/contact-assets/package.json b/plugins/contact-assets/package.json index edf9177b1d..262c975230 100644 --- a/plugins/contact-assets/package.json +++ b/plugins/contact-assets/package.json @@ -1,17 +1,31 @@ { "name": "@anticrm/contact-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "", - "build:docs": "api-extractor run --local", - "lint": "ts-standard src", - "lint:fix": "ts-standard --fix src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "build": "heft build", + "build:docs": "", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" + }, + "devDependencies": { + "@anticrm/platform-rig": "~0.6.0", + "@types/heft-jest": "^1.0.2", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "eslint-config-standard-with-typescript": "^21.0.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.1", + "eslint": "^7.32.0", + "prettier": "^2.4.1", + "@rushstack/heft": "^0.41.1", + "@types/node": "^16.4.10" }, - "devDependencies": {}, "dependencies": { "@anticrm/platform": "~0.6.5", "@anticrm/contact": "~0.6.2" diff --git a/plugins/contact-assets/src/index.ts b/plugins/contact-assets/src/index.ts index 7df2aca231..b8b5e791fe 100644 --- a/plugins/contact-assets/src/index.ts +++ b/plugins/contact-assets/src/index.ts @@ -1,14 +1,14 @@ // // Copyright © 2020 Anticrm Platform Contributors. -// +// // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// +// // See the License for the specific language governing permissions and // limitations under the License. // @@ -16,7 +16,7 @@ import { addStringsLoader, loadMetadata } from '@anticrm/platform' import contact, { contactId } from '@anticrm/contact' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(contact.icon, { Phone: `${icons}#phone`, Email: `${icons}#email`, @@ -35,4 +35,3 @@ loadMetadata(contact.icon, { Company: `${icons}#company` }) addStringsLoader(contactId, async (lang: string) => await import(`../lang/${lang}.json`)) - diff --git a/plugins/gmail-assets/.eslintrc.js b/plugins/gmail-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/gmail-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/gmail-assets/config/rig.json b/plugins/gmail-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/gmail-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/gmail-assets/src/tsdoc-metadata.json b/plugins/gmail-assets/src/tsdoc-metadata.json new file mode 100644 index 0000000000..f9032ca5ce --- /dev/null +++ b/plugins/gmail-assets/src/tsdoc-metadata.json @@ -0,0 +1,11 @@ +// This file is read by tools that parse documentation comments conforming to the TSDoc standard. +// It should be published with your NPM package. It should not be tracked by Git. +{ + "tsdocVersion": "0.12", + "toolPackages": [ + { + "packageName": "@microsoft/api-extractor", + "packageVersion": "7.19.2" + } + ] +} diff --git a/plugins/inventory-assets/.eslintrc.js b/plugins/inventory-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/inventory-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/inventory-assets/config/rig.json b/plugins/inventory-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/inventory-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/inventory-assets/package.json b/plugins/inventory-assets/package.json index a1fa61dbd8..7280b82875 100644 --- a/plugins/inventory-assets/package.json +++ b/plugins/inventory-assets/package.json @@ -1,7 +1,7 @@ { "name": "@anticrm/inventory-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { diff --git a/plugins/inventory-assets/src/index.ts b/plugins/inventory-assets/src/index.ts index 84d180e237..d0375c2e51 100644 --- a/plugins/inventory-assets/src/index.ts +++ b/plugins/inventory-assets/src/index.ts @@ -17,7 +17,7 @@ import { addStringsLoader, loadMetadata } from '@anticrm/platform' import inventory, { inventoryId } from '@anticrm/inventory' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(inventory.icon, { InventoryApplication: `${icons}#inventory`, Categories: `${icons}#categories`, diff --git a/plugins/inventory/config/rig.json b/plugins/inventory/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/inventory/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/lead-assets/.eslintrc.js b/plugins/lead-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/lead-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/lead-assets/config/rig.json b/plugins/lead-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/lead-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/lead-assets/package.json b/plugins/lead-assets/package.json index e4de672622..9b482b56a2 100644 --- a/plugins/lead-assets/package.json +++ b/plugins/lead-assets/package.json @@ -1,17 +1,31 @@ { "name": "@anticrm/lead-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "", - "build:docs": "api-extractor run --local", - "lint": "ts-standard src", - "lint:fix": "ts-standard --fix src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "build": "heft build", + "build:docs": "", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" + }, + "devDependencies": { + "@anticrm/platform-rig": "~0.6.0", + "@types/heft-jest": "^1.0.2", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "eslint-config-standard-with-typescript": "^21.0.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.1", + "eslint": "^7.32.0", + "prettier": "^2.4.1", + "@rushstack/heft": "^0.41.1", + "@types/node": "^16.4.10" }, - "devDependencies": {}, "dependencies": { "@anticrm/platform": "~0.6.5", "@anticrm/lead": "~0.6.0" diff --git a/plugins/lead-assets/src/index.ts b/plugins/lead-assets/src/index.ts index 488b132755..5af0e98356 100644 --- a/plugins/lead-assets/src/index.ts +++ b/plugins/lead-assets/src/index.ts @@ -15,9 +15,9 @@ // import { addStringsLoader, loadMetadata } from '@anticrm/platform' -import lead, {leadId} from '@anticrm/lead' +import lead, { leadId } from '@anticrm/lead' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(lead.icon, { Funnel: `${icons}#funnel`, Lead: `${icons}#lead`, diff --git a/plugins/lead-resources/package.json b/plugins/lead-resources/package.json index 2b224857a8..b34d4c47c3 100644 --- a/plugins/lead-resources/package.json +++ b/plugins/lead-resources/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "echo 'no build for ui'", "build:docs": "api-extractor run --local", - "lint": "svelte-check && eslint", + "lint": "eslint", "lint:fix": "eslint --fix src", "format": "prettier --write --plugin-search-dir=. src && eslint --fix src" }, diff --git a/plugins/lead/config/rig.json b/plugins/lead/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/lead/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/lead/src/index.ts b/plugins/lead/src/index.ts index 1a205825a1..8a456fe244 100644 --- a/plugins/lead/src/index.ts +++ b/plugins/lead/src/index.ts @@ -28,8 +28,6 @@ export interface Funnel extends SpaceWithStates {} /** * @public - * - * @Mixin */ export interface Customer extends Contact { @@ -55,6 +53,9 @@ export interface Lead extends Task { */ export const leadId = 'lead' as Plugin +/** + * @public + */ const lead = plugin(leadId, { class: { Lead: '' as Ref>, @@ -73,4 +74,7 @@ const lead = plugin(leadId, { } }) +/** + * @public + */ export default lead diff --git a/plugins/login-assets/.eslintrc.js b/plugins/login-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/login-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/login-assets/config/rig.json b/plugins/login-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/login-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/login-assets/package.json b/plugins/login-assets/package.json index 2a645e7a5a..b195a0d2ad 100644 --- a/plugins/login-assets/package.json +++ b/plugins/login-assets/package.json @@ -1,17 +1,31 @@ { "name": "@anticrm/login-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "", - "build:docs": "api-extractor run --local", - "lint": "ts-standard src", - "lint:fix": "ts-standard --fix src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "build": "heft build", + "build:docs": "", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" + }, + "devDependencies": { + "@anticrm/platform-rig": "~0.6.0", + "@types/heft-jest": "^1.0.2", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "eslint-config-standard-with-typescript": "^21.0.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.1", + "eslint": "^7.32.0", + "prettier": "^2.4.1", + "@rushstack/heft": "^0.41.1", + "@types/node": "^16.4.10" }, - "devDependencies": {}, "dependencies": { "@anticrm/platform": "~0.6.5", "@anticrm/login": "~0.6.1" diff --git a/plugins/login-assets/src/index.ts b/plugins/login-assets/src/index.ts index 1941a8fca9..78da3c6783 100644 --- a/plugins/login-assets/src/index.ts +++ b/plugins/login-assets/src/index.ts @@ -1,15 +1,15 @@ // // Copyright © 2020, 2021 Anticrm Platform Contributors. // Copyright © 2021 Hardcore Engineering Inc. -// +// // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// +// // See the License for the specific language governing permissions and // limitations under the License. // @@ -19,4 +19,4 @@ import { loginId } from '@anticrm/login' addStringsLoader(loginId, async (lang: string) => { return await import(`../lang/${lang}.json`) -}) \ No newline at end of file +}) diff --git a/plugins/login-resources/package.json b/plugins/login-resources/package.json index 3e5bdcef40..f441dc9583 100644 --- a/plugins/login-resources/package.json +++ b/plugins/login-resources/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "echo 'no build for ui'", "build:docs": "api-extractor run --local", - "lint": "svelte-check && eslint", + "lint": "eslint", "lint:fix": "eslint --fix src", "format": "prettier --write --plugin-search-dir=. src && eslint --fix src" }, diff --git a/plugins/notification-resources/package.json b/plugins/notification-resources/package.json index 6bd5570599..11afbfdc45 100644 --- a/plugins/notification-resources/package.json +++ b/plugins/notification-resources/package.json @@ -3,6 +3,7 @@ "version": "0.6.0", "main": "lib/index.js", "author": "Anticrm Platform Contributors", + "template": "@anticrm/platform-package", "license": "EPL-2.0", "scripts": { "build": "heft build", @@ -25,7 +26,12 @@ "prettier": "^2.4.1", "@rushstack/heft": "^0.41.1", "typescript": "^4.3.5", - "svelte-check": "~2.3.0" + "svelte-check": "^2.2.10", + "svelte-loader": "^3.1.2", + "sass": "^1.37.5", + "svelte-preprocess": "^4.7.4", + "eslint-plugin-svelte3": "~3.2.1", + "prettier-plugin-svelte": "^2.2.0" }, "dependencies": { "@anticrm/presentation": "~0.6.2", diff --git a/plugins/notification-resources/postcss.config.js b/plugins/notification-resources/postcss.config.js new file mode 100644 index 0000000000..88752c6cb0 --- /dev/null +++ b/plugins/notification-resources/postcss.config.js @@ -0,0 +1,5 @@ +module.exports = { + plugins: [ + require('autoprefixer') + ] +} diff --git a/plugins/recruit-assets/.eslintrc.js b/plugins/recruit-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/recruit-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/recruit-assets/config/rig.json b/plugins/recruit-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/recruit-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/recruit-assets/package.json b/plugins/recruit-assets/package.json index dd15bd1758..d119d40a2f 100644 --- a/plugins/recruit-assets/package.json +++ b/plugins/recruit-assets/package.json @@ -1,17 +1,31 @@ { "name": "@anticrm/recruit-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "", - "build:docs": "api-extractor run --local", - "lint": "ts-standard src", - "lint:fix": "ts-standard --fix src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "build": "heft build", + "build:docs": "", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" + }, + "devDependencies": { + "@anticrm/platform-rig": "~0.6.0", + "@types/heft-jest": "^1.0.2", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "eslint-config-standard-with-typescript": "^21.0.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.1", + "eslint": "^7.32.0", + "prettier": "^2.4.1", + "@rushstack/heft": "^0.41.1", + "@types/node": "^16.4.10" }, - "devDependencies": {}, "dependencies": { "@anticrm/platform": "~0.6.5", "@anticrm/recruit": "~0.6.0" diff --git a/plugins/recruit-assets/src/index.ts b/plugins/recruit-assets/src/index.ts index 70149e02e8..dabcbb0f91 100644 --- a/plugins/recruit-assets/src/index.ts +++ b/plugins/recruit-assets/src/index.ts @@ -1,14 +1,14 @@ // // Copyright © 2020 Anticrm Platform Contributors. -// +// // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// +// // See the License for the specific language governing permissions and // limitations under the License. // @@ -16,7 +16,7 @@ import { loadMetadata, addStringsLoader } from '@anticrm/platform' import recruit, { recruitId } from '@anticrm/recruit' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(recruit.icon, { RecruitApplication: `${icons}#recruitment`, Vacancy: `${icons}#vacancy`, diff --git a/plugins/recruit-resources/package.json b/plugins/recruit-resources/package.json index 8aa13f1b25..0523821012 100644 --- a/plugins/recruit-resources/package.json +++ b/plugins/recruit-resources/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "echo 'no build for ui'", "build:docs": "api-extractor run --local", - "lint": "svelte-check && eslint", + "lint": "eslint", "lint:fix": "eslint --fix src", "format": "prettier --write --plugin-search-dir=. src && eslint --fix src" }, @@ -43,7 +43,7 @@ "@anticrm/login": "~0.6.1", "deep-equal": "^2.0.5", "@anticrm/panel": "~0.6.0", - "@anticrm/activity":"~0.6.0", + "@anticrm/activity": "~0.6.0", "@anticrm/attachment": "~0.6.0", "@anticrm/attachment-resources": "~0.6.0", "@anticrm/chunter-resources": "~0.6.0", diff --git a/plugins/setting-assets/.eslintrc.js b/plugins/setting-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/setting-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/setting-assets/config/rig.json b/plugins/setting-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/setting-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/setting-assets/package.json b/plugins/setting-assets/package.json index 1f5ba7be54..8589c0f4a3 100644 --- a/plugins/setting-assets/package.json +++ b/plugins/setting-assets/package.json @@ -1,17 +1,31 @@ { "name": "@anticrm/setting-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "", - "build:docs": "api-extractor run --local", - "lint": "ts-standard src", - "lint:fix": "ts-standard --fix src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "build": "heft build", + "build:docs": "", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" + }, + "devDependencies": { + "@anticrm/platform-rig": "~0.6.0", + "@types/heft-jest": "^1.0.2", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "eslint-config-standard-with-typescript": "^21.0.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.1", + "eslint": "^7.32.0", + "prettier": "^2.4.1", + "@rushstack/heft": "^0.41.1", + "@types/node": "^16.4.10" }, - "devDependencies": {}, "dependencies": { "@anticrm/platform": "~0.6.5", "@anticrm/setting": "~0.6.0" diff --git a/plugins/setting-assets/src/index.ts b/plugins/setting-assets/src/index.ts index 946e0c42ed..d464ad5620 100644 --- a/plugins/setting-assets/src/index.ts +++ b/plugins/setting-assets/src/index.ts @@ -1,14 +1,14 @@ // // Copyright © 2020 Anticrm Platform Contributors. -// +// // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// +// // See the License for the specific language governing permissions and // limitations under the License. // @@ -16,7 +16,7 @@ import { loadMetadata, addStringsLoader } from '@anticrm/platform' import setting, { settingId } from '@anticrm/setting' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(setting.icon, { EditProfile: `${icons}#edit`, Password: `${icons}#password`, diff --git a/plugins/task-assets/.eslintrc.js b/plugins/task-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/task-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/task-assets/config/rig.json b/plugins/task-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/task-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/task-assets/package.json b/plugins/task-assets/package.json index 0038bcca48..4a140373c2 100644 --- a/plugins/task-assets/package.json +++ b/plugins/task-assets/package.json @@ -1,17 +1,31 @@ { "name": "@anticrm/task-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "", - "build:docs": "api-extractor run --local", - "lint": "ts-standard src", - "lint:fix": "ts-standard --fix src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "build": "heft build", + "build:docs": "", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" + }, + "devDependencies": { + "@anticrm/platform-rig": "~0.6.0", + "@types/heft-jest": "^1.0.2", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "eslint-config-standard-with-typescript": "^21.0.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.1", + "eslint": "^7.32.0", + "prettier": "^2.4.1", + "@rushstack/heft": "^0.41.1", + "@types/node": "^16.4.10" }, - "devDependencies": {}, "dependencies": { "@anticrm/platform": "~0.6.5", "@anticrm/task": "~0.6.0" diff --git a/plugins/task-assets/src/index.ts b/plugins/task-assets/src/index.ts index b18b8aea69..8f668a0405 100644 --- a/plugins/task-assets/src/index.ts +++ b/plugins/task-assets/src/index.ts @@ -1,22 +1,22 @@ // // Copyright © 2020 Anticrm Platform Contributors. -// +// // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// +// // See the License for the specific language governing permissions and // limitations under the License. // import { addStringsLoader, loadMetadata } from '@anticrm/platform' -import task, {taskId} from '@anticrm/task' +import task, { taskId } from '@anticrm/task' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(task.icon, { Task: `${icons}#task`, Kanban: `${icons}#kanban`, diff --git a/plugins/telegram-assets/.eslintrc.js b/plugins/telegram-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/telegram-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/telegram-assets/config/rig.json b/plugins/telegram-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/telegram-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/telegram-assets/package.json b/plugins/telegram-assets/package.json index b9d362d705..e51582776e 100644 --- a/plugins/telegram-assets/package.json +++ b/plugins/telegram-assets/package.json @@ -1,7 +1,7 @@ { "name": "@anticrm/telegram-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { diff --git a/plugins/telegram-assets/src/index.ts b/plugins/telegram-assets/src/index.ts index cf708b91c2..ff188c38aa 100644 --- a/plugins/telegram-assets/src/index.ts +++ b/plugins/telegram-assets/src/index.ts @@ -15,6 +15,6 @@ // import { addStringsLoader } from '@anticrm/platform' -import {telegramId} from '@anticrm/telegram' +import { telegramId } from '@anticrm/telegram' addStringsLoader(telegramId, async (lang: string) => await import(`../lang/${lang}.json`)) diff --git a/plugins/templates-assets/.eslintrc.js b/plugins/templates-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/templates-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/templates-assets/config/rig.json b/plugins/templates-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/templates-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/templates-assets/package.json b/plugins/templates-assets/package.json index 90ec637169..84b7f6aee6 100644 --- a/plugins/templates-assets/package.json +++ b/plugins/templates-assets/package.json @@ -1,7 +1,7 @@ { "name": "@anticrm/templates-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { diff --git a/plugins/templates-assets/src/index.ts b/plugins/templates-assets/src/index.ts index 7bef5467dd..4be2259d6b 100644 --- a/plugins/templates-assets/src/index.ts +++ b/plugins/templates-assets/src/index.ts @@ -17,7 +17,7 @@ import { addStringsLoader, loadMetadata } from '@anticrm/platform' import templates, { templatesId } from '@anticrm/templates' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(templates.icon, { Templates: `${icons}#templates` }) diff --git a/plugins/view-assets/.eslintrc.js b/plugins/view-assets/.eslintrc.js new file mode 100644 index 0000000000..5da5872d4a --- /dev/null +++ b/plugins/view-assets/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + extends: ['./node_modules/@anticrm/platform-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json' + } +} diff --git a/plugins/view-assets/config/rig.json b/plugins/view-assets/config/rig.json new file mode 100644 index 0000000000..af1257a896 --- /dev/null +++ b/plugins/view-assets/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/platform-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/plugins/view-assets/lang/en.json b/plugins/view-assets/lang/en.json index 081811d37e..7ccd894354 100644 --- a/plugins/view-assets/lang/en.json +++ b/plugins/view-assets/lang/en.json @@ -4,6 +4,9 @@ "SelectToMove": "Select the {classLabel} you want to move {class} to.", "Delete": "Delete", "Move": "Move", - "Cancel": "Cancel" + "Cancel": "Cancel", + "LabelYes": "Yes", + "LabelNo": "No", + "LabelNA": "N/A" } } diff --git a/plugins/view-assets/package.json b/plugins/view-assets/package.json index a0a67881f1..f296479dd7 100644 --- a/plugins/view-assets/package.json +++ b/plugins/view-assets/package.json @@ -1,17 +1,31 @@ { "name": "@anticrm/view-assets", "version": "0.6.0", - "main": "src/index.ts", + "main": "lib/index.js", "author": "Anticrm Platform Contributors", "license": "EPL-2.0", "scripts": { - "build": "", - "build:docs": "api-extractor run --local", - "lint": "ts-standard src", - "lint:fix": "ts-standard --fix src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "build": "heft build", + "build:docs": "", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write src && eslint --fix src", + "build:watch": "tsc" + }, + "devDependencies": { + "@anticrm/platform-rig": "~0.6.0", + "@types/heft-jest": "^1.0.2", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "eslint-config-standard-with-typescript": "^21.0.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.1", + "eslint": "^7.32.0", + "prettier": "^2.4.1", + "@rushstack/heft": "^0.41.1", + "@types/node": "^16.4.10" }, - "devDependencies": {}, "dependencies": { "@anticrm/platform": "~0.6.5", "@anticrm/view": "~0.6.0" diff --git a/plugins/view-assets/src/index.ts b/plugins/view-assets/src/index.ts index 8d4e6ad4b6..3ac661fe56 100644 --- a/plugins/view-assets/src/index.ts +++ b/plugins/view-assets/src/index.ts @@ -1,14 +1,14 @@ // // Copyright © 2020 Anticrm Platform Contributors. -// +// // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// +// // See the License for the specific language governing permissions and // limitations under the License. // @@ -16,7 +16,7 @@ import { addStringsLoader, loadMetadata } from '@anticrm/platform' import view, { viewId } from '@anticrm/view' -const icons = require('../assets/icons.svg') +const icons = require('../assets/icons.svg') as string // eslint-disable-line loadMetadata(view.icon, { Table: `${icons}#table`, Delete: `${icons}#delete`, diff --git a/plugins/view-resources/package.json b/plugins/view-resources/package.json index f4a8fb2e0f..cfd40102b4 100644 --- a/plugins/view-resources/package.json +++ b/plugins/view-resources/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "echo 'no build for ui'", "build:docs": "api-extractor run --local", - "lint": "svelte-check && eslint", + "lint": "eslint", "lint:fix": "eslint --fix src", "format": "prettier --write --plugin-search-dir=. src && eslint --fix src" }, diff --git a/plugins/view-resources/src/components/BooleanEditor.svelte b/plugins/view-resources/src/components/BooleanEditor.svelte index eba407cafc..7feddd279a 100644 --- a/plugins/view-resources/src/components/BooleanEditor.svelte +++ b/plugins/view-resources/src/components/BooleanEditor.svelte @@ -17,16 +17,11 @@
{/if} - +