LemmyNet / lemmy-js-client

A javascript / typescript http and websocket client and type system for Lemmy.
GNU Affero General Public License v3.0
141 stars 57 forks source link

Broken ESLint config? #358

Closed Nutomic closed 1 month ago

Nutomic commented 1 month ago

Making a commit always results in an error like this. In lemmy-ui repo it works fine.

$ git commit -a
✔ Preparing lint-staged...
⚠ Running tasks for staged files...
❯ package.json — 1 file
❯ *.{ts,tsx,js} — 1 file
✔ prettier --write
✖ eslint --fix [FAILED]
↓ package.json — no files
↓ Skipped because of errors from tasks.
✔ Reverting to original state because of errors...
✔ Cleaning up temporary files...

✖ eslint --fix:

Oops! Something went wrong! :(

ESLint: 8.54.0

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

npm init @eslint/config

ESLint looked for configuration files in /home/felix/workspace/lemmy/lemmy-js-client/src and its ancestors. If it found none, it then looked in your home directory.

If you think you already have a configuration file or if you need more help, please stop by the ESLint Discord server: https://eslint.org/chat
dessalines commented 1 month ago

ESLint: 8.54.0

The version in the package.json is 9.8.0

Run pnpm i

If you need to reinstall pnpm, i recommend corepack: https://pnpm.io/installation#using-corepack

Nutomic commented 1 month ago

Youre right, my bad. Im very much used to Rust which handles this stuff automatically.