Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(platform): Update ESLint linting command to include .tsx files #667

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

kriptonian1
Copy link
Contributor

@kriptonian1 kriptonian1 commented Jan 26, 2025

User description

Description

This pull request includes a small change to the apps/platform/package.json file. The change updates the lint script to include .tsx files in addition to .ts files for linting.

Mentions

@rajdip-b @poswalsameer

Screenshots of relevant screens

image

Developer's checklist

  • My PR follows the style guidelines of this project
  • I have performed a self-check on my work

If changes are made in the code:

  • I have followed the coding guidelines
  • My changes in code generate no new warnings
  • My changes are breaking another fix/feature of the project
  • I have added test cases to show that my feature works
  • I have added relevant screenshots in my PR
  • There are no UI/UX issues

Documentation Update

  • This PR requires an update to the documentation at docs.keyshade.xyz
  • I have made the necessary updates to the documentation, or no documentation changes are required.

PR Type

Enhancement


Description

  • Updated the ESLint linting command to include .tsx files.

  • Modified apps/platform/package.json to enhance linting coverage.


Changes walkthrough 📝

Relevant files
Enhancement
package.json
Enhanced linting script to include `.tsx` files                   

apps/platform/package.json

  • Updated the lint script to include .tsx files.
  • Enhanced linting command to cover both .ts and .tsx files.
  • +1/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • Copy link
    Contributor

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    Copy link
    Contributor

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    Copy link
    Contributor

    codiumai-pr-agent-free bot commented Jan 26, 2025

    CI Feedback 🧐

    (Feedback updated until commit 1a9635c)

    A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

    Action: Validate Platform

    Failed stage: Lint [❌]

    Failed test name: @keyshade/platform#lint

    Failure summary:

    The action failed due to two main issues:
    1. ESLint errors in the platform app:
    - Multiple
    TypeScript errors related to unsafe type 'any' assignments in various files
    - 12 errors and 9
    warnings total, primarily "@typescript-eslint/no-unsafe-argument" violations
    2. Package compilation
    failures:
    - secp256k1 and eccrypto packages failed to compile due to compatibility issues with
    Node v20.18.1
    - These packages fell back to pure JS implementation, but the lint errors prevented
    the build from succeeding

    Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    198:  .../node_modules/nice-napi install$ node-gyp-build
    199:  .../node_modules/@nestjs/core postinstall$ opencollective || exit 0
    200:  .../node_modules/@sentry/profiling-node install: @sentry/profiling-node: Precompiled binary found, attempting to load /home/runner/work/keyshade/keyshade/node_modules/.pnpm/@[email protected]/node_modules/@sentry/profiling-node/lib/sentry_cpu_profiler-linux-x64-glibc-115.node
    201:  .../node_modules/@sentry/profiling-node install: @sentry/profiling-node: Precompiled binary found, skipping build from source.
    202:  .../node_modules/@sentry/profiling-node install: Done
    203:  .../[email protected]/node_modules/sharp install: Done
    204:  .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js
    205:  .../node_modules/@sentry/cli postinstall: Done
    206:  .../node_modules/secp256k1 install$ npm run rebuild || echo "Secp256k1 bindings compilation fail. Pure JS implementation will be used."
    ...
    
    254:  .../node_modules/secp256k1 install: gyp info spawn args '-Goutput_dir=.'
    255:  .../node_modules/secp256k1 install: gyp info spawn args ]
    256:  .../node_modules/secp256k1 install: gyp info spawn make
    257:  .../node_modules/secp256k1 install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    258:  .../node_modules/secp256k1 install: make: Entering directory '/home/runner/work/keyshade/keyshade/node_modules/.pnpm/[email protected]/node_modules/secp256k1/build'
    259:  .../node_modules/secp256k1 install:   CXX(target) Release/obj.target/secp256k1/src/addon.o
    260:  .../node_modules/secp256k1 install: In file included from ../../../../[email protected]/node_modules/nan/nan.h:174,
    261:  .../node_modules/secp256k1 install:                  from ../src/addon.cc:2:
    262:  .../node_modules/secp256k1 install: ../../../../[email protected]/node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
    263:  .../node_modules/secp256k1 install:    55 | typedef v8::Local<v8::AccessorSignature> Sig;
    264:  .../node_modules/secp256k1 install:       |                       ^~~~~~~~~~~~~~~~~
    265:  .../node_modules/secp256k1 install: ../../../../[email protected]/node_modules/nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
    266:  .../node_modules/secp256k1 install:    55 | typedef v8::Local<v8::AccessorSignature> Sig;
    267:  .../node_modules/secp256k1 install:       |                                        ^
    268:  .../node_modules/secp256k1 install: ../../../../[email protected]/node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(AsyncWorker*)’:
    269:  .../node_modules/secp256k1 install: ../../../../[email protected]/node_modules/nan/nan.h:2298:7: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
    270:  .../node_modules/secp256k1 install:  2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
    271:  .../node_modules/secp256k1 install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    272:  .../node_modules/secp256k1 install: ../../../../[email protected]/node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, imp::Sig)’:
    273:  .../node_modules/secp256k1 install: ../../../../[email protected]/node_modules/nan/nan.h:2536:19: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’
    ...
    
    300:  .../node_modules/secp256k1 install: /home/runner/.cache/node-gyp/20.18.1/include/node/v8-template.h:816:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
    301:  .../node_modules/secp256k1 install:   816 |   void SetAccessor(
    302:  .../node_modules/secp256k1 install:       |        ^~~~~~~~~~~
    303:  .../node_modules/secp256k1 install: /home/runner/.cache/node-gyp/20.18.1/include/node/v8-template.h:821:22: note:   no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
    304:  .../node_modules/secp256k1 install:   821 |       SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
    305:  .../node_modules/secp256k1 install:       |       ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    306:  .../node_modules/secp256k1 install: In file included from ../../../../[email protected]/node_modules/nan/nan.h:2884:
    307:  .../node_modules/secp256k1 install: ../../../../[email protected]/node_modules/nan/nan_typedarray_contents.h: In constructor ‘Nan::TypedArrayContents<T>::TypedArrayContents(v8::Local<v8::Value>)’:
    308:  .../node_modules/secp256k1 install: ../../../../[email protected]/node_modules/nan/nan_typedarray_contents.h:34:43: error: ‘class v8::ArrayBuffer’ has no member named ‘GetContents’
    ...
    
    313:  .../node_modules/secp256k1 install:  1232 |       (node::addon_register_func) (regfunc),                          \
    314:  .../node_modules/secp256k1 install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    315:  .../node_modules/secp256k1 install: /home/runner/.cache/node-gyp/20.18.1/include/node/node.h:1266:3: note: in expansion of macro ‘NODE_MODULE_X’
    316:  .../node_modules/secp256k1 install:  1266 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
    317:  .../node_modules/secp256k1 install:       |   ^~~~~~~~~~~~~
    318:  .../node_modules/secp256k1 install: ../src/addon.cc:50:1: note: in expansion of macro ‘NODE_MODULE’
    319:  .../node_modules/secp256k1 install:    50 | NODE_MODULE(secp256k1, Init)
    320:  .../node_modules/secp256k1 install:       | ^~~~~~~~~~~
    321:  .../node_modules/secp256k1 install: make: *** [secp256k1.target.mk:160: Release/obj.target/secp256k1/src/addon.o] Error 1
    322:  .../node_modules/secp256k1 install: make: Leaving directory '/home/runner/work/keyshade/keyshade/node_modules/.pnpm/[email protected]/node_modules/secp256k1/build'
    323:  .../node_modules/secp256k1 install: gyp ERR! build error 
    324:  .../node_modules/secp256k1 install: gyp ERR! stack Error: `make` failed with exit code: 2
    325:  .../node_modules/secp256k1 install: gyp ERR! stack at ChildProcess.<anonymous> (/home/runner/work/keyshade/keyshade/node_modules/.pnpm/[email protected]/node_modules/npm/node_modules/node-gyp/lib/build.js:216:23)
    326:  .../node_modules/secp256k1 install: gyp ERR! System Linux 6.8.0-1020-azure
    327:  .../node_modules/secp256k1 install: gyp ERR! command "/opt/hostedtoolcache/node/20.18.1/x64/bin/node" "/home/runner/work/keyshade/keyshade/node_modules/.pnpm/[email protected]/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    328:  .../node_modules/secp256k1 install: gyp ERR! cwd /home/runner/work/keyshade/keyshade/node_modules/.pnpm/[email protected]/node_modules/secp256k1
    329:  .../node_modules/secp256k1 install: gyp ERR! node -v v20.18.1
    330:  .../node_modules/secp256k1 install: gyp ERR! node-gyp -v v10.2.0
    331:  .../node_modules/secp256k1 install: gyp ERR! not ok 
    332:  .../node_modules/secp256k1 install: Secp256k1 bindings compilation fail. Pure JS implementation will be used.
    ...
    
    364:  .../[email protected]/node_modules/eccrypto install: gyp info spawn args '-Goutput_dir=.'
    365:  .../[email protected]/node_modules/eccrypto install: gyp info spawn args ]
    366:  .../[email protected]/node_modules/eccrypto install: gyp info spawn make
    367:  .../[email protected]/node_modules/eccrypto install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    368:  .../[email protected]/node_modules/eccrypto install: make: Entering directory '/home/runner/work/keyshade/keyshade/node_modules/.pnpm/[email protected]/node_modules/eccrypto/build'
    369:  .../[email protected]/node_modules/eccrypto install:   CXX(target) Release/obj.target/ecdh/ecdh.o
    370:  .../[email protected]/node_modules/eccrypto install: In file included from ../../../../[email protected]/node_modules/nan/nan.h:174,
    371:  .../[email protected]/node_modules/eccrypto install:                  from ../ecdh.cc:2:
    372:  .../[email protected]/node_modules/eccrypto install: ../../../../[email protected]/node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
    373:  .../[email protected]/node_modules/eccrypto install:    55 | typedef v8::Local<v8::AccessorSignature> Sig;
    374:  .../[email protected]/node_modules/eccrypto install:       |                       ^~~~~~~~~~~~~~~~~
    375:  .../[email protected]/node_modules/eccrypto install: ../../../../[email protected]/node_modules/nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
    376:  .../[email protected]/node_modules/eccrypto install:    55 | typedef v8::Local<v8::AccessorSignature> Sig;
    377:  .../[email protected]/node_modules/eccrypto install:       |                                        ^
    378:  .../[email protected]/node_modules/eccrypto install: ../../../../[email protected]/node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(AsyncWorker*)’:
    379:  .../[email protected]/node_modules/eccrypto install: ../../../../[email protected]/node_modules/nan/nan.h:2298:7: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
    380:  .../[email protected]/node_modules/eccrypto install:  2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
    381:  .../[email protected]/node_modules/eccrypto install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    382:  .../[email protected]/node_modules/eccrypto install: ../../../../[email protected]/node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, imp::Sig)’:
    383:  .../[email protected]/node_modules/eccrypto install: ../../../../[email protected]/node_modules/nan/nan.h:2536:19: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’
    ...
    
    410:  .../[email protected]/node_modules/eccrypto install: /home/runner/.cache/node-gyp/20.18.1/include/node/v8-template.h:816:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
    411:  .../[email protected]/node_modules/eccrypto install:   816 |   void SetAccessor(
    412:  .../[email protected]/node_modules/eccrypto install:       |        ^~~~~~~~~~~
    413:  .../[email protected]/node_modules/eccrypto install: /home/runner/.cache/node-gyp/20.18.1/include/node/v8-template.h:821:22: note:   no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
    414:  .../[email protected]/node_modules/eccrypto install:   821 |       SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
    415:  .../[email protected]/node_modules/eccrypto install:       |       ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    416:  .../[email protected]/node_modules/eccrypto install: In file included from ../../../../[email protected]/node_modules/nan/nan.h:2884:
    417:  .../[email protected]/node_modules/eccrypto install: ../../../../[email protected]/node_modules/nan/nan_typedarray_contents.h: In constructor ‘Nan::TypedArrayContents<T>::TypedArrayContents(v8::Local<v8::Value>)’:
    418:  .../[email protected]/node_modules/eccrypto install: ../../../../[email protected]/node_modules/nan/nan_typedarray_contents.h:34:43: error: ‘class v8::ArrayBuffer’ has no member named ‘GetContents’
    419:  .../[email protected]/node_modules/eccrypto install:    34 |       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
    420:  .../[email protected]/node_modules/eccrypto install:       |                                           ^~~~~~~~~~~
    421:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc: In function ‘int derive(const uint8_t*, const uint8_t*, uint8_t*)’:
    422:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:37:41: warning: ‘EC_KEY* EC_KEY_new_by_curve_name(int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
    423:  .../[email protected]/node_modules/eccrypto install:    37 |   CHECK((pkey = EC_KEY_new_by_curve_name(NID_secp256k1)) != NULL);
    424:  .../[email protected]/node_modules/eccrypto install:       |                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
    425:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:14:32: note: in definition of macro ‘CHECK’
    426:  .../[email protected]/node_modules/eccrypto install:    14 | #define CHECK(cond) do { if (!(cond)) goto error; } while (0)
    ...
    
    428:  .../[email protected]/node_modules/eccrypto install: In file included from ../ecdh.cc:4:
    429:  .../[email protected]/node_modules/eccrypto install: /home/runner/.cache/node-gyp/20.18.1/include/node/openssl/ec.h:998:31: note: declared here
    430:  .../[email protected]/node_modules/eccrypto install:   998 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);
    431:  .../[email protected]/node_modules/eccrypto install:       |                               ^~~~~~~~~~~~~~~~~~~~~~~~
    432:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:38:31: warning: ‘int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
    433:  .../[email protected]/node_modules/eccrypto install:    38 |   CHECK(EC_KEY_set_private_key(pkey, pkey_bn) == 1);
    434:  .../[email protected]/node_modules/eccrypto install:       |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
    435:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:14:32: note: in definition of macro ‘CHECK’
    436:  .../[email protected]/node_modules/eccrypto install:    14 | #define CHECK(cond) do { if (!(cond)) goto error; } while (0)
    437:  .../[email protected]/node_modules/eccrypto install:       |                                ^~~~
    438:  .../[email protected]/node_modules/eccrypto install: /home/runner/.cache/node-gyp/20.18.1/include/node/openssl/ec.h:1056:27: note: declared here
    439:  .../[email protected]/node_modules/eccrypto install:  1056 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv);
    440:  .../[email protected]/node_modules/eccrypto install:       |                           ^~~~~~~~~~~~~~~~~~~~~~
    441:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:40:29: warning: ‘int EVP_PKEY_set1_EC_KEY(EVP_PKEY*, ec_key_st*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
    442:  .../[email protected]/node_modules/eccrypto install:    40 |   CHECK(EVP_PKEY_set1_EC_KEY(evp_pkey, pkey) == 1);
    443:  .../[email protected]/node_modules/eccrypto install:       |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
    444:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:14:32: note: in definition of macro ‘CHECK’
    445:  .../[email protected]/node_modules/eccrypto install:    14 | #define CHECK(cond) do { if (!(cond)) goto error; } while (0)
    ...
    
    447:  .../[email protected]/node_modules/eccrypto install: In file included from ../ecdh.cc:3:
    448:  .../[email protected]/node_modules/eccrypto install: /home/runner/.cache/node-gyp/20.18.1/include/node/openssl/evp.h:1372:5: note: declared here
    449:  .../[email protected]/node_modules/eccrypto install:  1372 | int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key);
    450:  .../[email protected]/node_modules/eccrypto install:       |     ^~~~~~~~~~~~~~~~~~~~
    451:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:43:44: warning: ‘EC_KEY* EC_KEY_new_by_curve_name(int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
    452:  .../[email protected]/node_modules/eccrypto install:    43 |   CHECK((peerkey = EC_KEY_new_by_curve_name(NID_secp256k1)) != NULL);
    453:  .../[email protected]/node_modules/eccrypto install:       |                    ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
    454:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:14:32: note: in definition of macro ‘CHECK’
    455:  .../[email protected]/node_modules/eccrypto install:    14 | #define CHECK(cond) do { if (!(cond)) goto error; } while (0)
    ...
    
    486:  .../[email protected]/node_modules/eccrypto install:       |                                                  ~~~~~~~~~~~~~
    487:  .../[email protected]/node_modules/eccrypto install: /home/runner/.cache/node-gyp/20.18.1/include/node/openssl/ec.h:1122:27: note: declared here
    488:  .../[email protected]/node_modules/eccrypto install:  1122 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key,
    489:  .../[email protected]/node_modules/eccrypto install:       |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    490:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:69:29: warning: ‘int EVP_PKEY_set1_EC_KEY(EVP_PKEY*, ec_key_st*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
    491:  .../[email protected]/node_modules/eccrypto install:    69 |   CHECK(EVP_PKEY_set1_EC_KEY(evp_peerkey, peerkey) == 1);
    492:  .../[email protected]/node_modules/eccrypto install:       |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    493:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:14:32: note: in definition of macro ‘CHECK’
    494:  .../[email protected]/node_modules/eccrypto install:    14 | #define CHECK(cond) do { if (!(cond)) goto error; } while (0)
    ...
    
    513:  .../[email protected]/node_modules/eccrypto install:  1232 |       (node::addon_register_func) (regfunc),                          \
    514:  .../[email protected]/node_modules/eccrypto install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    515:  .../[email protected]/node_modules/eccrypto install: /home/runner/.cache/node-gyp/20.18.1/include/node/node.h:1266:3: note: in expansion of macro ‘NODE_MODULE_X’
    516:  .../[email protected]/node_modules/eccrypto install:  1266 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
    517:  .../[email protected]/node_modules/eccrypto install:       |   ^~~~~~~~~~~~~
    518:  .../[email protected]/node_modules/eccrypto install: ../ecdh.cc:131:1: note: in expansion of macro ‘NODE_MODULE’
    519:  .../[email protected]/node_modules/eccrypto install:   131 | NODE_MODULE(ecdh, InitAll)
    520:  .../[email protected]/node_modules/eccrypto install:       | ^~~~~~~~~~~
    521:  .../[email protected]/node_modules/eccrypto install: make: *** [ecdh.target.mk:114: Release/obj.target/ecdh/ecdh.o] Error 1
    522:  .../[email protected]/node_modules/eccrypto install: make: Leaving directory '/home/runner/work/keyshade/keyshade/node_modules/.pnpm/[email protected]/node_modules/eccrypto/build'
    523:  .../[email protected]/node_modules/eccrypto install: gyp ERR! build error 
    524:  .../[email protected]/node_modules/eccrypto install: gyp ERR! stack Error: `make` failed with exit code: 2
    ...
    
    601:  https://turbo.build/repo/docs/telemetry
    602:  • Packages in scope: @keyshade/platform
    603:  • Running lint in 1 packages
    604:  • Remote caching disabled
    605:  �[;31m@keyshade/platform:lint�[;0m
    606:  cache miss, executing 909741fb77a4d1a9
    607:  > @keyshade/[email protected] lint /home/runner/work/keyshade/keyshade/apps/platform
    608:  > eslint "src/**/*.{ts,tsx}" --fix --config .eslintrc.cjs
    609:  ##[error]@keyshade/platform#lint: command (/home/runner/work/keyshade/keyshade/apps/platform) /home/runner/setup-pnpm/node_modules/.bin/pnpm run lint exited (1)
    610:  /home/runner/work/keyshade/keyshade/apps/platform/src/app/(main)/page.tsx
    611:  ##[error]  45:21  error  Unsafe argument of type `any` assigned to a parameter of type `SetStateAction<ProjectWithCount[]>`  @typescript-eslint/no-unsafe-argument
    612:  /home/runner/work/keyshade/keyshade/apps/platform/src/app/(main)/project/[project]/@secret/page.tsx
    613:  ##[error]  54:20  error  Unsafe argument of type `any` assigned to a parameter of type `SetStateAction<Secret[]>`  @typescript-eslint/no-unsafe-argument
    614:  /home/runner/work/keyshade/keyshade/apps/platform/src/app/(main)/project/[project]/@variable/page.tsx
    615:  ##[error]  57:22  error  Unsafe argument of type `any` assigned to a parameter of type `SetStateAction<Variable[]>`  @typescript-eslint/no-unsafe-argument
    616:  /home/runner/work/keyshade/keyshade/apps/platform/src/app/(main)/settings/@profile/page.tsx
    617:  ##[error]  47:20  error  Unsafe argument of type `any` assigned to a parameter of type `SetStateAction<string>`  @typescript-eslint/no-unsafe-argument
    618:  /home/runner/work/keyshade/keyshade/apps/platform/src/components/dashboard/environment/environmentCard/index.tsx
    619:  ##[error]  70:32  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument
    620:  /home/runner/work/keyshade/keyshade/apps/platform/src/components/dashboard/project/projectScreenLoader/index.tsx
    621:  ##[warning]  10:18  warning  Do not use Array index in keys  react/no-array-index-key
    622:  /home/runner/work/keyshade/keyshade/apps/platform/src/components/dashboard/secret/secretCard/index.tsx
    623:  ##[error]  45:20  error  Unsafe argument of type `any` assigned to a parameter of type `string | number | Date | Dayjs | null | undefined`  @typescript-eslint/no-unsafe-argument
    624:  /home/runner/work/keyshade/keyshade/apps/platform/src/components/dashboard/variable/variableCard/index.tsx
    625:  ##[error]   80:45   error  Unsafe argument of type `any` assigned to a parameter of type `string`                                             @typescript-eslint/no-unsafe-argument
    626:  ##[error]   81:34   error  Unsafe argument of type `any` assigned to a parameter of type `string`                                             @typescript-eslint/no-unsafe-argument
    627:  ##[error]   84:104  error  Unsafe argument of type `any` assigned to a parameter of type `string`                                             @typescript-eslint/no-unsafe-argument
    628:  ##[error]  106:26   error  Unsafe argument of type `any` assigned to a parameter of type `string | number | Date | Dayjs | null | undefined`  @typescript-eslint/no-unsafe-argument
    629:  ##[error]  122:105  error  Unsafe argument of type `any` assigned to a parameter of type `string`                                             @typescript-eslint/no-unsafe-argument
    630:  /home/runner/work/keyshade/keyshade/apps/platform/src/components/ui/combobox.tsx
    631:  ##[warning]   41:3   warning  'any' overrides all other types in this union type                                           @typescript-eslint/no-redundant-type-constituents
    632:  ##[error]  120:28  error    Unsafe argument of type `any` assigned to a parameter of type `SetStateAction<Workspace[]>`  @typescript-eslint/no-unsafe-argument
    ...
    
    634:  ##[warning]  14:4   warning  'any' overrides all other types in this intersection type  @typescript-eslint/no-redundant-type-constituents
    635:  ##[warning]  14:4   warning  'any' overrides all other types in this union type         @typescript-eslint/no-redundant-type-constituents
    636:  ##[warning]  16:41  warning  'any' overrides all other types in this union type         @typescript-eslint/no-redundant-type-constituents
    637:  ##[warning]  17:42  warning  'any' overrides all other types in this union type         @typescript-eslint/no-redundant-type-constituents
    638:  ##[warning]  18:40  warning  'any' overrides all other types in this union type         @typescript-eslint/no-redundant-type-constituents
    639:  ##[warning]  20:3   warning  'any' overrides all other types in this union type         @typescript-eslint/no-redundant-type-constituents
    640:  /home/runner/work/keyshade/keyshade/apps/platform/src/store/workspace.ts
    641:  ##[warning]  18:41  warning  'any' overrides all other types in this union type  @typescript-eslint/no-redundant-type-constituents
    642:  ✖ 21 problems (12 errors, 9 warnings)
    643:  ELIFECYCLE  Command failed with exit code 1.
    644:  [ERROR] command finished with error: command (/home/runner/work/keyshade/keyshade/apps/platform) /home/runner/setup-pnpm/node_modules/.bin/pnpm run lint exited (1)
    645:  ERROR  run failed: command  exited (1)
    646:  Tasks:    0 successful, 1 total
    647:  Cached:    0 cached, 1 total
    648:  Time:    20.995s 
    649:  Failed:    @keyshade/platform#lint
    650:  ELIFECYCLE  Command failed with exit code 1.
    651:  ##[error]Process completed with exit code 1.
    

    @rajdip-b
    Copy link
    Member

    image these errors dont show up when i run `pnpm lint:platform` on my device locally image Running the lint command reorganizes the imports, which then my editor picks up to be unorganized.

    @kriptonian1
    Copy link
    Contributor Author

    @rajdip-b I have no clue why is it not running locally for you

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants