#Help with default ESLint + Husky

1 messages · Page 1 of 1 (latest)

timid turret
#

I started new blitz project and I'm trying to push code on Github but I get the following error:

✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 21 files
    ❯ *.{js,ts,tsx} — 20 files
      ✖ eslint --fix [FAILED]
↓ Skipped because of errors from tasks. [SKIPPED]
✔ Reverting to original state because of errors...
✔ Cleaning up temporary files...

✖ eslint --fix:

Oops! Something went wrong! :(

ESLint: 8.27.0

ESLint couldn't find the config "custom" to extend from. Please check that the name of the config is correct.

The config "custom" was referenced from the config file in "/home/mucort/Programming/projects/paperclip/.eslintrc.js".

If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.

husky - pre-commit hook exited with code 1 (error)

  • .eslint.js content
 module.exports = require("@blitzjs/next/eslint")
  • I'm using yarn 1.22.19 as the package manager

Thanks for your help.

mighty mango
#

Hey @timid turret what version of blitz are you using?

timid turret
#

Hey @mighty mango I'm using blitz: 2.0.0-beta.19

mighty mango
timid turret
#

Okay, let me do that. Thanks

timid turret
#

@mighty mango I think this is because I have upgraded the dependencies and I'm using NextJS 13.6 is there any config I can do for NextJS 13?

mighty mango
timid turret
#

Sorry for the message I sent earlier, still it does not work on next13 version

mighty mango
# timid turret Sorry for the message I sent earlier, still it does not work on next13 version

Ok, we're actually removing the husky step npx lint-staged. There's a PR open for it here https://github.com/blitz-js/blitz/pull/3984

You can do the same and follow this PR

GitHub

Closes: ?
What are the changes and their implications?

Remove husky prepush hook
Update precommit hook to only run prettier and not lint

Bug Checklist

Changeset added (run pnpm changeset in the...