Setup eslint config in repositories that should use it

task: T2723

repositories to fix ⚡ Repozytoria Korzystające Z Eslinta

1 Like

ongoing: locreq · locreq

1 Like

Ah! Sorry, I updated ⚡ Repozytoria Korzystające Z Eslinta. Only locreq is lacking eslint as of now - so only locreq needs your attention in this task :folded_hands:

1 Like

Diff: Login

1 Like

What node version are you using? I’m getting this error when running build:

> npm install && npm run build 

> locreq@2.1.0 prepare
> rm -rf @types && npm run typecheck && npm run lint && npm run build


> locreq@2.1.0 typecheck
> tsc --noemit


> locreq@2.1.0 lint
> npm run build-declarations && eslint .


> locreq@2.1.0 build-declarations
> tsc --emitDeclarationOnly


/home/kuba/projects/sealcode/locreq/esbuild.mjs
  5:15  error  Unsafe call of a(n) `error` type typed value          @typescript-eslint/no-unsafe-call
  5:23  error  Unsafe member access .argv on an `error` typed value  @typescript-eslint/no-unsafe-member-access

✖ 2 problems (2 errors, 0 warnings)

npm ERR! code 1
npm ERR! path /home/kuba/projects/sealcode/locreq
npm ERR! command failed
npm ERR! command sh -c rm -rf @types && npm run typecheck && npm run lint && npm run build

npm ERR! A complete log of this run can be found in: /home/kuba/.npm/_logs/2025-08-14T08_28_59_891Z-debug-0.log

Does it build without error for you?

I was using node v24 and builded without errors.

Hm. Can you try on a fresh clone? What’s the output of this script for you?

cd /tmp
git clone ssh://git@hub.sealcode.org/source/locreq.git 
arc patch D1617
npm install
npm run lint