ultra noob eslint question

I can't disable my eslint no matter what. Husky still throws an error as it runs pre commit Line I want to disable:
// eslint-disable-next-line @typescript-eslint/no-var-requires
const GraphQLUpload = require('graphql-upload/GraphQLUpload.js');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const GraphQLUpload = require('graphql-upload/GraphQLUpload.js');
Husky error:
error Require statement not part of import statement @typescript-eslint/no-var-require
error Require statement not part of import statement @typescript-eslint/no-var-require
Husky script:
"pre-commit": "lint-staged",
"pre-commit": "lint-staged",
2 Replies
uiuxphil
uiuxphilOP2y ago
I feel ashamed I had to ask that lol I have no clue
Finn
Finn2y ago
Don't use pre commit hooks. Presumably it still errors when you run eslint manually
Want results from more Discord servers?
Add your server